mirror of
https://github.com/lbonn/rofi
synced 2024-11-10 14:24:27 +00:00
Add config loading test.
This commit is contained in:
parent
bd3d472bec
commit
d370a446f3
2 changed files with 15 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
||||
|
|
13
test/xr_config_test.sh
Executable file
13
test/xr_config_test.sh
Executable file
|
@ -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}
|
Loading…
Reference in a new issue