[gtk+] Run reftests repeatedly



commit 42945f0d74e5920da07d60a13f9011980c80a6c9
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 2 22:46:23 2014 -0400

    Run reftests repeatedly
    
    Install test files that run the reftests in the
    Adwaita:dark and HighConstrast themes. It works,
    so why not.

 testsuite/reftests/Makefile.am           |    7 +++++--
 testsuite/reftests/reftests-dark.test.in |    3 +++
 testsuite/reftests/reftests-hc.test.in   |    3 +++
 3 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/testsuite/reftests/Makefile.am b/testsuite/reftests/Makefile.am
index c7f87b6..330da63 100644
--- a/testsuite/reftests/Makefile.am
+++ b/testsuite/reftests/Makefile.am
@@ -372,13 +372,16 @@ substitutions = \
        -e s,@libexecdir\@,$(libexecdir),g \
        $(NULL)
 
-reftests.test: reftests.test.in Makefile
+%.test: %.test.in
        $(AM_V_GEN) sed $(substitutions) $< > $  tmp && mv $  tmp $@
 
 DISTCLEANFILES = reftests.test
 
 testmetadir = $(datadir)/installed-tests/$(PACKAGE)
-testmeta_DATA = reftests.test
+testmeta_DATA =                \
+       reftests.test           \
+       reftests-dark.test      \
+       reftests-hc.test
 endif
 
 -include $(top_srcdir)/git.mk
diff --git a/testsuite/reftests/reftests-dark.test.in b/testsuite/reftests/reftests-dark.test.in
new file mode 100644
index 0000000..da32518
--- /dev/null
+++ b/testsuite/reftests/reftests-dark.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "GTK_THEME=Adwaita:dark @libexecdir@/installed-tests/gtk+/gtk-reftest -k --verbose --output 
$(pwd) --directory @libexecdir@/installed-tests/gtk+/reftests"
+Type=session-exclusive
diff --git a/testsuite/reftests/reftests-hc.test.in b/testsuite/reftests/reftests-hc.test.in
new file mode 100644
index 0000000..c69d249
--- /dev/null
+++ b/testsuite/reftests/reftests-hc.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "GTK_THEME=HighContrast @libexecdir@/installed-tests/gtk+/gtk-reftest -k --verbose --output 
$(pwd) --directory @libexecdir@/installed-tests/gtk+/reftests"
+Type=session-exclusive


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]