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

15 lines
369 B
Bash
Raw Normal View History

2016-10-19 07:12:55 -04:00
#!/usr/bin/env bash
TOP_DIR=$1
2017-03-11 08:55:58 -05:00
rofi -h -config ${TOP_DIR}/doc/test_xr.txt | awk 'BEGIN{ found=1} /^Global options:/{found=0} {if (found) print }' > help-output.txt
2016-10-19 07:12:55 -04:00
if ! diff help-output.txt ${TOP_DIR}/doc/help-output.txt > /dev/null
then
2016-10-19 15:19:19 -04:00
diff help-output.txt ${TOP_DIR}/doc/help-output.txt
2016-10-19 07:12:55 -04:00
echo "Help output does not match."
exit 1;
fi
exit ${RETV}