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
372 B
Bash
Raw Normal View History

2016-10-19 07:12:55 -04:00
#!/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
2016-10-19 07:12:55 -04:00
if ! diff help-output.txt "${TOP_DIR}/doc/help-output.txt" >/dev/null
2016-10-19 07:12:55 -04:00
then
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
2016-10-19 07:12:55 -04:00
fi
exit "${RETV}"