blob: 7edf66f915310edfa5b22c12e2cdb116e3a7f5f6 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001This patch is used to create a new sub package libpam-xtests to do more checks.
2
3Upstream-Status: Pending
4
5Signed-off-by: Kang Kai <kai.kang@windriver.com>
Brad Bishop316dfdd2018-06-25 12:45:53 -04006Index: Linux-PAM-1.3.0/xtests/Makefile.am
7===================================================================
8--- Linux-PAM-1.3.0.orig/xtests/Makefile.am
9+++ Linux-PAM-1.3.0/xtests/Makefile.am
10@@ -7,7 +7,7 @@ AM_CFLAGS = -DLIBPAM_COMPILE -I$(top_src
11 LDADD = $(top_builddir)/libpam/libpam.la \
12 $(top_builddir)/libpam_misc/libpam_misc.la
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013
14-CLEANFILES = *~ $(XTESTS)
15+CLEANFILES = *~
16
17 EXTRA_DIST = run-xtests.sh tst-pam_dispatch1.pamd tst-pam_dispatch2.pamd \
18 tst-pam_dispatch3.pamd tst-pam_dispatch4.pamd \
Brad Bishop316dfdd2018-06-25 12:45:53 -040019@@ -51,3 +51,18 @@ EXTRA_PROGRAMS = $(XTESTS)
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020
21 xtests: $(XTESTS) run-xtests.sh
22 "$(srcdir)"/run-xtests.sh "$(srcdir)" ${XTESTS} ${NOSRCTESTS}
23+
24+all: $(XTESTS)
25+
26+install: install_xtests
27+
28+install_xtests:
29+ $(INSTALL) -d $(DESTDIR)$(pkgdatadir)/xtests
30+ for file in $(EXTRA_DIST) ; do \
31+ $(INSTALL) $$file $(DESTDIR)$(pkgdatadir)/xtests ; \
32+ done
33+ for file in $(XTESTS); do \
34+ $(INSTALL) .libs/$$file $(DESTDIR)$(pkgdatadir)/xtests ; \
35+ done
36+
37+.PHONY: all install_xtests