003 File Manager
Current Path:
/usr/src/usr.sbin/pw/tests
usr
/
src
/
usr.sbin
/
pw
/
tests
/
📁
..
📄
Makefile
(595 B)
📄
Makefile.depend
(270 B)
📄
crypt.c
(1.64 KB)
📄
group
(29 B)
📄
helper_functions.shin
(905 B)
📄
master.passwd
(101 B)
📄
pw-modified.conf
(1.33 KB)
📄
pw.conf
(1.33 KB)
📄
pw_config_test.sh
(649 B)
📄
pw_etcdir_test.sh
(484 B)
📄
pw_groupadd_test.sh
(643 B)
📄
pw_groupdel_test.sh
(831 B)
📄
pw_groupmod_test.sh
(3.91 KB)
📄
pw_groupshow_test.sh
(1.37 KB)
📄
pw_lock_test.sh
(1.45 KB)
📄
pw_useradd_test.sh
(16.28 KB)
📄
pw_userdel_test.sh
(2.69 KB)
📄
pw_usermod_test.sh
(9.06 KB)
📄
pw_usernext_test.sh
(1.16 KB)
📄
pw_usershow_test.sh
(1.34 KB)
Editing: pw_groupadd_test.sh
# $FreeBSD$ # Import helper functions . $(atf_get_srcdir)/helper_functions.shin atf_test_case group_add_gid_too_large group_add_gid_too_large_body() { populate_etc_skel atf_check -s exit:64 -e inline:"pw: Bad id '9999999999999': too large\n" \ ${PW} groupadd -n test1 -g 9999999999999 } atf_test_case group_add_already_exists group_add_already_exists_body() { populate_etc_skel atf_check -s exit:0 ${PW} groupadd foo atf_check -s exit:65 \ -e inline:"pw: group name \`foo' already exists\n" \ ${PW} groupadd foo } atf_init_test_cases() { atf_add_test_case group_add_gid_too_large atf_add_test_case group_add_already_exists }
Upload File
Create Folder