summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-05-27 11:58:11 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-06-28 18:23:25 +0200
commit797dde886edfbd1e6bddeecb7d3ad87fdca97ab6 (patch)
treec70baadbf6f7481b4c8ec359e4538d01412b0761 /tests
parent8e83cad94a75c5915e26901011940ab1feeb1ef6 (diff)
downloadalpine-conf-797dde886edfbd1e6bddeecb7d3ad87fdca97ab6.zip
lbu: add test for lbu commit 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 f393b86..9be325d 100755
--- a/tests/lbu_test
+++ b/tests/lbu_test
@@ -5,7 +5,9 @@ init_tests \
lbu_usage \
lbu_include_usage \
lbu_inc_usage \
- lbu_add_usage
+ lbu_add_usage \
+ lbu_commit_usage \
+ lbu_ci_usage
lbu_usage_body() {
test_usage lbu
@@ -26,3 +28,15 @@ lbu_add_usage_body() {
-e empty \
lbu add -h
}
+
+lbu_commit_usage_body() {
+ test_usage "lbu commit"
+}
+
+lbu_ci_usage_body() {
+ init_env
+ atf_check -s exit:0 \
+ -o match:"usage: lbu commit" \
+ -e empty \
+ lbu ci -h
+}