diff options
Diffstat (limited to 'tests/setup_devd_test')
-rwxr-xr-x | tests/setup_devd_test | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/tests/setup_devd_test b/tests/setup_devd_test index d911314..60e84b3 100755 --- a/tests/setup_devd_test +++ b/tests/setup_devd_test @@ -1,24 +1,10 @@ #!/usr/bin/env atf-sh -init_env() { - PATH=$(atf_get_srcdir)/..:$PATH - export ROOT=$PWD LIBDIR=$(atf_get_srcdir)/.. MOCK=echo -} - -# docs: -# - https://github.com/jmmv/kyua/wiki/Quickstart-atf-sh-test -# - https://manned.org/atf-sh-api - -atf_init_test_cases() { - atf_add_test_case setup_devd_usage -} +. $(atf_get_srcdir)/test_env.sh +init_tests \ + setup_devd_usage -atf_test_case setup_devd_usage setup_devd_usage_body() { - init_env - atf_check -s exit:0 \ - -o match:'^usage: setup-devd' \ - -e empty \ - setup-devd -h + test_usage setup-devd } |