diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/setup_apkrepos_test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/setup_apkrepos_test b/tests/setup_apkrepos_test index 26d9d76..ec0c349 100755 --- a/tests/setup_apkrepos_test +++ b/tests/setup_apkrepos_test @@ -3,6 +3,7 @@ . $(atf_get_srcdir)/test_env.sh init_tests \ setup_apkrepos_usage \ + setup_apkrepos_exclusive_opts \ setup_apkrepos_https \ setup_apkrepos_random \ setup_apkrepos_first @@ -11,6 +12,13 @@ setup_apkrepos_usage_body() { test_usage setup-apkrepos } +setup_apkrepos_exclusive_opts_body() { + init_env + atf_check -s exit:1 -e match:"usage" setup-apkrepos -r -f + atf_check -s exit:1 -e match:"usage" setup-apkrepos -r -1 + atf_check -s exit:1 -e match:"usage" setup-apkrepos -f -1 +} + setup_apkrepos_https_body() { init_env export MIRRORS="https://a.example.com http://b.example.com" |