1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-01-27 15:25:24 -05:00
rofi/test/xr_dump_test.sh

15 lines
283 B
Bash
Raw Normal View History

2015-12-31 22:45:36 +01:00
#!/usr/bin/env bash
2015-12-31 23:02:13 +01:00
TOP_DIR=$1
xrdb -retain -load ${TOP_DIR}/doc/test_xr.txt
2016-01-17 13:47:25 +01:00
rofi -config ${TOP_DIR}/doc/test_xr.txt -dump-xresources > temp.txt
2015-12-31 22:45:36 +01:00
2015-12-31 23:02:13 +01:00
if ! diff temp.txt ${TOP_DIR}/doc/test_xr.txt > /dev/null
2015-12-31 22:45:36 +01:00
then
echo "Dump xresources does not match."
exit 1;
fi
exit ${RETV}