summaryrefslogtreecommitdiff
path: root/tests/lbu_test
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-07-12 12:30:43 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-07-12 12:30:43 +0200
commit19c0a828f54f3dcf2b9a6e8a3bf4c3f46b16f72a (patch)
treeed4148945fa12f1cbc0ad0aaa8c34e8dc3a3a1ee /tests/lbu_test
parent01599a8de056f9a90ebd48f673705e8207a59e4c (diff)
downloadalpine-conf-19c0a828f54f3dcf2b9a6e8a3bf4c3f46b16f72a.zip
lbu: fix lbu status usage
Diffstat (limited to 'tests/lbu_test')
-rwxr-xr-xtests/lbu_test25
1 files changed, 24 insertions, 1 deletions
diff --git a/tests/lbu_test b/tests/lbu_test
index 6ea603c..e54c5f5 100755
--- a/tests/lbu_test
+++ b/tests/lbu_test
@@ -19,7 +19,10 @@ init_tests \
lbu_lb_usage \
lbu_package_usage \
lbu_pkg_usage \
- lbu_revert_usage
+ lbu_revert_usage \
+ lbu_status_usage \
+ lbu_stat_usage \
+ lbu_st_usage
lbu_usage_body() {
test_usage lbu
@@ -134,3 +137,23 @@ lbu_revert_usage_body() {
test_usage "lbu revert"
}
+lbu_status_usage_body() {
+ test_usage "lbu status"
+}
+
+lbu_stat_usage_body() {
+ init_env
+ atf_check -s exit:0 \
+ -o match:"usage: lbu status" \
+ -e empty \
+ lbu stat -h
+}
+
+lbu_st_usage_body() {
+ init_env
+ atf_check -s exit:0 \
+ -o match:"usage: lbu status" \
+ -e empty \
+ lbu st -h
+}
+