diff options
-rw-r--r-- | test/toru-path-test.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/toru-path-test.sh b/test/toru-path-test.sh index d215cb5..645dd8c 100644 --- a/test/toru-path-test.sh +++ b/test/toru-path-test.sh @@ -3,6 +3,13 @@ describe toru-path . ./test-common.sh +it_displays_help() { + LC_ALL=C toru-path -h >$tmpdir/stdout 2>$tmpdir/stderr + + [[ "$(sed 1q $tmpdir/stdout)" =~ Usage:.* ]] + empty $tmpdir/stderr +} + it_runs() { mkdir -p "$XDG_CONFIG_HOME"/libretools printf 'TORUPATH=%q\n' "$tmpdir" >> "$XDG_CONFIG_HOME"/libretools/libretools.conf |