mirror of
https://github.com/lbonn/rofi
synced 2024-11-12 23:27:15 +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"
|
echo "Test daemon"
|
||||||
$(top_srcdir)/test/run_test.sh 211 $(top_srcdir)/test/run_daemon_test.sh $(top_builddir)
|
$(top_srcdir)/test/run_test.sh 211 $(top_srcdir)/test/run_daemon_test.sh $(top_builddir)
|
||||||
echo "Test xr dump"
|
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"
|
echo "End tests"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -26,12 +26,8 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
create_fake_x "$1"
|
create_fake_x "$1"
|
||||||
if [ -n "$4" ]
|
|
||||||
then
|
|
||||||
xrdb -load -retain "$4"
|
|
||||||
fi
|
|
||||||
echo "$DISPLAY"
|
echo "$DISPLAY"
|
||||||
$2
|
$2 $4
|
||||||
RES=$?
|
RES=$?
|
||||||
|
|
||||||
destroy_fake_x
|
destroy_fake_x
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/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
|
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
|
then
|
||||||
echo "Dump xresources does not match."
|
echo "Dump xresources does not match."
|
||||||
exit 1;
|
exit 1;
|
||||||
|
|
Loading…
Reference in a new issue