summaryrefslogtreecommitdiffstats
path: root/pw/tests/pw_groupshow_test.sh
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-02-10 18:13:31 -0500
committerCameron Katri <me@cameronkatri.com>2021-02-10 19:00:38 -0500
commit9768b265bd097e561103188bb97f64ef26c6cee1 (patch)
treed31efcee098e5f18f411f72c26782ebfe53523b5 /pw/tests/pw_groupshow_test.sh
parentec831d9055a20b69cb9a7300990b8e4414cbd474 (diff)
downloadpw-darwin-9768b265bd097e561103188bb97f64ef26c6cee1.tar.gz
pw-darwin-9768b265bd097e561103188bb97f64ef26c6cee1.zip
New Makefile, freebsd reallocarray.c, freebsd strtonum for 12/13 compat, delete tests
Diffstat (limited to 'pw/tests/pw_groupshow_test.sh')
-rwxr-xr-xpw/tests/pw_groupshow_test.sh56
1 files changed, 0 insertions, 56 deletions
diff --git a/pw/tests/pw_groupshow_test.sh b/pw/tests/pw_groupshow_test.sh
deleted file mode 100755
index f348d0a..0000000
--- a/pw/tests/pw_groupshow_test.sh
+++ /dev/null
@@ -1,56 +0,0 @@
-# $FreeBSD$
-
-# Import helper functions
-. $(atf_get_srcdir)/helper_functions.shin
-
-atf_test_case group_show_all
-group_show_all_body() {
- populate_etc_skel
- atf_check -o not-empty ${PW} groupshow -a
-}
-
-atf_test_case group_show_gid
-group_show_gid_body() {
- populate_etc_skel
- atf_check -o not-empty ${PW} groupshow -g 0
-}
-
-atf_test_case group_show_name
-group_show_name_body() {
- populate_etc_skel
- atf_check -o not-empty ${PW} groupshow wheel
-}
-
-atf_test_case group_show_nonexistent_gid
-group_show_nonexistent_gid_body() {
- populate_etc_skel
-
- nonexistent_gid=4242
- no_such_name_msg="pw: unknown gid \`$nonexistent_gid'\n"
-
- atf_check -e "inline:$no_such_name_msg" -s exit:65 ${PW} groupshow \
- $nonexistent_gid
- atf_check -e "inline:$no_such_name_msg" -s exit:65 ${PW} groupshow \
- -g $nonexistent_gid
-}
-
-atf_test_case group_show_nonexistent_name
-group_show_nonexistent_name_body() {
- populate_etc_skel
-
- nonexistent_name=bogus
- no_such_name_msg="pw: unknown group \`$nonexistent_name'\n"
-
- atf_check -e "inline:$no_such_name_msg" -s exit:65 ${PW} groupshow \
- $nonexistent_name
- atf_check -e "inline:$no_such_name_msg" -s exit:65 ${PW} groupshow \
- -n $nonexistent_name
-}
-
-atf_init_test_cases() {
- atf_add_test_case group_show_all
- atf_add_test_case group_show_gid
- atf_add_test_case group_show_name
- atf_add_test_case group_show_nonexistent_gid
- atf_add_test_case group_show_nonexistent_name
-}