From d370a446f398f412462c3feef8a2f77453f1512a Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sun, 3 Jan 2016 18:13:41 +0100 Subject: Add config loading test. --- test/xr_config_test.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 test/xr_config_test.sh (limited to 'test') diff --git a/test/xr_config_test.sh b/test/xr_config_test.sh new file mode 100755 index 00000000..76c13e8d --- /dev/null +++ b/test/xr_config_test.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +TOP_DIR=$1 + +rofi -dump-xresources -config ${TOP_DIR}/doc/test_xr.txt > 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} -- cgit v1.2.3