mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2026-01-14 00:22:15 +03:00
doc/examples/Makefile.am: * Use $(VAR), not @VAR@ * Use $(MKDIR_P) instead of $(mkinstalldirs), as the latter is an * obsolete name * Added $(srcdir) qualification to the various test program invocations * in the "tests" target. More work is needed here (notably, when the reference output contains the path to the input file), but this gets things a lot closer to working correctly in an out-of-source build. doc/examples/reader4.res: * Added "./" path qualifiers so that the reader4 test continues to pass cleanly for in-source builds python/tests/Makefile.am: * Symlink in test input files for out-of-source builds
75 lines
1.5 KiB
Makefile
75 lines
1.5 KiB
Makefile
exampledir = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)/examples
|
|
dist_example_DATA = $(PYTESTS) $(XMLS)
|
|
|
|
PYTESTS= \
|
|
build.py \
|
|
attribs.py \
|
|
tst.py \
|
|
tstxpath.py \
|
|
xpathext.py \
|
|
push.py \
|
|
pushSAX.py \
|
|
pushSAXhtml.py \
|
|
error.py \
|
|
serialize.py\
|
|
validate.py \
|
|
tstURI.py \
|
|
cutnpaste.py\
|
|
xpathret.py \
|
|
xpath.py \
|
|
outbuf.py \
|
|
inbuf.py \
|
|
resolver.py \
|
|
regexp.py \
|
|
reader.py \
|
|
reader2.py \
|
|
reader3.py \
|
|
reader4.py \
|
|
reader5.py \
|
|
reader6.py \
|
|
reader7.py \
|
|
reader8.py \
|
|
readernext.py \
|
|
walker.py \
|
|
nsdel.py \
|
|
ctxterror.py\
|
|
readererr.py\
|
|
relaxng.py \
|
|
schema.py \
|
|
thread2.py \
|
|
sync.py \
|
|
tstLastError.py \
|
|
indexes.py \
|
|
dtdvalid.py \
|
|
tstmem.py \
|
|
validDTD.py \
|
|
validSchemas.py \
|
|
validRNG.py \
|
|
compareNodes.py \
|
|
xpathns.py \
|
|
xpathleak.py
|
|
|
|
XMLS= \
|
|
tst.xml \
|
|
valid.xml \
|
|
invalid.xml \
|
|
test.dtd
|
|
|
|
CLEANFILES = core tmp.xml *.pyc
|
|
|
|
if WITH_PYTHON
|
|
tests: $(PYTESTS)
|
|
@for f in $(XMLS) ; do test -f $$f || $(LN_S) $(srcdir)/$$f . ; done
|
|
@echo "## running Python regression tests"
|
|
-@(PYTHONPATH="..:../.libs:$(srcdir)/..:$$PYTHONPATH" ; \
|
|
export PYTHONPATH; \
|
|
LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \
|
|
export LD_LIBRARY_PATH; \
|
|
for test in $(PYTESTS) ; \
|
|
do log=`$(PYTHON) $(srcdir)/$$test` ; \
|
|
if [ "`echo $$log | grep OK`" = "" ] ; then \
|
|
echo "-- $$test" ; echo "$$log" ; fi ; done)
|
|
else
|
|
tests:
|
|
endif
|