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