diff options
Diffstat (limited to 'tests/setup_sshd_test')
-rwxr-xr-x | tests/setup_sshd_test | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/setup_sshd_test b/tests/setup_sshd_test index 0dadd12..c8e9dc7 100755 --- a/tests/setup_sshd_test +++ b/tests/setup_sshd_test @@ -10,6 +10,14 @@ init_env() { # - 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_sshd_usage + atf_add_test_case setup_sshd_empty + atf_add_test_case setup_sshd_dropbear + atf_add_test_case setup_sshd_openssh + atf_add_test_case setup_sshd_interactive +} + atf_test_case setup_sshd_usage setup_sshd_usage_body() { init_env @@ -66,10 +74,3 @@ setup_sshd_interactive_body() { grep '^PermitRootLogin no$' etc/ssh/sshd_config || atf_fail "did not set PermitRootLogin" } -atf_init_test_cases() { - atf_add_test_case setup_sshd_usage - atf_add_test_case setup_sshd_empty - atf_add_test_case setup_sshd_dropbear - atf_add_test_case setup_sshd_openssh - atf_add_test_case setup_sshd_interactive -} |