summaryrefslogtreecommitdiff
path: root/tests/cktools/pwck/31_pwck_shadow_entry_passwd_no_x/pwck.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cktools/pwck/31_pwck_shadow_entry_passwd_no_x/pwck.test')
-rwxr-xr-xtests/cktools/pwck/31_pwck_shadow_entry_passwd_no_x/pwck.test54
1 files changed, 0 insertions, 54 deletions
diff --git a/tests/cktools/pwck/31_pwck_shadow_entry_passwd_no_x/pwck.test b/tests/cktools/pwck/31_pwck_shadow_entry_passwd_no_x/pwck.test
deleted file mode 100755
index 4c5b1f5f..00000000
--- a/tests/cktools/pwck/31_pwck_shadow_entry_passwd_no_x/pwck.test
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-
-set -e
-
-cd $(dirname $0)
-
-. ../../../common/config.sh
-. ../../../common/log.sh
-
-log_start "$0" "pwck checks that the password is set to x if there is a shadow entry"
-
-save_config
-
-# restore the files on exit
-trap 'log_status "$0" "FAILURE"; restore_config' 0
-
-change_config
-
-echo -n "Check user database (pwck -r)..."
-pwck -r >tmp/pwck.out && exit 1 || {
- status=$?
-}
-echo "OK"
-
-echo -n "Check returned status ($status)..."
-test "$status" = "2"
-echo "OK"
-
-echo "pwck reported:"
-echo "======================================================================="
-cat tmp/pwck.out
-echo "======================================================================="
-echo -n "Check the report..."
-diff -au data/pwck.out tmp/pwck.out
-echo "report OK."
-rm -f tmp/pwck.out
-
-echo -n "Check the passwd file..."
-../../../common/compare_file.pl config/etc/passwd /etc/passwd
-echo "OK"
-echo -n "Check the group file..."
-../../../common/compare_file.pl config/etc/group /etc/group
-echo "OK"
-echo -n "Check the shadow file..."
-../../../common/compare_file.pl config/etc/shadow /etc/shadow
-echo "OK"
-echo -n "Check the gshadow file..."
-../../../common/compare_file.pl config/etc/gshadow /etc/gshadow
-echo "OK"
-
-log_status "$0" "SUCCESS"
-restore_config
-trap '' 0
-