mirror of
https://github.com/lbonn/rofi
synced 2024-11-10 14:24:27 +00:00
Update test
This commit is contained in:
parent
c5258f9b51
commit
e102e11637
3 changed files with 6 additions and 8 deletions
|
@ -191,7 +191,7 @@ test-x: ${bin_PROGRAMS}
|
|||
echo "Test daemon"
|
||||
$(top_srcdir)/test/run_test.sh 211 $(top_srcdir)/test/run_daemon_test.sh $(top_builddir)
|
||||
echo "Test xr dump"
|
||||
$(top_srcdir)/test/run_test.sh 212 $(top_srcdir)/test/xr_dump_test.sh $(top_builddir)
|
||||
$(top_srcdir)/test/run_test.sh 212 $(top_srcdir)/test/xr_dump_test.sh $(top_builddir) $(top_srcdir)
|
||||
echo "End tests"
|
||||
|
||||
|
||||
|
|
|
@ -26,12 +26,8 @@ then
|
|||
fi
|
||||
|
||||
create_fake_x "$1"
|
||||
if [ -n "$4" ]
|
||||
then
|
||||
xrdb -load -retain "$4"
|
||||
fi
|
||||
echo "$DISPLAY"
|
||||
$2
|
||||
$2 $4
|
||||
RES=$?
|
||||
|
||||
destroy_fake_x
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
xrdb -retain -load ../doc/test_xr.txt
|
||||
TOP_DIR=$1
|
||||
|
||||
xrdb -retain -load ${TOP_DIR}/doc/test_xr.txt
|
||||
rofi -dump-xresources > temp.txt
|
||||
|
||||
if ! diff temp.txt ../doc/test_xr.txt > /dev/null
|
||||
if ! diff temp.txt ${TOP_DIR}/doc/test_xr.txt > /dev/null
|
||||
then
|
||||
echo "Dump xresources does not match."
|
||||
exit 1;
|
||||
|
|
Loading…
Reference in a new issue