diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2017-03-23 03:28:24 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2017-03-23 03:28:24 +0000 |
commit | a5efa210b291630d838878b8d5e7d2ab0bf8b384 (patch) | |
tree | 395dd27057c93ec6f91809efc770f39fd526bf9e /pw/tests/pw_etcdir_test.sh | |
parent | e9b9941bd76fcfbac2d1898de8f05cd48d8468ed (diff) | |
download | pw-darwin-a5efa210b291630d838878b8d5e7d2ab0bf8b384.tar.gz pw-darwin-a5efa210b291630d838878b8d5e7d2ab0bf8b384.tar.zst pw-darwin-a5efa210b291630d838878b8d5e7d2ab0bf8b384.zip |
Rename tests from <foo> to <foo>_test to match the FreeBSD test suite
naming scheme
usr.bin/diff/diff_test was renamed to usr.bin/diff/netbsd_diff_test
to avoid collisions with the renamed FreeBSD test.
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Diffstat (limited to 'pw/tests/pw_etcdir_test.sh')
-rwxr-xr-x | pw/tests/pw_etcdir_test.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pw/tests/pw_etcdir_test.sh b/pw/tests/pw_etcdir_test.sh new file mode 100755 index 0000000..b237789 --- /dev/null +++ b/pw/tests/pw_etcdir_test.sh @@ -0,0 +1,18 @@ +# $FreeBSD$ + +# When the '-V directory' option is provided, the directory must exist +atf_test_case etcdir_must_exist +etcdir_must_exist_head() { + atf_set "descr" "When the '-V directory' option is provided, the directory must exist" +} + +etcdir_must_exist_body() { + local fakedir="/this_directory_does_not_exist" + atf_check -e inline:"pw: no such directory \`$fakedir'\n" \ + -s exit:72 -x pw -V ${fakedir} usershow root +} + +atf_init_test_cases() { + atf_add_test_case etcdir_must_exist +} + |