diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-01-03 18:13:41 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-01-03 18:13:41 +0100 |
commit | d370a446f398f412462c3feef8a2f77453f1512a (patch) | |
tree | 79a468ea5230d93a19b27df1f42c545812aa23e5 | |
parent | bd3d472bec60babf29cc84d98a35dd7b3edd200a (diff) |
Add config loading test.
-rw-r--r-- | Makefile.am | 2 | ||||
-rwxr-xr-x | test/xr_config_test.sh | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index f67a6fc0..71a9c850 100644 --- a/Makefile.am +++ b/Makefile.am @@ -200,6 +200,8 @@ test-x: ${bin_PROGRAMS} $(top_srcdir)/test/run_test.sh 215 $(top_srcdir)/test/run_regex_test.sh $(top_builddir) echo "Test dmenu glob" $(top_srcdir)/test/run_test.sh 216 $(top_srcdir)/test/run_glob_test.sh $(top_builddir) + echo "Test config dump" + $(top_srcdir)/test/run_test.sh 217 $(top_srcdir)/test/xr_config_test.sh $(top_builddir) $(top_srcdir) echo "End tests" 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} |