rofi/test/help_output_test.sh

14 lines
257 B
Bash
Raw Normal View History

2016-10-19 11:12:55 +00:00
#!/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}