X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/46f35e659f3bc3e808a70263bea0ec72624c8a08..4d5d51e903a42c23800540930244448c4aacae16:/test/mhl/test-mhl-flags diff --git a/test/mhl/test-mhl-flags b/test/mhl/test-mhl-flags index 2f10b868..cf138872 100755 --- a/test/mhl/test-mhl-flags +++ b/test/mhl/test-mhl-flags @@ -13,6 +13,36 @@ fi setup_test mhl="${MH_LIBEXEC_DIR}/mhl" + +MHLDEBUG=foo check_exit '-eq 1' "$mhl" - +unset MHLDEBUG +check_exit '-eq 1' "$mhl" -xyzzy +check_exit '-eq 0' "$mhl" -help +check_exit '-eq 0' "$mhl" -version +check_exit '-eq 1' "$mhl" -bell -nobell -clear - +check_exit '-eq 1' "$mhl" -folder +check_exit '-eq 1' "$mhl" -folder + - +check_exit '-eq 1' "$mhl" -form +check_exit '-eq 1' "$mhl" -sleep +check_exit '-eq 1' "$mhl" -sleep 42 - +check_exit '-eq 1' "$mhl" -moreproc foo -moreproc +check_exit '-eq 1' "$mhl" -nofmtproc -fmtproc foo -fmtproc +check_exit '-eq 1' "$mhl" -length 42 -length +check_exit '-eq 1' "$mhl" -length 0 +check_exit '-eq 1' "$mhl" -width +check_exit '-eq 1' "$mhl" -digest foo -width 0 +check_exit '-eq 1' "$mhl" -issue 42 -digest +check_exit '-eq 1' "$mhl" -issue +check_exit '-eq 1' "$mhl" -volume 42 -issue 0 +check_exit '-eq 1' "$mhl" -volume +check_exit '-eq 1' "$mhl" -forwall -volume 0 +check_exit '-eq 0' "$mhl" -dashstuffing -nodashstuffing \ + -forwall "$expected" < There are two blank lines below. And there is a trailing space: @@ -48,6 +79,7 @@ check "$expected" "$actual" # check rtrim +start_test "rtrim" cat >"$expected" < There are two blank lines below. And there is a trailing space: > And another trailing space: @@ -65,4 +97,5 @@ check "$expected" "$actual" rm -f "$MH_TEST_DIR/test.format" +finish_test exit $failed