1 2# Import helper functions 3. $(atf_get_srcdir)/helper_functions.shin 4 5atf_test_case generate_config 6generate_config_body() { 7 atf_check -s exit:0 \ 8 ${PW} useradd -D -C ${HOME}/foo.conf 9 atf_check -o file:$(atf_get_srcdir)/pw.conf \ 10 cat ${HOME}/foo.conf 11} 12 13atf_test_case modify_config_uid_gid_boundaries 14modify_config_uid_gid_boundaries_body() { 15 atf_check -s exit:0 \ 16 ${PW} useradd -D -C ${HOME}/foo.conf \ 17 -u 2000,5000 -i 2100,6000 18 atf_check -o file:$(atf_get_srcdir)/pw-modified.conf \ 19 cat ${HOME}/foo.conf 20} 21 22atf_init_test_cases() { 23 atf_add_test_case generate_config 24 atf_add_test_case modify_config_uid_gid_boundaries 25} 26