blob: f2dafa72a5b09be24fd0d5798614d989650fdb4c [file] [log] [blame]
Patrick Williams44b3caf2024-04-12 16:51:14 -05001From 060726f7e60c8ecb5bf50fd776910b290d9a0a69 Mon Sep 17 00:00:00 2001
2From: Kang Kai <kai.kang@windriver.com>
3Date: Tue, 19 Jul 2011 17:08:31 +0800
4Subject: [PATCH] This patch is used to create a new sub package libpam-xtests
5 to do more checks.
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
7Upstream-Status: Pending
8
9Signed-off-by: Kang Kai <kai.kang@windriver.com>
Patrick Williams44b3caf2024-04-12 16:51:14 -050010---
11 xtests/Makefile.am | 17 ++++++++++++++++-
12 1 file changed, 16 insertions(+), 1 deletion(-)
13
14diff --git a/xtests/Makefile.am b/xtests/Makefile.am
15index acf9746..9826c9f 100644
16--- a/xtests/Makefile.am
17+++ b/xtests/Makefile.am
18@@ -8,7 +8,7 @@ AM_CFLAGS = -DLIBPAM_COMPILE -I$(top_srcdir)/libpam/include \
Brad Bishop316dfdd2018-06-25 12:45:53 -040019 LDADD = $(top_builddir)/libpam/libpam.la \
20 $(top_builddir)/libpam_misc/libpam_misc.la
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021
22-CLEANFILES = *~ $(XTESTS)
23+CLEANFILES = *~
24
25 EXTRA_DIST = run-xtests.sh tst-pam_dispatch1.pamd tst-pam_dispatch2.pamd \
26 tst-pam_dispatch3.pamd tst-pam_dispatch4.pamd \
Patrick Williams44b3caf2024-04-12 16:51:14 -050027@@ -55,3 +55,18 @@ EXTRA_PROGRAMS = $(XTESTS)
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028
29 xtests: $(XTESTS) run-xtests.sh
30 "$(srcdir)"/run-xtests.sh "$(srcdir)" ${XTESTS} ${NOSRCTESTS}
31+
32+all: $(XTESTS)
33+
34+install: install_xtests
35+
36+install_xtests:
37+ $(INSTALL) -d $(DESTDIR)$(pkgdatadir)/xtests
38+ for file in $(EXTRA_DIST) ; do \
Andrew Geissler82c905d2020-04-13 13:39:40 -050039+ $(INSTALL) $(srcdir)/$$file $(DESTDIR)$(pkgdatadir)/xtests ; \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040+ done
41+ for file in $(XTESTS); do \
42+ $(INSTALL) .libs/$$file $(DESTDIR)$(pkgdatadir)/xtests ; \
43+ done
44+
45+.PHONY: all install_xtests