mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +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=702941
This commit is contained in:
parent
4d8d5a62f3
commit
e98f32b7c8
@ -191,6 +191,12 @@ AC_ARG_ENABLE([Bsymbolic],
|
||||
AS_IF([test "x$enable_Bsymbolic" = "xyes"], [CLUTTER_LINK_FLAGS=-Wl[,]-Bsymbolic-functions])
|
||||
AC_SUBST(CLUTTER_LINK_FLAGS)
|
||||
|
||||
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)
|
||||
|
||||
AC_CACHE_SAVE
|
||||
|
||||
dnl ========================================================================
|
||||
|
@ -325,5 +325,30 @@ DISTCLEANFILES += \
|
||||
|
||||
# we override the clean-generic target to clean up the wrappers so
|
||||
# we cannot use CLEANFILES
|
||||
clean-generic: clean-wrappers
|
||||
clean-generic: clean-wrappers clean-tests
|
||||
$(QUIET_RM)rm -f $(XML_REPORTS) $(HTML_REPORTS)
|
||||
|
||||
if ENABLE_INSTALLED_TESTS
|
||||
# installed tests
|
||||
insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)/conform
|
||||
insttest_PROGRAMS = test-conformance
|
||||
|
||||
testmetadir = $(datadir)/installed-tests/$(PACKAGE)
|
||||
testmeta_DATA = $(wildcard *.test)
|
||||
|
||||
BUILT_SOURCES += tests
|
||||
endif
|
||||
|
||||
.PHONY: tests clean-tests
|
||||
|
||||
tests: stamp-test-conformance
|
||||
@for i in `cat unit-tests`; do \
|
||||
unit=`basename $$i | sed -e s/_/-/g`; \
|
||||
echo " GEN $$unit"; \
|
||||
echo "[Test]" > $$unit.test; \
|
||||
echo "Type=session" >> $$unit.test; \
|
||||
echo "Exec=$(libexecdir)/installed-tests/$(PACKAGE)/conform/test-conformance -p $$i" >> $$unit.test; \
|
||||
done
|
||||
|
||||
clean-tests:
|
||||
$(QUIET_RM) rm -f *.test
|
||||
|
@ -91,7 +91,7 @@ static TestConformSharedState *shared_state = NULL;
|
||||
gchar *
|
||||
clutter_test_get_data_file (const gchar *filename)
|
||||
{
|
||||
return g_build_filename (TESTS_DATADIR, filename, NULL);
|
||||
return g_test_build_filename (G_TEST_DIST, "..", "data", filename, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -26,3 +26,8 @@ png_files = \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = $(json_files) $(png_files) clutter-1.0.suppressions
|
||||
|
||||
if ENABLE_INSTALLED_TESTS
|
||||
insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)/data
|
||||
insttest_DATA = $(json_files) $(png_files)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user