rofi/test/help_output_test.sh

15 lines
361 B
Bash
Raw Normal View History

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