summaryrefslogtreecommitdiff
path: root/tests/setup_apkrepos_test
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-11-21 13:04:12 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2022-11-21 13:04:12 +0100
commit3e506474a816e0c30b8cf0f30afb0f7f5059d881 (patch)
tree31a526c3b3c7a5171dcf46be2fb1822726a658e7 /tests/setup_apkrepos_test
parenta105b5a13eb56f94bfad0eb28f2e73eafd98b671 (diff)
downloadalpine-conf-3e506474a816e0c30b8cf0f30afb0f7f5059d881.zip
setup-apkrepos: make fastest/first/random options exclusive
Makes no sense to combine them
Diffstat (limited to 'tests/setup_apkrepos_test')
-rwxr-xr-xtests/setup_apkrepos_test8
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"