diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-13 10:30:14 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-13 15:52:55 +0200 |
commit | 77c328703c2582fcc93227e716401652b230b934 (patch) | |
tree | 81ccdc5e8508cad4e02a932cfd446dba76eef5b3 /tests | |
parent | a54264fe0016c21b189798e2be7376df777a4163 (diff) | |
download | alpine-conf-77c328703c2582fcc93227e716401652b230b934.zip |
tests: add test for setup-lbu
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/setup_lbu_test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/setup_lbu_test b/tests/setup_lbu_test new file mode 100755 index 0000000..3407f90 --- /dev/null +++ b/tests/setup_lbu_test @@ -0,0 +1,21 @@ +#!/usr/bin/env atf-sh + +. $(atf_get_srcdir)/test_env.sh +init_tests \ + setup_lbu_usage \ + setup_lbu_label + +setup_lbu_usage_body() { + test_usage setup-lbu +} + +setup_lbu_label_body() { + init_env + atf_check -s exit:0 \ + -o empty \ + -e empty \ + setup-lbu LABEL=APKOVL + grep -q 'LBU_MEDIA=LABEL=APKOVL' etc/lbu/lbu.conf || atf_fail "LBU_MEDIA not set in etc/lbu/lbu.conf" + test -d media/LABEL=APKOVL || atf_fail "directory /media/LABEL=APKOVL was not created" +} + |