1 2# Import helper functions 3. $(atf_get_srcdir)/helper_functions.shin 4 5atf_test_case group_add_gid_too_large 6group_add_gid_too_large_body() { 7 populate_etc_skel 8 atf_check -s exit:64 -e inline:"pw: Bad id '9999999999999': too large\n" \ 9 ${PW} groupadd -n test1 -g 9999999999999 10} 11 12atf_test_case group_add_already_exists 13group_add_already_exists_body() { 14 populate_etc_skel 15 16 atf_check -s exit:0 ${PW} groupadd foo 17 atf_check -s exit:65 \ 18 -e inline:"pw: group name \`foo' already exists\n" \ 19 ${PW} groupadd foo 20} 21 22atf_init_test_cases() { 23 atf_add_test_case group_add_gid_too_large 24 atf_add_test_case group_add_already_exists 25} 26