summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-06-23 23:33:05 -0400
committerRobert Bragg <robert@linux.intel.com>2013-07-09 22:52:50 +0100
commit5e26d17ea7298231255d0680a600ca4af4ddcd4d (patch)
tree7709eaa4013d188fffb1c65af56f2e3fa0059b83 /tests
parent1c3cd742118f9c0c28029b4d2aa5e54f24332394 (diff)
downloadcogl-5e26d17ea7298231255d0680a600ca4af4ddcd4d.tar.gz
Install conformance tests
Install the conformance tests, and metadata to run them with gnome-desktop-testing-runner. https://bugzilla.gnome.org/show_bug.cgi?id=702942 Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 53f3eb421239982b69569ad03ccbfa4b4f601cf3)
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am6
-rw-r--r--tests/conform/Makefile.am21
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index e23762ad..94ba34a6 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -23,3 +23,9 @@ endif
# run make test as part of make check
check-local: test
+
+if ENABLE_INSTALLED_TESTS
+insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)
+insttest_SCRIPTS = run-tests.sh
+insttest_DATA = config.env
+endif
diff --git a/tests/conform/Makefile.am b/tests/conform/Makefile.am
index 475bf638..8cadab1a 100644
--- a/tests/conform/Makefile.am
+++ b/tests/conform/Makefile.am
@@ -199,3 +199,24 @@ DISTCLEANFILES += ../../build/win32/vs9/test-conformance-cogl.vcproj \
# we cannot use CLEANFILES
clean-generic: clean-wrappers
$(QUIET_RM)rm -f .log
+
+
+if ENABLE_INSTALLED_TESTS
+
+insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)/conform
+insttest_PROGRAMS = test-conformance
+insttest_DATA = unit-tests
+
+testmetadir = $(datadir)/installed-tests/$(PACKAGE)
+testmeta_DATA = conform.test
+
+conform.test:
+ echo " GEN $@"; \
+ echo "[Test]" > $@.tmp; \
+ echo "Type=session" >> $@.tmp; \
+ echo "Exec=sh -c \"cd $(libexecdir)/installed-tests/$(PACKAGE)/conform; ../run-tests.sh ../config.env ./test-conformance\"" >> $@.tmp; \
+ mv $@.tmp $@
+
+CLEANFILES = conform.test
+
+endif