X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b3934fc32dd04ef0bbcce846f151f4fdf40bff54..da4e8725cdfeb62527f9b900f3a21afc88e89e3a:/test/anno/test-anno diff --git a/test/anno/test-anno b/test/anno/test-anno index a9ad95ae..008c3419 100755 --- a/test/anno/test-anno +++ b/test/anno/test-anno @@ -16,6 +16,25 @@ fi setup_test +check_exit '-eq 1' anno - +check_exit '-eq 1' anno -comp +check_exit '-eq 1' anno -comp foo -comp bar +check_exit '-eq 1' anno -text +check_exit '-eq 1' anno -text foo -text bar +check_exit '-eq 1' anno -number 0 +check_exit '-eq 1' anno -number -number +check_exit '-eq 1' anno + @ +check_exit '-eq 1' anno -draft 42 +check_exit '-eq 1' anno -draft -list "$actual" 2>&1 +#### Skip nmh intro text. +run_prog anno -help 2>&1 | sed '/^$/,$d' >"$actual" check "$expected" "$actual" # check -version