mirror of
https://github.com/brl/mutter.git
synced 2025-02-09 01:54:10 +00:00
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)
This commit is contained in:
parent
1c3cd74211
commit
5e26d17ea7
11
configure.ac
11
configure.ac
@ -210,6 +210,17 @@ dnl Handle extra configure options
|
|||||||
dnl ================================================================
|
dnl ================================================================
|
||||||
|
|
||||||
|
|
||||||
|
dnl ============================================================
|
||||||
|
dnl Installed tests
|
||||||
|
dnl ============================================================
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(installed_tests,
|
||||||
|
AS_HELP_STRING([--enable-installed-tests],
|
||||||
|
[Install test programs (default: no)]),,
|
||||||
|
[enable_installed_tests=no])
|
||||||
|
AM_CONDITIONAL(ENABLE_INSTALLED_TESTS, test x$enable_installed_tests = xyes)
|
||||||
|
|
||||||
|
|
||||||
dnl ============================================================
|
dnl ============================================================
|
||||||
dnl Emscripten support
|
dnl Emscripten support
|
||||||
dnl ============================================================
|
dnl ============================================================
|
||||||
|
@ -23,3 +23,9 @@ endif
|
|||||||
|
|
||||||
# run make test as part of make check
|
# run make test as part of make check
|
||||||
check-local: test
|
check-local: test
|
||||||
|
|
||||||
|
if ENABLE_INSTALLED_TESTS
|
||||||
|
insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)
|
||||||
|
insttest_SCRIPTS = run-tests.sh
|
||||||
|
insttest_DATA = config.env
|
||||||
|
endif
|
||||||
|
@ -199,3 +199,24 @@ DISTCLEANFILES += ../../build/win32/vs9/test-conformance-cogl.vcproj \
|
|||||||
# we cannot use CLEANFILES
|
# we cannot use CLEANFILES
|
||||||
clean-generic: clean-wrappers
|
clean-generic: clean-wrappers
|
||||||
$(QUIET_RM)rm -f .log
|
$(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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user