diff options
Diffstat (limited to 'tests/setup_user_test')
-rwxr-xr-x | tests/setup_user_test | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/setup_user_test b/tests/setup_user_test index 3d24ae5..2185c0d 100755 --- a/tests/setup_user_test +++ b/tests/setup_user_test @@ -9,7 +9,8 @@ init_tests \ setup_user_interactive_fullname \ setup_user_interactive_singlename \ setup_user_groups_commas \ - setup_user_groups_spaces + setup_user_groups_spaces \ + setup_user_admin setup_user_usage_body() { test_usage setup-user @@ -103,3 +104,13 @@ setup_user_groups_spaces_body() { -e empty \ setup-user -g "wheel audio video" testuser } + +setup_user_admin_body() { + init_env + atf_check -s exit:0 \ + -o match:"addgroup testuser wheel" \ + -e empty \ + setup-user -a testuser + grep wheel etc/doas.d/doas.conf + +} |