aboutsummaryrefslogtreecommitdiff
path: root/xtests/run-xtests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'xtests/run-xtests.sh')
-rwxr-xr-xxtests/run-xtests.sh38
1 files changed, 0 insertions, 38 deletions
diff --git a/xtests/run-xtests.sh b/xtests/run-xtests.sh
deleted file mode 100755
index 9c8c3571..00000000
--- a/xtests/run-xtests.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-if test `id -u` -ne 0 ; then
- echo "You need to be root to run the tests"
- exit 1
-fi
-
-XTESTS="tst-pam_dispatch1 tst-pam_dispatch2 tst-pam_dispatch3 \
- tst-pam_dispatch4 tst-pam_cracklib1"
-
-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
-exit 0