[libxml2] Move doc/examples tests to new test suite



commit e59aa6cab4d132a6746d7cce854af53fc5186bba
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Mon Apr 4 05:57:07 2022 +0200

    Move doc/examples tests to new test suite

 Makefile.am              | 4 +---
 doc/examples/Makefile.am | 4 ++--
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 7fbb6381..a230f672 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -182,10 +182,8 @@ asan:
        @echo '## rebuilding for ASAN'
        ./configure CFLAGS="-fsanitize=address,undefined -Wformat -Werror=format-security 
-Werror=array-bounds -g" CXXFLAGS="-fsanitize=address,undefined -Wformat -Werror=format-security 
-Werror=array-bounds -g" LDFLAGS="-fsanitize=address,undefined" CC="clang" CXX="clang++" --disable-shared ; 
OptimOff  ; $(MAKE) clean ; $(MAKE)
 
+# Old test suite. This should be ported to C.
 tests: $(TEST_DEBUG) $(TEST_CATALOG) $(TEST_REGEXPS) $(TEST_SCHEMATRON) Timingtests $(TEST_VTIME) 
$(PYTHON_TESTS)
-       @(if [ "$(PYTHON_SUBDIR)" != "" ] ; then cd python ; \
-           $(MAKE) -s tests ; fi)
-       @(cd doc/examples ; $(MAKE) -s tests)
 
 Scripttests : xmllint$(EXEEXT)
        @(echo > .memdump)
diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
index 27ababe3..a1afb2ba 100644
--- a/doc/examples/Makefile.am
+++ b/doc/examples/Makefile.am
@@ -91,9 +91,9 @@ xpath1_SOURCES = xpath1.c
 xpath2_SOURCES = xpath2.c
 
 valgrind: 
-       $(MAKE) CHECKER='valgrind' tests
+       $(MAKE) CHECKER='valgrind' check
 
-tests: $(check_PROGRAMS)
+check-local:
        @test -f Makefile.am || test -f test1.xml || $(LN_S) $(srcdir)/test?.xml .
        @(echo '## examples regression tests')
        @(echo > .memdump)


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