From 02c9552169c12e921d2f99a2a2ce7b8da7bf0500 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 1 Jul 2022 12:01:12 +0200 Subject: tests: setup-apkcache: add test for 'none' --- tests/setup_apkcache_test | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests') 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 +} -- cgit v1.2.3