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