diff options
Diffstat (limited to 'test/help_output_test.sh')
-rwxr-xr-x | test/help_output_test.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/help_output_test.sh b/test/help_output_test.sh new file mode 100755 index 00000000..de8dcd7e --- /dev/null +++ b/test/help_output_test.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +TOP_DIR=$1 + +rofi -h -config ${TOP_DIR}/doc/test_xr.txt | grep -v "Version"> help-output.txt + +if ! diff help-output.txt ${TOP_DIR}/doc/help-output.txt > /dev/null +then + echo "Help output does not match." + exit 1; +fi + +exit ${RETV} |