diff options
-rw-r--r-- | lbu.in | 2 | ||||
-rwxr-xr-x | tests/lbu_test | 25 |
2 files changed, 25 insertions, 2 deletions
@@ -617,7 +617,7 @@ usage_status() { -a Compare all files, not just since last commit. -v Also show include and exclude lists. __EOF__ - exit 1 + exit $1 } cmd_status() { 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 +} + |