summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/help_output_test.sh2
-rwxr-xr-xtest/xr_config_test.sh13
-rwxr-xr-xtest/xr_dump_test.sh2
3 files changed, 2 insertions, 15 deletions
diff --git a/test/help_output_test.sh b/test/help_output_test.sh
index b5f96388..f3787a9f 100755
--- a/test/help_output_test.sh
+++ b/test/help_output_test.sh
@@ -2,7 +2,7 @@
TOP_DIR=$1
-rofi -h -config ${TOP_DIR}/doc/test_xr.txt | awk 'BEGIN{ found=1} /^Monitor/{found=0} {if (found) print }' > help-output.txt
+rofi -h -config ${TOP_DIR}/doc/test_xr.txt | awk 'BEGIN{ found=1} /^Global options:/{found=0} {if (found) print }' > help-output.txt
if ! diff help-output.txt ${TOP_DIR}/doc/help-output.txt > /dev/null
then
diff --git a/test/xr_config_test.sh b/test/xr_config_test.sh
deleted file mode 100755
index 76c13e8d..00000000
--- a/test/xr_config_test.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/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}
diff --git a/test/xr_dump_test.sh b/test/xr_dump_test.sh
index 29be1a57..00460dc3 100755
--- a/test/xr_dump_test.sh
+++ b/test/xr_dump_test.sh
@@ -3,7 +3,7 @@
TOP_DIR=$1
xrdb -retain -load ${TOP_DIR}/doc/test_xr.txt
-rofi -config ${TOP_DIR}/doc/test_xr.txt -dump-xresources > temp.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