rofi/test/xr_dump_test.sh
Dave Davenport 048d601a85 Update tests
2017-03-11 14:55:58 +01:00

14 lines
355 B
Bash
Executable file

#!/usr/bin/env bash
TOP_DIR=$1
xrdb -retain -load ${TOP_DIR}/doc/test_xr.txt
rofi -config ${TOP_DIR}/doc/test_xr.txt -dump-xresources | grep -v "rofi.display-" | grep -v "The display name of this browser" > temp.txt
if ! diff temp.txt ${TOP_DIR}/doc/test_xr.txt > /dev/null
then
echo "Dump xresources does not match."
exit 1;
fi
exit ${RETV}