diff options
Diffstat (limited to 'tests/grouptools/groupmems/54_groupmems_usage_invalid_option/groupmems.test')
-rwxr-xr-x | tests/grouptools/groupmems/54_groupmems_usage_invalid_option/groupmems.test | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/groupmems.test b/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/groupmems.test deleted file mode 100755 index d0e1fa79..00000000 --- a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/groupmems.test +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems reports usage when called with an invalid option" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Call groupmems with an invalid option (groupmems -Z bar -g 1000 foo)..." -groupmems -Z bar -g 1000 -a foo 2>tmp/groupmems.err && exit 1 || { - status=$? -} -echo "OK" - -echo -n "Check returned status ($status)..." -test "$status" = "1" -echo "OK" - -echo "groupmems reported:" -echo "=======================================================================" -cat tmp/groupmems.err -echo "=======================================================================" -echo -n "Check that there were a failure message..." -diff -au data/groupmems.err tmp/groupmems.err -echo "error message OK." -rm -f tmp/groupmems.err - -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 - |