[gegl] tests/xml: Use LOG_COMPILER and AM_TESTS_ENVIRONMENT



commit 7373faf60f89c31cf842cb552956c9dfa4967978
Author: Quentin Glidic <sardemff7+git sardemff7 net>
Date:   Sat Feb 2 12:52:52 2013 +0100

    tests/xml: Use LOG_COMPILER and AM_TESTS_ENVIRONMENT
    
    TESTS_ENVIRONMENT is deprecated and should be reserved to the user to
    override the test environment
    
    LOG_COMPILER is meant to contain the program that runs the test
    AM_LOG_FLAGS is meant to contain the program's options
    AM_TESTS_ENVIRONMENT is meant to set the environment for the tests
    
    Signed-off-by: Quentin Glidic <sardemff7+git sardemff7 net>

 tests/xml/Makefile.am |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/tests/xml/Makefile.am b/tests/xml/Makefile.am
index 039d475..f8462d0 100644
--- a/tests/xml/Makefile.am
+++ b/tests/xml/Makefile.am
@@ -1,10 +1,16 @@
 SUBDIRS = data
 
 # Make the tests run against the build and not the installation
-TESTS_ENVIRONMENT = \
-	GEGL_PATH=$(top_builddir)/operations/ \
-	ABS_TOP_BUILDDIR=$(top_builddir) \
-	ABS_TOP_SRCDIR=$(top_srcdir) gtester -k --verbose
+AM_TESTS_ENVIRONMENT = \
+	GEGL_PATH=$(top_builddir)/operations/; export GEGL_PATH; \
+	ABS_TOP_BUILDDIR=$(top_builddir); export ABS_TOP_BUILDDIR; \
+	ABS_TOP_SRCDIR=$(top_srcdir); export ABS_TOP_SRCDIR;
+
+LOG_COMPILER = \
+	gtester
+
+AM_LOG_FLAGS = \
+	-k --verbose
 
 # The tests
 noinst_PROGRAMS = \



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