1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-24 06:50:08 +03:00

Simplify 'make check' targets

This commit is contained in:
Nick Wellnhofer 2022-04-04 05:19:33 +02:00
parent f60e219325
commit 3f74e42bae
4 changed files with 17 additions and 28 deletions

View File

@ -158,30 +158,25 @@ runxmlconf_LDADD= $(LDADDS)
#testOOM_DEPENDENCIES = $(DEPS)
#testOOM_LDADD= $(LDADDS)
runtests: runtest$(EXEEXT) testrecurse$(EXEEXT) testapi$(EXEEXT) \
testchar$(EXEEXT) testdict$(EXEEXT) runxmlconf$(EXEEXT) \
testModule$(EXEEXT) testThreads$(EXEEXT)
check-local:
[ -d test ] || $(LN_S) $(srcdir)/test .
[ -d result ] || $(LN_S) $(srcdir)/result .
$(CHECKER) ./runtest$(EXEEXT) && \
$(CHECKER) ./testrecurse$(EXEEXT) && \
ASAN_OPTIONS="$$ASAN_OPTIONS:detect_leaks=0" $(CHECKER) ./testapi$(EXEEXT) && \
$(CHECKER) ./testchar$(EXEEXT) && \
$(CHECKER) ./testdict$(EXEEXT) && \
$(CHECKER) ./testModule$(EXEEXT) && \
$(CHECKER) ./testThreads$(EXEEXT) && \
$(CHECKER) ./runxmlconf$(EXEEXT)
@cd fuzz; $(MAKE) tests
if WITH_PYTHON
@cd python && $(MAKE) tests
endif
$(CHECKER) ./runtest$(EXEEXT)
$(CHECKER) ./testrecurse$(EXEEXT)
ASAN_OPTIONS="$$ASAN_OPTIONS:detect_leaks=0" $(CHECKER) ./testapi$(EXEEXT)
$(CHECKER) ./testchar$(EXEEXT)
$(CHECKER) ./testdict$(EXEEXT)
$(CHECKER) ./testModule$(EXEEXT)
$(CHECKER) ./testThreads$(EXEEXT)
$(CHECKER) ./runxmlconf$(EXEEXT)
check: all runtests
# Compatibility name of the check target
runtests: check
check-valgrind valgrind: all
check-valgrind valgrind:
@echo '## Running the regression tests under Valgrind'
@echo '## Go get a cup of coffee it is gonna take a while ...'
$(MAKE) CHECKER='valgrind -q' runtests
$(MAKE) CHECKER='valgrind -q' check
asan:
@echo '## rebuilding for ASAN'

View File

@ -24,14 +24,13 @@ XML_SEED_CORPUS_SRC = \
testFuzzer_SOURCES = testFuzzer.c fuzz.c
.PHONY: tests corpus clean-corpus
.PHONY: corpus clean-corpus
corpus: seed/html.stamp seed/regexp.stamp seed/schema.stamp seed/uri.stamp \
seed/xml.stamp seed/xpath.stamp
tests: testFuzzer$(EXEEXT) corpus
@echo "## Running fuzzer tests"
@./testFuzzer$(EXEEXT)
check-local: corpus
./testFuzzer$(EXEEXT)
clean-corpus:
rm -rf seed

View File

@ -51,6 +51,3 @@ all-local: drv_libxml2.py libxml2.py
$(GENERATED): $(srcdir)/generator.py $(API_DESC)
$(PYTHON) $(srcdir)/generator.py $(srcdir)
endif
tests test: all
cd tests && $(MAKE) tests

View File

@ -59,7 +59,7 @@ XMLS= \
CLEANFILES = core tmp.xml *.pyc
if WITH_PYTHON
tests: $(PYTESTS)
check-local:
@for f in $(XMLS) ; do test -f $$f || $(LN_S) $(srcdir)/$$f . ; done
@echo "## running Python regression tests"
@(export PYTHONPATH="..:../.libs:$(srcdir)/..:$$PYTHONPATH" ; \
@ -73,6 +73,4 @@ tests: $(PYTESTS)
exit 1 ; \
fi ; \
done)
else
tests:
endif