rofi/test/help_output_test.sh
2016-10-19 21:19:19 +02:00

14 lines
315 B
Bash
Executable file

#!/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
diff help-output.txt ${TOP_DIR}/doc/help-output.txt
echo "Help output does not match."
exit 1;
fi
exit ${RETV}