[gobject-introspection] tests: Use Automake test harness for warning tests



commit beb7a5689446a9fb2ff1d9b68b113d7855fa5126
Author: Simon Feltman <sfeltman src gnome org>
Date:   Fri Dec 20 03:36:47 2013 -0800

    tests: Use Automake test harness for warning tests
    
    Update warning tests to use the Automake test harness per-header
    file check. This allows for quicker more granular testing, for example:
    
    cd tests/warn
    make check TESTS=return-gobject.h
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720713

 tests/warn/Makefile.am    |    9 ++++-----
 tests/warn/warntestrunner |    8 --------
 2 files changed, 4 insertions(+), 13 deletions(-)
---
diff --git a/tests/warn/Makefile.am b/tests/warn/Makefile.am
index bce4562..1620ae1 100644
--- a/tests/warn/Makefile.am
+++ b/tests/warn/Makefile.am
@@ -1,8 +1,6 @@
 include $(top_srcdir)/common.mk
 
-TESTS = warntestrunner
-
-alltests = \
+TESTS = \
        annotationparser.h \
        callback-invalid-scope.h \
        callback-missing-scope.h \
@@ -19,6 +17,7 @@ alltests = \
        unknown-parameter.h \
        unresolved-type.h
 
-EXTRA_DIST = warningtester.py $(alltests) common.h $(TESTS)
+TESTS_ENVIRONMENT = PYTHONPATH=$(top_builddir):$(top_srcdir) TOP_BUILDDIR=$(top_builddir) 
UNINSTALLED_INTROSPECTION_SRCDIR=$(top_srcdir) \
+       $(PYTHON) $(srcdir)/warningtester.py
 
-TESTS_ENVIRONMENT = PYTHONPATH=$(top_builddir):$(top_srcdir) TOP_BUILDDIR=$(top_builddir) 
UNINSTALLED_INTROSPECTION_SRCDIR=$(top_srcdir) PYTHON=$(PYTHON) srcdir=$(srcdir) alltests="$(alltests)"
+EXTRA_DIST = warningtester.py common.h $(TESTS)


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