summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-07-01 12:01:12 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-07-01 10:15:32 +0000
commit02c9552169c12e921d2f99a2a2ce7b8da7bf0500 (patch)
treeb543f6a6f1c7f9f463ce1104df490a128a347262 /tests
parent8730da8aeb5abb42e7f29ed767680d9f5258fb06 (diff)
downloadalpine-conf-02c9552169c12e921d2f99a2a2ce7b8da7bf0500.zip
tests: setup-apkcache: add test for 'none'
Diffstat (limited to 'tests')
-rwxr-xr-xtests/setup_apkcache_test11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/setup_apkcache_test b/tests/setup_apkcache_test
index f0af6d3..38437ed 100755
--- a/tests/setup_apkcache_test
+++ b/tests/setup_apkcache_test
@@ -4,7 +4,8 @@
init_tests \
setup_apkcache_usage \
setup_apkcache_abspath \
- setup_apkcache_relpath_with_slash
+ setup_apkcache_relpath_with_slash \
+ setup_apkcache_none \
setup_apkcache_usage_body() {
test_usage setup-apkcache
@@ -29,3 +30,11 @@ setup_apkcache_relpath_with_slash_body() {
[ "$(readlink etc/apk/cache)" = "/media/LABEL=APKOVL/cache" ] \
|| atf_fail "etc/apk/cache is symlink to $(readlink /etc/apk/cache) instead of /media/LABEL=APKOVL/cache"
}
+
+setup_apkcache_none_body() {
+ init_env
+ atf_check -s exit:0 \
+ -o empty \
+ -e empty \
+ setup-apkcache none
+}