Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | This patch is used to create a new sub package libpam-xtests to do more checks. |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | Signed-off-by: Kang Kai <kai.kang@windriver.com> |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 6 | Index: 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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | |
| 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 Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 19 | @@ -51,3 +51,18 @@ EXTRA_PROGRAMS = $(XTESTS) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | |
| 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 |