1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00
rofi/test/help_output_test.sh
Dave Davenport 048d601a85 Update tests
2017-03-11 14:55:58 +01:00

14 lines
369 B
Bash
Executable file

#!/usr/bin/env bash
TOP_DIR=$1
rofi -h -config ${TOP_DIR}/doc/test_xr.txt | awk 'BEGIN{ found=1} /^Global options:/{found=0} {if (found) print }' > help-output.txt
if ! diff help-output.txt ${TOP_DIR}/doc/help-output.txt > /dev/null
then
diff help-output.txt ${TOP_DIR}/doc/help-output.txt
echo "Help output does not match."
exit 1;
fi
exit ${RETV}