summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-05-27 12:20:24 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-06-28 18:23:25 +0200
commit6d7bf96c89bdcd9fe5bb30504e4817345f44ffac (patch)
tree6fefa81782a1e2f0c86ab5d5881301e071e63fff /tests
parent1a2f956fc1d08d16e6e7e220056bd1fa39a8c2df (diff)
downloadalpine-conf-6d7bf96c89bdcd9fe5bb30504e4817345f44ffac.zip
lbu: add test for lbu list usage
Diffstat (limited to 'tests')
-rwxr-xr-xtests/lbu_test16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/lbu_test b/tests/lbu_test
index e7c1128..3c23bcf 100755
--- a/tests/lbu_test
+++ b/tests/lbu_test
@@ -11,7 +11,9 @@ init_tests \
lbu_exclude_usage \
lbu_ex_usage \
lbu_delete_usage \
- lbu_diff_usage
+ lbu_diff_usage \
+ lbu_list_usage \
+ lbu_ls_usage
lbu_usage_body() {
test_usage lbu
@@ -65,3 +67,15 @@ lbu_diff_usage_body() {
test_usage "lbu diff"
}
+lbu_list_usage_body() {
+ test_usage "lbu list"
+}
+
+lbu_ls_usage_body() {
+ init_env
+ atf_check -s exit:0 \
+ -o match:"usage: lbu list" \
+ -e empty \
+ lbu ls -h
+}
+