diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-04 13:48:37 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-04 14:44:51 -0400 |
commit | 8ef60cf9fef16dd7df5004f97f0c3fff232ca88a (patch) | |
tree | 4421e52e0d05cfb477f0d345ea45e990a1d6cc53 /test | |
parent | 31b1b8a2035e349eb4d825fa0a18b2cf6a6d81b7 (diff) |
test: toru-path: Add check for toru-path usage text
Diffstat (limited to 'test')
-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 |