2008-02-19 07:54:52 +00:00
exampledir = $( datadir) /doc/libxml2-python-$( LIBXML_VERSION) /examples
dist_example_DATA = $( PYTESTS) $( XMLS)
2002-02-02 09:17:16 +00:00
2002-02-07 16:39:11 +00:00
PYTESTS = \
2002-02-04 00:17:01 +00:00
build.py \
2002-03-07 22:21:56 +00:00
attribs.py \
2002-02-02 09:17:16 +00:00
tst.py \
tstxpath.py \
xpathext.py \
2002-02-03 15:08:05 +00:00
push.py \
2002-02-04 14:07:26 +00:00
pushSAX.py \
2002-05-13 10:33:30 +00:00
pushSAXhtml.py \
2002-02-02 21:49:17 +00:00
error.py \
2002-03-06 21:39:42 +00:00
serialize.py\
2002-02-03 16:53:19 +00:00
validate.py \
2002-02-23 10:10:33 +00:00
tstURI.py \
2002-03-07 00:05:35 +00:00
cutnpaste.py\
2002-03-01 16:14:17 +00:00
xpathret.py \
2002-09-12 15:00:57 +00:00
xpath.py \
outbuf.py \
inbuf.py \
2013-02-25 15:54:25 +08:00
input_callback.py \
2002-09-25 22:25:35 +00:00
resolver.py \
2002-12-14 23:00:35 +00:00
regexp.py \
2002-12-27 19:37:04 +00:00
reader.py \
2002-12-28 22:56:33 +00:00
reader2.py \
2003-01-14 11:42:39 +00:00
reader3.py \
2003-04-17 12:55:35 +00:00
reader4.py \
reader5.py \
reader6.py \
2003-10-20 17:07:41 +00:00
reader7.py \
2004-04-18 14:58:57 +00:00
reader8.py \
2005-03-10 14:03:08 +00:00
readernext.py \
2003-10-20 17:07:41 +00:00
walker.py \
2005-04-12 01:02:29 +00:00
nsdel.py \
2003-01-16 22:45:08 +00:00
ctxterror.py\
2003-02-09 23:33:36 +00:00
readererr.py\
2003-05-15 22:11:36 +00:00
relaxng.py \
2004-08-18 09:13:18 +00:00
schema.py \
2004-01-06 22:54:57 +00:00
thread2.py \
2004-07-05 16:46:09 +00:00
sync.py \
2004-02-11 13:25:26 +00:00
tstLastError.py \
2004-11-10 11:55:47 +00:00
indexes.py \
2005-03-02 10:47:41 +00:00
dtdvalid.py \
2005-03-30 22:47:10 +00:00
tstmem.py \
validDTD.py \
validSchemas.py \
2006-06-26 18:25:40 +00:00
validRNG.py \
2008-03-12 09:32:04 +00:00
compareNodes.py \
2008-09-01 13:38:22 +00:00
xpathns.py \
xpathleak.py
2002-02-02 09:17:16 +00:00
XMLS = \
2002-02-03 16:53:19 +00:00
tst.xml \
valid.xml \
2004-11-10 11:55:47 +00:00
invalid.xml \
test.dtd
2002-02-02 09:17:16 +00:00
Various "make distcheck" and portability fixups
Makefile.am:
* Don't use @VAR@, use $(VAR). Autoconf's AC_SUBST provides us the Make
variable, it allows overriding the value at the command line, and
(notably) it avoids a Make parse error in the libxml2_la_LDFLAGS
assignment when @MODULE_PLATFORM_LIBS@ is empty
* Changed how the THREADS_W32 mechanism switches the build between
testThreads.c and testThreadsWin32.c as appropriate; using AM_CONDITIONAL
allows this to work cleanly and plays well with dependencies
* testapi.c should be specified as BUILT_SOURCES
* Create symlinks to the test/ and result/ subdirs so that the runtests
target is usable in out-of-source-tree builds
* Don't do MAKEFLAGS+=--silent as this is not portable to non-GNU Makes
* Fixed incorrect find(1) syntax in the "cleanup" rule, and doing "rm -f"
instead of just "rm" is good form
* (DIST)CLEANFILES needed a bit more coverage to allow "make distcheck" to
pass
configure.in:
* Need AC_PROG_LN_S to create test/ and result/ symlinks in Makefile.am
* AC_LIBTOOL_WIN32_DLL and AM_PROG_LIBTOOL are obsolete; these have been
superceded by LT_INIT
* Don't rebuild docs by default, as this requires GNU Make (as
implemented)
* Check for uint32_t as some platforms don't provide it
* Check for some more functions, and undefine HAVE_MMAP if we don't also
HAVE_MUNMAP (one system I tested on actually needed this)
* Changed THREADS_W32 from a filename insert into an Automake conditional
* The "Copyright" file will not be in the current directory if builddir !=
srcdir
doc/Makefile.am:
* EXTRA_DIST cannot use wildcards when they refer to generated files; this
breaks dependencies. What I did was define EXTRA_DIST_wc, which uses GNU
Make $(wildcard) directives to build up a list of files, and EXTRA_DIST,
as a literal expansion of EXTRA_DIST_wc. I also added a new rule,
"check-extra-dist", to simplify checking that the two variables are
equivalent. (Note that this works only when builddir == srcdir)
(I can implement this differently if desired; this is just one way of
doing it)
* Don't define an "all" target; this steps on Automake's toes
* Fixed up the "libxml2-api.xml ..." rule by using $(wildcard) for
dependencies (as Make doesn't process the wildcards otherwise) and
qualifying appropriate files with $(srcdir)
(Note that $(srcdir) is not needed in the dependencies, thanks to VPATH,
which we can count on as this is GNU-Make-only code anyway)
doc/devhelp/Makefile.am:
* Qualified appropriate files with $(srcdir)
* Added an "uninstall-local" rule so that "make distcheck" passes
doc/examples/Makefile.am:
* Rather than use a wildcard that doesn't work, use a substitution that
most Make programs can handle
doc/examples/index.py:
* Do the same here
include/libxml/nanoftp.h:
* Some platforms (e.g. MSVC 6) already #define INVALID_SOCKET:
user@host:/cygdrive/c/Program Files/Microsoft Visual Studio/VC98/\
Include$ grep -R INVALID_SOCKET .
./WINSOCK.H:#define INVALID_SOCKET (SOCKET)(~0)
./WINSOCK2.H:#define INVALID_SOCKET (SOCKET)(~0)
include/libxml/xmlversion.h.in:
* Support ancient GCCs (I was actually able to build the library with 2.5
but for this bit)
python/Makefile.am:
* Expanded CLEANFILES to allow "make distcheck" to pass
python/tests/Makefile.am:
* Define CLEANFILES instead of a "clean" rule, and added tmp.xml to allow
"make distcheck" to pass
testRelax.c:
* Use HAVE_MMAP instead of the less explicit HAVE_SYS_MMAN_H (as some
systems have the header but not the function)
testSchemas.c:
* Use HAVE_MMAP instead of the less explicit HAVE_SYS_MMAN_H
testapi.c:
* Don't use putenv() if it's not available
threads.c:
* This fixes the following build error on Solaris 8:
libtool: compile: cc -DHAVE_CONFIG_H -I. -I./include -I./include \
-D_REENTRANT -D__EXTENSIONS__ -D_REENTRANT -Dsparc -Xa -mt -v \
-xarch=v9 -xcrossfile -xO5 -c threads.c -KPIC -DPIC -o threads.o
"threads.c", line 442: controlling expressions must have scalar type
"threads.c", line 512: controlling expressions must have scalar type
cc: acomp failed for threads.c
*** Error code 1
trio.c:
* Define isascii() if the system doesn't provide it
trio.h:
* The trio library's HAVE_CONFIG_H header is not the same as LibXML2's
HAVE_CONFIG_H header; this change is needed to avoid a double-inclusion
win32/configure.js:
* Added support for the LZMA compression option
win32/Makefile.{bcb,mingw,msvc}:
* Added appropriate bits to support WITH_LZMA=1
* Install the header files under $(INCPREFIX)\libxml2\libxml instead of
$(INCPREFIX)\libxml, to mirror the install location on Unix+Autotools
xml2-config.in:
* @MODULE_PLATFORM_LIBS@ (usually "-ldl") needs to be in there in order for
`xml2-config --libs` to provide a complete set of dependencies
xmllint.c:
* Use HAVE_MMAP instead of the less-explicit HAVE_SYS_MMAN_H
2012-08-06 11:32:54 +08:00
CLEANFILES = core tmp.xml *.pyc
2002-02-02 09:17:16 +00:00
i f W I T H _ P Y T H O N
2002-02-07 16:40:20 +00:00
tests : $( PYTESTS )
2012-08-07 10:05:34 +08:00
@for f in $( XMLS) ; do test -f $$ f || $( LN_S) $( srcdir) /$$ f . ; done
2004-07-11 14:41:20 +00:00
@echo "## running Python regression tests"
2004-07-05 16:46:09 +00:00
-@( PYTHONPATH = " ..:../.libs: $( srcdir) /..: $$ PYTHONPATH " ; \
export PYTHONPATH; \
2005-02-12 01:08:22 +00:00
LD_LIBRARY_PATH = " $( top_builddir) /.libs: $$ LD_LIBRARY_PATH " ; \
export LD_LIBRARY_PATH; \
2004-07-05 16:46:09 +00:00
for test in $( PYTESTS) ; \
do log = ` $( PYTHON) $( srcdir) /$$ test ` ; \
if [ " `echo $$ log | grep OK` " = "" ] ; then \
echo " -- $$ test " ; echo " $$ log " ; fi ; done )
2002-02-02 09:17:16 +00:00
e l s e
tests :
e n d i f