diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2006-08-30 08:45:30 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2006-08-30 08:45:30 +0000 |
commit | 424578c5c4a5edbd79142c9348f4eda689530651 (patch) | |
tree | 6ef01329b2a0fb48e171b382f777eb1347494f86 /xtests/Makefile.am | |
parent | d668e9e5eed079686000f0979391f3691a54408a (diff) | |
download | pam-424578c5c4a5edbd79142c9348f4eda689530651.tar.gz pam-424578c5c4a5edbd79142c9348f4eda689530651.tar.bz2 pam-424578c5c4a5edbd79142c9348f4eda689530651.zip |
Relevant BUGIDs:
Purpose of commit: cleanup/bugfix
Commit summary:
---------------
2006-08-30 Thorsten Kukuk <kukuk@thkukuk.de>
* xtests/Makefile.am: Move shell code to execute tests from here ...
* xtests/run-xtests.sh: ... to here.
* xtests/*.c: Include config.h.
* tests/*.c: Likewise.
Diffstat (limited to 'xtests/Makefile.am')
-rw-r--r-- | xtests/Makefile.am | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/xtests/Makefile.am b/xtests/Makefile.am index f5549290..ac6e2954 100644 --- a/xtests/Makefile.am +++ b/xtests/Makefile.am @@ -9,7 +9,7 @@ AM_LDFLAGS = -L$(top_builddir)/libpam -lpam \ CLEANFILES = *~ -EXTRA_DIST = tst-pam_dispatch1.pamd tst-pam_dispatch2.pamd \ +EXTRA_DIST = run-xtests.sh tst-pam_dispatch1.pamd tst-pam_dispatch2.pamd \ tst-pam_dispatch3.pamd tst-pam_dispatch4.pamd \ tst-pam_cracklib1.pamd @@ -18,28 +18,5 @@ XTESTS = tst-pam_dispatch1 tst-pam_dispatch2 tst-pam_dispatch3 \ noinst_PROGRAMS = $(XTESTS) -xtests: $(XTESTS) - @failed=0; pass=0; all=0; \ - for testname in $(XTESTS) ; do \ - install -m 644 $$testname.pamd /etc/pam.d/$$testname ; \ - ./$$testname > /dev/null ; \ - if test $$? -ne 0 ; then \ - echo "FAIL: $$testname" ; \ - failed=`expr $$failed + 1`; \ - else \ - echo "PASS: $$testname" ; \ - pass=`expr $$pass + 1`; \ - fi ; \ - all=`expr $$all + 1` ; \ - rm -f /etc/pam.d/$$testname ; \ - done ; \ - if test "$$failed" -ne 0; then \ - echo "===================" ; \ - echo "$$failed of $$all tests failed" ; \ - echo "===================" ; \ - exit 1 ; \ - else \ - echo "==================" ; \ - echo "All $$all tests passed" ; \ - echo "==================" ; \ - fi +xtests: $(XTESTS) run-xtests.sh + $(srcdir)/run-xtests.sh |