From 8ef60cf9fef16dd7df5004f97f0c3fff232ca88a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 4 May 2017 13:48:37 -0400 Subject: test: toru-path: Add check for toru-path usage text --- test/toru-path-test.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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 -- cgit v1.2.2