[PATCH weston] Add --with-tests-environment option to configure
U. Artie Eoff
ullysses.a.eoff at intel.com
Fri May 4 12:18:55 PDT 2012
From: "U. Artie Eoff" <ullysses.a.eoff at intel.com>
The --with-tests-environment allows one to specify a custom tests
environment script. This is useful for customizing and/or
normalizing test result output to whatever format necessary
(e.g. xml).
Signed-off-by: U. Artie Eoff <ullysses.a.eoff at intel.com>
---
configure.ac | 7 +++++++
tests/Makefile.am | 4 ++++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 26c4283..2783b3c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -189,6 +189,13 @@ AC_SUBST(GCC_CFLAGS)
WAYLAND_SCANNER_RULES(['$(top_srcdir)/protocol'])
+AC_ARG_WITH(tests-environment, AS_HELP_STRING([--with-tests-environment=PATH],
+ [Absolute path to user supplied custom tests environment]), [TESTS_ENVIRONMENT_PATH="$withval"],
+ [])
+AC_SUBST([TESTS_ENVIRONMENT_PATH])
+AM_CONDITIONAL(HAVE_CUSTOM_TESTS_ENVIRONMENT,
+ test x$TESTS_ENVIRONMENT_PATH != x)
+
AC_CONFIG_FILES([Makefile
shared/Makefile
src/Makefile
diff --git a/tests/Makefile.am b/tests/Makefile.am
index fe9698f..e25abb0 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,6 +1,10 @@
TESTS = surface-test.la client-test.la event-test.la
+if HAVE_CUSTOM_TESTS_ENVIRONMENT
+TESTS_ENVIRONMENT = @TESTS_ENVIRONMENT_PATH@
+else
TESTS_ENVIRONMENT = $(SHELL) $(top_srcdir)/tests/weston-test
+endif
export abs_builddir
--
1.7.7.6
More information about the wayland-devel
mailing list