diff options
Diffstat (limited to 'tests/setup_user_test')
-rwxr-xr-x | tests/setup_user_test | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/tests/setup_user_test b/tests/setup_user_test index c67f495..d8e6d77 100755 --- a/tests/setup_user_test +++ b/tests/setup_user_test @@ -5,7 +5,9 @@ init_tests \ setup_user_usage \ setup_user_fullname \ setup_user_interactive \ - setup_user_interactive_fullname + setup_user_interactive_fullname \ + setup_user_groups_commas \ + setup_user_groups_spaces setup_user_usage_body() { test_usage setup-user @@ -56,3 +58,22 @@ setup_user_interactive_fullname_body() { setup-user -f "Joe User" -k none } +setup_user_groups_commas_body() { + init_env + atf_check -s exit:0 \ + -o match:"addgroup testuser wheel" \ + -o match:"addgroup testuser audio" \ + -o match:"addgroup testuser video" \ + -e empty \ + setup-user -g wheel,audio,video testuser +} + +setup_user_groups_spaces_body() { + init_env + atf_check -s exit:0 \ + -o match:"addgroup testuser wheel" \ + -o match:"addgroup testuser audio" \ + -o match:"addgroup testuser video" \ + -e empty \ + setup-user -g "wheel audio video" testuser +} |