1 2# When the '-V directory' option is provided, the directory must exist 3atf_test_case etcdir_must_exist 4etcdir_must_exist_head() { 5 atf_set "descr" "When the '-V directory' option is provided, the directory must exist" 6} 7 8etcdir_must_exist_body() { 9 local fakedir="/this_directory_does_not_exist" 10 atf_check -e inline:"pw: no such directory \`$fakedir'\n" \ 11 -s exit:72 -x pw -V ${fakedir} usershow root 12} 13 14atf_init_test_cases() { 15 atf_add_test_case etcdir_must_exist 16} 17 18