1998-07-24 23:24:09 +04:00
## Process this file with automake to produce Makefile.in
2001-06-30 01:31:07 +04:00
2010-03-09 13:32:46 +03:00
ACLOCAL_AMFLAGS = -I m4
2020-06-05 13:49:25 +03:00
SUBDIRS = include . doc example fuzz xstc $( PYTHON_SUBDIR)
1999-02-06 21:12:01 +03:00
2020-10-25 22:02:23 +03:00
DIST_SUBDIRS = include . doc example fuzz python xstc
2002-09-21 17:08:14 +04:00
2012-08-17 06:04:30 +04:00
AM_CPPFLAGS = -I$( top_builddir) /include -I$( srcdir) /include
2017-11-12 20:22:23 +03:00
AM_CFLAGS = $( EXTRA_CFLAGS) $( THREAD_CFLAGS) $( Z_CFLAGS) $( LZMA_CFLAGS)
1999-06-23 01:49:07 +04:00
2017-06-17 16:44:50 +03:00
check_PROGRAMS = testSchemas testRelax testSAX testHTML testXPath testURI \
testThreads testC14N testAutomata testRegexp \
testReader testapi testModule runtest runsuite testchar \
testdict runxmlconf testrecurse testlimits
1998-10-17 10:47:46 +04:00
2001-08-20 04:08:40 +04:00
bin_PROGRAMS = xmllint xmlcatalog
2000-09-24 22:49:59 +04:00
2001-02-23 20:55:21 +03:00
bin_SCRIPTS = xml2-config
lib_LTLIBRARIES = libxml2.la
2012-08-28 18:16:50 +04:00
libxml2_la_LIBADD = $( ICU_LIBS) $( THREAD_LIBS) $( Z_LIBS) $( LZMA_LIBS) $( ICONV_LIBS) $( M_LIBS) $( WIN32_EXTRA_LIBADD)
2001-02-23 20:55:21 +03:00
2009-08-20 21:17:36 +04:00
i f U S E _ V E R S I O N _ S C R I P T
LIBXML2_VERSION_SCRIPT = $( VERSION_SCRIPT_FLAGS) $( srcdir) /libxml2.syms
e l s e
LIBXML2_VERSION_SCRIPT =
e n d i f
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 07:32:54 +04:00
libxml2_la_LDFLAGS = $( CYGWIN_EXTRA_LDFLAGS) $( WIN32_EXTRA_LDFLAGS) \
$( LIBXML2_VERSION_SCRIPT) \
-version-info $( LIBXML_VERSION_INFO) \
$( MODULE_PLATFORM_LIBS)
2001-02-23 20:55:21 +03:00
2012-07-03 09:13:59 +04:00
i f W I T H _ S A X 1 _ S O U R C E S
docb_sources = DOCBparser.c
e l s e
docb_sources =
e n d i f
2001-05-02 20:41:11 +04:00
i f W I T H _ T R I O _ S O U R C E S
2012-07-03 09:13:59 +04:00
trio_sources = triostr.c trio.c
2001-05-02 20:41:11 +04:00
e l s e
2012-07-03 09:13:59 +04:00
trio_sources =
e n d i f
2001-05-02 20:41:11 +04:00
libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \
parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \
valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \
2012-07-03 09:13:59 +04:00
xpointer.c xinclude.c nanohttp.c nanoftp.c \
$( docb_sources) \
2012-07-11 12:48:47 +04:00
catalog.c globals.c threads.c c14n.c xmlstring.c buf.c \
2002-12-09 17:13:43 +03:00
xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \
2012-07-03 09:13:59 +04:00
$( trio_sources) \
2003-09-28 22:58:27 +04:00
xmlreader.c relaxng.c dict.c SAX2.c \
2005-01-04 18:10:22 +03:00
xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c \
2012-01-26 12:56:22 +04:00
xmlmodule.c schematron.c xzlib.c
2001-02-23 20:55:21 +03:00
DEPS = $( top_builddir) /libxml2.la
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 07:32:54 +04:00
LDADDS = $( STATIC_BINARIES) $( top_builddir) /libxml2.la $( THREAD_LIBS) $( Z_LIBS) $( LZMA_LIBS) $( ICONV_LIBS) $( M_LIBS) $( WIN32_EXTRA_LIBADD)
2003-08-14 05:23:25 +04:00
2001-02-23 20:55:21 +03:00
2002-03-06 21:42:40 +03:00
man_MANS = xml2-config.1 libxml.3
2001-02-23 20:55:21 +03:00
m4datadir = $( datadir) /aclocal
m4data_DATA = libxml.m4
2005-06-27 01:49:08 +04:00
runtest_SOURCES = runtest.c
runtest_LDFLAGS =
runtest_DEPENDENCIES = $( DEPS)
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 07:32:54 +04:00
runtest_LDADD = $( BASE_THREAD_LIBS) $( RDL_LIBS) $( LDADDS)
2005-06-30 17:04:44 +04:00
2008-08-28 19:36:32 +04:00
testrecurse_SOURCES = testrecurse.c
testrecurse_LDFLAGS =
testrecurse_DEPENDENCIES = $( DEPS)
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 07:32:54 +04:00
testrecurse_LDADD = $( BASE_THREAD_LIBS) $( RDL_LIBS) $( LDADDS)
2008-08-28 19:36:32 +04:00
2012-07-18 13:43:34 +04:00
testlimits_SOURCES = testlimits.c
testlimits_LDFLAGS =
testlimits_DEPENDENCIES = $( DEPS)
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 07:32:54 +04:00
testlimits_LDADD = $( BASE_THREAD_LIBS) $( RDL_LIBS) $( LDADDS)
2012-07-18 13:43:34 +04:00
2008-07-29 13:02:27 +04:00
testchar_SOURCES = testchar.c
testchar_LDFLAGS =
testchar_DEPENDENCIES = $( DEPS)
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 07:32:54 +04:00
testchar_LDADD = $( RDL_LIBS) $( LDADDS)
2008-07-29 13:02:27 +04:00
2008-08-08 16:03:22 +04:00
testdict_SOURCES = testdict.c
testdict_LDFLAGS =
testdict_DEPENDENCIES = $( DEPS)
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 07:32:54 +04:00
testdict_LDADD = $( RDL_LIBS) $( LDADDS)
2008-08-08 16:03:22 +04:00
2005-06-30 17:04:44 +04:00
runsuite_SOURCES = runsuite.c
runsuite_LDFLAGS =
runsuite_DEPENDENCIES = $( DEPS)
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 07:32:54 +04:00
runsuite_LDADD = $( RDL_LIBS) $( LDADDS)
2005-06-27 01:49:08 +04:00
2001-02-23 20:55:21 +03:00
xmllint_SOURCES = xmllint.c
2000-04-03 23:48:13 +04:00
xmllint_LDFLAGS =
xmllint_DEPENDENCIES = $( DEPS)
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 07:32:54 +04:00
xmllint_LDADD = $( RDL_LIBS) $( LDADDS)
1998-07-24 23:24:09 +04:00
2001-02-23 20:55:21 +03:00
testSAX_SOURCES = testSAX.c
1999-06-02 21:44:04 +04:00
testSAX_LDFLAGS =
testSAX_DEPENDENCIES = $( DEPS)
2001-02-23 20:55:21 +03:00
testSAX_LDADD = $( LDADDS)
1999-06-02 21:44:04 +04:00
2001-02-23 20:55:21 +03:00
testHTML_SOURCES = testHTML.c
1999-07-05 20:50:46 +04:00
testHTML_LDFLAGS =
testHTML_DEPENDENCIES = $( DEPS)
2001-02-23 20:55:21 +03:00
testHTML_LDADD = $( LDADDS)
1999-07-05 20:50:46 +04:00
2001-08-20 04:08:40 +04:00
xmlcatalog_SOURCES = xmlcatalog.c
xmlcatalog_LDFLAGS =
xmlcatalog_DEPENDENCIES = $( DEPS)
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 07:32:54 +04:00
xmlcatalog_LDADD = $( RDL_LIBS) $( LDADDS)
2001-05-10 18:17:55 +04:00
2001-02-23 20:55:21 +03:00
testXPath_SOURCES = testXPath.c
1999-07-15 18:24:29 +04:00
testXPath_LDFLAGS =
testXPath_DEPENDENCIES = $( DEPS)
2001-02-23 20:55:21 +03:00
testXPath_LDADD = $( LDADDS)
1999-07-15 18:24:29 +04:00
2002-03-04 20:09:44 +03:00
testC14N_SOURCES = testC14N.c
testC14N_LDFLAGS =
testC14N_DEPENDENCIES = $( DEPS)
testC14N_LDADD = $( LDADDS)
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 07:32:54 +04:00
testThreads_SOURCES = testThreads.c
2001-10-17 15:30:37 +04:00
testThreads_LDFLAGS =
testThreads_DEPENDENCIES = $( DEPS)
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 07:32:54 +04:00
testThreads_LDADD = $( BASE_THREAD_LIBS) $( LDADDS)
2001-10-17 15:30:37 +04:00
2001-02-23 20:55:21 +03:00
testURI_SOURCES = testURI.c
2000-04-03 23:48:13 +04:00
testURI_LDFLAGS =
testURI_DEPENDENCIES = $( DEPS)
2001-02-23 20:55:21 +03:00
testURI_LDADD = $( LDADDS)
2000-04-03 23:48:13 +04:00
2002-04-16 19:50:10 +04:00
testRegexp_SOURCES = testRegexp.c
testRegexp_LDFLAGS =
testRegexp_DEPENDENCIES = $( DEPS)
testRegexp_LDADD = $( LDADDS)
testAutomata_SOURCES = testAutomata.c
testAutomata_LDFLAGS =
testAutomata_DEPENDENCIES = $( DEPS)
testAutomata_LDADD = $( LDADDS)
testSchemas_SOURCES = testSchemas.c
testSchemas_LDFLAGS =
testSchemas_DEPENDENCIES = $( DEPS)
testSchemas_LDADD = $( LDADDS)
2003-01-23 21:29:16 +03:00
testRelax_SOURCES = testRelax.c
testRelax_LDFLAGS =
testRelax_DEPENDENCIES = $( DEPS)
testRelax_LDADD = $( LDADDS)
2002-12-09 17:13:43 +03:00
testReader_SOURCES = testReader.c
testReader_LDFLAGS =
testReader_DEPENDENCIES = $( DEPS)
testReader_LDADD = $( LDADDS)
2005-01-04 18:10:22 +03:00
testModule_SOURCES = testModule.c
testModule_LDFLAGS =
testModule_DEPENDENCIES = $( DEPS)
testModule_LDADD = $( LDADDS)
noinst_LTLIBRARIES = testdso.la
testdso_la_SOURCES = testdso.c
2010-03-10 12:07:49 +03:00
testdso_la_LDFLAGS = -module -no-undefined -avoid-version -rpath $( libdir)
2005-01-04 18:10:22 +03:00
2005-01-26 02:45:06 +03:00
# that one forces the rebuild when "make rebuild" is run on doc/
rebuild_testapi :
-@( if [ " $( PYTHON) " != "" ] ; then \
$( PYTHON) $( srcdir) /gentest.py $( srcdir) ; fi )
# that one is just to make sure it is rebuilt if missing
# but adding the dependances generate mess
2008-09-01 17:08:57 +04:00
testapi.c : $( srcdir ) /gentest .py
2004-12-23 18:56:12 +03:00
-@( if [ " $( PYTHON) " != "" ] ; then \
$( PYTHON) $( srcdir) /gentest.py $( srcdir) ; fi )
2004-11-02 17:52:23 +03: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 07:32:54 +04:00
BUILT_SOURCES = testapi.c
2004-11-02 17:52:23 +03:00
testapi_SOURCES = testapi.c
testapi_LDFLAGS =
testapi_DEPENDENCIES = $( DEPS)
testapi_LDADD = $( LDADDS)
2008-07-29 20:12:31 +04:00
runxmlconf_SOURCES = runxmlconf.c
runxmlconf_LDFLAGS =
runxmlconf_DEPENDENCIES = $( DEPS)
runxmlconf_LDADD = $( LDADDS)
2003-04-24 21:12:57 +04:00
#testOOM_SOURCES=testOOM.c testOOMlib.h testOOMlib.c
#testOOM_LDFLAGS =
#testOOM_DEPENDENCIES = $(DEPS)
#testOOM_LDADD= $(LDADDS)
2003-04-24 20:06:47 +04:00
2017-06-17 16:44:50 +03:00
runtests : runtest $( EXEEXT ) testrecurse $( EXEEXT ) testapi $( EXEEXT ) \
testchar$( EXEEXT) testdict$( EXEEXT) runxmlconf$( EXEEXT)
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 07:32:54 +04:00
[ -d test ] || $( LN_S) $( srcdir) /test .
[ -d result ] || $( LN_S) $( srcdir) /result .
2017-05-31 20:06:30 +03:00
$( CHECKER) ./runtest$( EXEEXT) && \
$( CHECKER) ./testrecurse$( EXEEXT) && \
ASAN_OPTIONS = " $$ ASAN_OPTIONS:detect_leaks=0 " $( CHECKER) ./testapi$( EXEEXT) && \
$( CHECKER) ./testchar$( EXEEXT) && \
$( CHECKER) ./testdict$( EXEEXT) && \
$( CHECKER) ./runxmlconf$( EXEEXT)
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 07:32:54 +04:00
@( if [ " $( PYTHON_SUBDIR) " != "" ] ; then cd python ; \
$( MAKE) tests ; fi )
2020-06-05 13:49:25 +03:00
@cd fuzz; $( MAKE) tests
2008-07-29 20:44:59 +04:00
2008-07-31 12:20:02 +04:00
check : all runtests
1999-03-06 01:14:01 +03:00
2012-08-24 12:38:54 +04:00
check-valgrind valgrind : all
2008-08-08 16:14:37 +04:00
@echo '## Running the regression tests under Valgrind'
@echo '## Go get a cup of coffee it is gonna take a while ...'
2012-08-24 12:38:54 +04:00
$( MAKE) CHECKER = 'valgrind -q' runtests
2008-08-08 16:14:37 +04:00
2016-05-04 07:33:32 +03:00
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)
2000-10-01 19:53:30 +04:00
testall : tests SVGtests SAXtests
1999-08-10 23:04:08 +04: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 07:32:54 +04:00
tests : XMLtests XMLenttests NStests IDtests Errtests APItests $( READER_TEST ) $( TEST_SAX ) $( TEST_PUSH ) $( TEST_HTML ) $( TEST_PHTML ) $( TEST_VALID ) URItests $( TEST_PATTERN ) $( TEST_XPATH ) $( TEST_XPTR ) $( TEST_XINCLUDE ) $( TEST_C 14N ) $( TEST_DEBUG ) $( TEST_CATALOG ) $( TEST_REGEXPS ) $( TEST_SCHEMAS ) $( TEST_SCHEMATRON ) $( TEST_THREADS ) Timingtests $( TEST_VTIME ) $( PYTHON_TESTS ) $( TEST_MODULES )
@( if [ " $( PYTHON_SUBDIR) " != "" ] ; then cd python ; \
2017-06-12 20:25:01 +03:00
$( MAKE) -s tests ; fi )
@( cd doc/examples ; $( MAKE) -s tests)
1999-06-02 21:44:04 +04:00
2004-11-09 19:17:02 +03:00
APItests : testapi $( EXEEXT )
@echo "## Running the API regression tests this may take a little while"
2017-05-31 20:06:30 +03:00
-@( ASAN_OPTIONS = " $$ ASAN_OPTIONS:detect_leaks=0 " $( CHECKER) $( top_builddir) /testapi -q)
2004-11-09 19:17:02 +03:00
2002-02-08 17:20:35 +03:00
HTMLtests : testHTML $( EXEEXT )
2001-05-03 14:49:20 +04:00
@( echo > .memdump)
1999-08-10 23:04:08 +04:00
@echo "## HTML regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/HTML/* ; do \
1999-08-10 23:04:08 +04:00
name = ` basename $$ i` ; \
1999-07-07 11:32:15 +04:00
if [ ! -d $$ i ] ; then \
1999-08-10 23:04:08 +04:00
if [ ! -f $( srcdir) /result/HTML/$$ name ] ; then \
echo New test file $$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /testHTML $$ i > $( srcdir) /result/HTML/$$ name 2>$( srcdir) /result/HTML/$$ name.err ; \
1999-07-07 11:32:15 +04:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /testHTML $$ i > result.$$ name 2> error.$$ name ; \
2000-08-13 01:12:04 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
1999-08-10 23:04:08 +04:00
diff $( srcdir) /result/HTML/$$ name result.$$ name ; \
2000-08-13 01:12:04 +04:00
diff -b $( srcdir) /result/HTML/$$ name.err error.$$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /testHTML result.$$ name > result2.$$ name 2>error.$$ name ; \
2003-10-03 02:28:19 +04:00
diff result.$$ name result2.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
1999-10-14 13:10:25 +04:00
rm result.$$ name result2.$$ name error.$$ name ; \
1999-07-07 11:32:15 +04:00
fi ; fi ; done )
2003-09-30 16:36:01 +04:00
HTMLPushtests : testHTML $( EXEEXT )
2000-08-13 01:12:04 +04:00
@echo "## Push HTML regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/HTML/* ; do \
2000-08-13 01:12:04 +04:00
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/HTML/$$ name ] ; then \
echo New test file $$ name ; \
2004-06-25 09:49:08 +04:00
$( CHECKER) $( top_builddir) /testHTML --push $$ i > $( srcdir) /result/HTML/$$ name 2>$( srcdir) /result/HTML/$$ name.err ; \
2000-08-13 01:12:04 +04:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /testHTML --push $$ i > result.$$ name 2> error.$$ name ; \
2000-08-13 01:12:04 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/HTML/$$ name result.$$ name ; \
cut -b 1-15 $( srcdir) /result/HTML/$$ name.err > errorcut.$$ name; \
cut -b 1-15 error.$$ name > errorcut2.$$ name; \
diff -b errorcut.$$ name errorcut2.$$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /testHTML --push result.$$ name > result2.$$ name 2>error.$$ name ; \
2003-10-03 02:28:19 +04:00
diff result.$$ name result2.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2000-08-13 01:12:04 +04:00
rm result.$$ name result2.$$ name error.$$ name errorcut.$$ name errorcut2.$$ name ; \
fi ; fi ; done )
@echo "## HTML SAX regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/HTML/* ; do \
2000-08-13 01:12:04 +04:00
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/HTML/$$ name.sax ] ; then \
echo New test file $$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /testHTML --sax $$ i > $( srcdir) /result/HTML/$$ name.sax ; \
2000-08-13 01:12:04 +04:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /testHTML --sax $$ i > result.$$ name.sax ; \
2000-08-13 01:12:04 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/HTML/$$ name.sax result.$$ name.sax` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2000-08-13 01:12:04 +04:00
rm result.$$ name.sax ; \
fi ; fi ; done )
@echo "## Push HTML SAX regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/HTML/* ; do \
2000-08-13 01:12:04 +04:00
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/HTML/$$ name ] ; then \
echo New test file $$ name ; \
2004-06-25 09:49:08 +04:00
$( CHECKER) $( top_builddir) /testHTML --push --sax $$ i > $( srcdir) /result/HTML/$$ name.sax ; \
2000-08-13 01:12:04 +04:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /testHTML --push --sax $$ i 2>& 1 > result.$$ name.sax ; \
2000-08-13 01:12:04 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/HTML/$$ name.sax result.$$ name.sax` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2000-08-13 01:12:04 +04:00
rm result.$$ name.sax ; \
fi ; fi ; done )
2002-02-08 17:20:35 +03:00
XMLtests : xmllint $( EXEEXT )
2001-05-03 14:49:20 +04:00
@( echo > .memdump)
1999-08-10 23:04:08 +04:00
@echo "## XML regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/* ; do \
1999-08-10 23:04:08 +04:00
name = ` basename $$ i` ; \
1999-06-02 21:44:04 +04:00
if [ ! -d $$ i ] ; then \
1999-08-10 23:04:08 +04:00
if [ ! -f $( srcdir) /result/$$ name ] ; then \
echo New test file $$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /xmllint $$ i > $( srcdir) /result/$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
1999-06-02 21:44:04 +04:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint $$ i 2>& 1 > result.$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
1999-08-10 23:04:08 +04:00
diff $( srcdir) /result/$$ name result.$$ name ; \
2003-10-03 02:28:19 +04:00
$( CHECKER) $( top_builddir) /xmllint result.$$ name 2>& 1 > result2.$$ name | grep -v 'failed to load external entity' ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff result.$$ name result2.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
1999-08-10 23:04:08 +04:00
rm result.$$ name result2.$$ name ; \
1999-06-02 21:44:04 +04:00
fi ; fi ; done )
2003-09-30 16:36:01 +04:00
@echo "## XML regression tests on memory"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/* ; do \
2001-06-27 20:34:34 +04:00
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/$$ name ] ; then \
echo New test file $$ name ; \
2003-09-30 16:36:01 +04:00
$( CHECKER) $( top_builddir) /xmllint --memory $$ i > $( srcdir) /result/$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2001-06-27 20:34:34 +04:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint --memory $$ i 2>& 1 > result.$$ name ; \
2003-09-30 16:36:01 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2001-06-27 20:34:34 +04:00
diff $( srcdir) /result/$$ name result.$$ name ; \
2003-10-03 02:28:19 +04:00
$( CHECKER) $( top_builddir) /xmllint --memory result.$$ name 2>& 1 > result2.$$ name | grep -v 'failed to load external entity' ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2001-06-27 20:34:34 +04:00
diff result.$$ name result2.$$ name ; \
rm result.$$ name result2.$$ name ; \
fi ; fi ; done )
2003-09-30 16:36:01 +04:00
XMLPushtests : xmllint $( EXEEXT )
@( echo > .memdump)
@echo "## XML push regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/* ; do \
2000-12-27 13:46:47 +03:00
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/$$ name ] ; then \
echo New test file $$ name ; \
2003-09-30 16:36:01 +04:00
$( CHECKER) $( top_builddir) /xmllint --push $$ i > $( srcdir) /result/$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2000-12-27 13:46:47 +03:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint --push $$ i 2>& 1 > result.$$ name ; \
2003-09-30 16:36:01 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2000-12-27 13:46:47 +03:00
diff $( srcdir) /result/$$ name result.$$ name ; \
2003-10-03 02:28:19 +04:00
$( CHECKER) $( top_builddir) /xmllint --push result.$$ name 2>& 1 > result2.$$ name | grep -v 'failed to load external entity' ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff result.$$ name result2.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2000-12-27 13:46:47 +03:00
rm result.$$ name result2.$$ name ; \
fi ; fi ; done )
1999-06-02 21:44:04 +04:00
2003-09-12 03:42:01 +04:00
NStests : xmllint $( EXEEXT )
@( echo > .memdump)
@echo "## XML Namespaces regression tests"
-@( for i in $( srcdir) /test/namespaces/* ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/namespaces/$$ name ] ; then \
echo New test file $$ name ; \
$( CHECKER) $( top_builddir) /xmllint $$ i \
2> $( srcdir) /result/namespaces/$$ name.err \
> $( srcdir) /result/namespaces/$$ name ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint $$ i 2> error.$$ name > result.$$ name ; \
2003-09-12 03:42:01 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/namespaces/$$ name result.$$ name ; \
2004-10-26 20:06:51 +04:00
diff $( srcdir) /result/namespaces/$$ name.err error.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2003-09-12 03:42:01 +04:00
rm result.$$ name error.$$ name ; \
fi ; fi ; done )
2004-04-10 01:51:49 +04:00
IDtests : xmllint $( EXEEXT ) testXPath $( EXEEXT )
@( echo > .memdump)
@echo "## xml:id regression tests"
-@( for i in $( srcdir) /test/xmlid/id_*.xml ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/xmlid/$$ name ] ; then \
echo New test file $$ name ; \
$( CHECKER) $( top_builddir) /testXPath -i $$ i "id('bar')" \
2> $( srcdir) /result/xmlid/$$ name.err \
> $( srcdir) /result/xmlid/$$ name ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
log = ` $( CHECKER) $( top_builddir) /testXPath -i $$ i "id('bar')" 2> error.$$ name > result.$$ name ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/xmlid/$$ name result.$$ name ; \
diff $( srcdir) /result/xmlid/$$ name.err error.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2004-04-10 01:51:49 +04:00
rm result.$$ name error.$$ name ; \
fi ; fi ; done )
2004-02-21 14:53:09 +03:00
Errtests : xmllint $( EXEEXT )
@( echo > .memdump)
@echo "## Error cases regression tests"
-@( for i in $( srcdir) /test/errors/*.xml ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/errors/$$ name ] ; then \
echo New test file $$ name ; \
$( CHECKER) $( top_builddir) /xmllint $$ i \
2> $( srcdir) /result/errors/$$ name.err \
> $( srcdir) /result/errors/$$ name ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
log = ` $( CHECKER) $( top_builddir) /xmllint $$ i 2> error.$$ name > result.$$ name ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/errors/$$ name result.$$ name ; \
diff $( srcdir) /result/errors/$$ name.err error.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2017-06-05 16:37:17 +03:00
rm result.$$ name error.$$ name ; \
fi ; fi ; done )
@echo "## Error cases regression tests (old 1.0)"
-@( for i in $( srcdir) /test/errors10/*.xml ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/errors10/$$ name ] ; then \
echo New test file $$ name ; \
$( CHECKER) $( top_builddir) /xmllint --oldxml10 $$ i \
2> $( srcdir) /result/errors10/$$ name.err \
> $( srcdir) /result/errors10/$$ name ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
log = ` $( CHECKER) $( top_builddir) /xmllint --oldxml10 $$ i 2> error.$$ name > result.$$ name ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/errors10/$$ name result.$$ name ; \
diff $( srcdir) /result/errors10/$$ name.err error.$$ name` ; \
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2004-02-21 14:53:09 +03:00
rm result.$$ name error.$$ name ; \
fi ; fi ; done )
@echo "## Error cases stream regression tests"
-@( for i in $( srcdir) /test/errors/*.xml ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/errors/$$ name.str ] ; then \
echo New test file $$ name ; \
2004-06-14 23:58:20 +04:00
$( CHECKER) $( top_builddir) /xmllint --stream $$ i \
2004-02-21 14:53:09 +03:00
2> $( srcdir) /result/errors/$$ name.str \
2005-01-21 18:10:23 +03:00
> /dev/null ; \
2004-02-21 14:53:09 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
2005-01-21 18:10:23 +03:00
log = ` $( CHECKER) $( top_builddir) /xmllint --stream $$ i 2> error.$$ name > /dev/null ; \
2004-02-21 14:53:09 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/errors/$$ name.str error.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2005-01-21 18:10:23 +03:00
rm error.$$ name ; \
2004-02-21 14:53:09 +03:00
fi ; fi ; done )
2002-02-08 17:20:35 +03:00
Docbtests : xmllint $( EXEEXT )
2001-10-22 13:46:13 +04:00
2002-02-08 17:20:35 +03:00
XMLenttests : xmllint $( EXEEXT )
2001-05-03 14:49:20 +04:00
@( echo > .memdump)
1999-08-10 23:04:08 +04:00
@echo "## XML entity subst regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/* ; do \
1999-08-10 23:04:08 +04:00
name = ` basename $$ i` ; \
1998-07-24 23:24:09 +04:00
if [ ! -d $$ i ] ; then \
1999-08-10 23:04:08 +04:00
if [ ! -f $( srcdir) /result/noent/$$ name ] ; then \
echo New test file $$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /xmllint --noent $$ i > $( srcdir) /result/noent/$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
1998-07-24 23:24:09 +04:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint --noent $$ i 2>& 1 > result.$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
1999-08-10 23:04:08 +04:00
diff $( srcdir) /result/noent/$$ name result.$$ name ; \
2003-10-03 02:28:19 +04:00
$( CHECKER) $( top_builddir) /xmllint --noent result.$$ name 2>& 1 > result2.$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff result.$$ name result2.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
1999-08-10 23:04:08 +04:00
rm result.$$ name result2.$$ name ; \
1998-07-24 23:24:09 +04:00
fi ; fi ; done )
2002-02-08 17:20:35 +03:00
URItests : testURI $( EXEEXT )
2001-05-03 14:49:20 +04:00
@( echo > .memdump)
2000-09-04 15:15:39 +04:00
@echo "## URI module regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/URI/*.data ; do \
2000-09-04 15:15:39 +04:00
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/URI/$$ name ] ; then \
echo New test file $$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$ i > $( srcdir) /result/URI/$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2000-09-04 15:15:39 +04:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$ i 2>& 1 > result.$$ name ; \
2000-09-04 15:15:39 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/URI/$$ name result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2000-09-04 15:15:39 +04:00
rm result.$$ name ; \
fi ; fi ; done )
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/URI/*.uri ; do \
2001-02-02 20:07:32 +03:00
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/URI/$$ name ] ; then \
echo New test file $$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /testURI < $$ i > $( srcdir) /result/URI/$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2001-02-02 20:07:32 +03:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /testURI < $$ i 2>& 1 > result.$$ name ; \
2001-02-02 20:07:32 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/URI/$$ name result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2001-02-02 20:07:32 +03:00
rm result.$$ name ; \
fi ; fi ; done )
2000-09-04 15:15:39 +04:00
2002-02-08 17:20:35 +03:00
XPathtests : testXPath $( EXEEXT )
2001-05-03 14:49:20 +04:00
@( echo > .memdump)
1999-08-10 23:04:08 +04:00
@echo "## XPath regression tests"
2002-01-24 18:02:46 +03:00
-@( if [ " ` $( top_builddir) /testXPath | grep 'support not compiled in'` " != "" ] ; \
2001-06-21 15:20:21 +04:00
then echo Skipping debug not compiled in ; exit 0 ; fi ; \
for i in $( srcdir) /test/XPath/expr/* ; do \
1999-08-10 23:04:08 +04:00
name = ` basename $$ i` ; \
1999-07-15 18:24:29 +04:00
if [ ! -d $$ i ] ; then \
1999-08-10 23:04:08 +04:00
if [ ! -f $( srcdir) /result/XPath/expr/$$ name ] ; then \
echo New test file $$ name ; \
2017-06-12 20:25:01 +03:00
$( CHECKER) $( top_builddir) /testXPath -f --expr $$ i > $( srcdir) /result/XPath/expr/$$ name 2> /dev/null ; \
2001-03-19 02:17:47 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
1999-07-15 18:24:29 +04:00
else \
2017-06-12 20:25:01 +03:00
log = ` $( CHECKER) $( top_builddir) /testXPath -f --expr $$ i > result.$$ name 2> /dev/null ; \
2001-03-19 02:17:47 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/XPath/expr/$$ name result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
1999-08-10 23:04:08 +04:00
rm result.$$ name ; \
2001-06-21 15:20:21 +04:00
fi ; fi ; done ; \
for i in $( srcdir) /test/XPath/docs/* ; do \
1999-07-15 18:24:29 +04:00
if [ ! -d $$ i ] ; then \
1999-08-10 23:04:08 +04:00
doc = ` basename $$ i` ; \
for j in $( srcdir) /test/XPath/tests/$$ doc* ; do \
2000-10-11 03:50:30 +04:00
if [ ! -f $$ j ] ; then continue ; fi ; \
1999-08-10 23:04:08 +04:00
name = ` basename $$ j` ; \
1999-07-15 18:24:29 +04:00
if [ ! -d $$ j ] ; then \
1999-08-10 23:04:08 +04:00
if [ ! -f $( srcdir) /result/XPath/tests/$$ name ] ; then \
echo New test file $$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /testXPath -f -i $$ i $$ j > $( srcdir) /result/XPath/tests/$$ name ; \
2001-03-19 02:17:47 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
1999-07-15 18:24:29 +04:00
else \
2017-06-12 20:25:01 +03:00
log = ` $( CHECKER) $( top_builddir) /testXPath -f -i $$ i $$ j > result.$$ name ; \
2001-03-19 02:17:47 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/XPath/tests/$$ name result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
1999-08-10 23:04:08 +04:00
rm result.$$ name ; \
1999-07-15 18:24:29 +04:00
fi ; fi ; done ; fi ; done )
2002-02-08 17:20:35 +03:00
XPtrtests : testXPath $( EXEEXT )
2001-05-03 14:49:20 +04:00
@( echo > .memdump)
2000-10-11 03:50:30 +04:00
@echo "## XPointer regression tests"
2002-01-24 18:02:46 +03:00
-@( if [ " ` $( top_builddir) /testXPath | grep 'support not compiled in'` " != "" ] ; \
2001-06-21 15:20:21 +04:00
then echo Skipping debug not compiled in ; exit 0 ; fi ; \
for i in $( srcdir) /test/XPath/docs/* ; do \
2000-10-11 03:50:30 +04:00
if [ ! -d $$ i ] ; then \
doc = ` basename $$ i` ; \
for j in $( srcdir) /test/XPath/xptr/$$ doc* ; do \
if [ ! -f $$ j ] ; then continue ; fi ; \
name = ` basename $$ j` ; \
if [ ! -d $$ j ] ; then \
if [ ! -f $( srcdir) /result/XPath/xptr/$$ name ] ; then \
echo New test file $$ name ; \
2017-06-12 20:25:01 +03:00
$( CHECKER) $( top_builddir) /testXPath -xptr -f -i $$ i $$ j > $( srcdir) /result/XPath/xptr/$$ name 2> /dev/null ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2000-10-11 03:50:30 +04:00
else \
2017-06-12 20:25:01 +03:00
log = ` $( CHECKER) $( top_builddir) /testXPath -xptr -f -i $$ i $$ j > result.$$ name 2> /dev/null ; \
2000-10-11 03:50:30 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/XPath/xptr/$$ name result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2000-10-11 03:50:30 +04:00
rm result.$$ name ; \
fi ; fi ; done ; fi ; done )
2002-02-08 17:20:35 +03:00
XIncludetests : xmllint $( EXEEXT )
2001-05-03 14:49:20 +04:00
@( echo > .memdump)
2000-11-12 18:56:56 +03:00
@echo "## XInclude regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/XInclude/docs/* ; do \
2000-11-12 18:56:56 +03:00
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/XInclude/$$ name ] ; then \
echo New test file $$ name ; \
2003-12-09 14:35:37 +03:00
$( CHECKER) $( top_builddir) /xmllint --nowarning --xinclude $$ i > $( srcdir) /result/XInclude/$$ name 2> $( srcdir) /result/XInclude/$$ name.err ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2000-11-12 18:56:56 +03:00
else \
2004-08-15 01:46:31 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint --nowarning --xinclude $$ i > result.$$ name 2>error.$$ name ; \
2000-11-12 18:56:56 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-12-09 14:35:37 +03:00
diff $( srcdir) /result/XInclude/$$ name result.$$ name ; \
diff $( srcdir) /result/XInclude/$$ name.err error.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2003-12-09 14:35:37 +03:00
rm result.$$ name error.$$ name ; \
2000-11-12 18:56:56 +03:00
fi ; fi ; done )
2004-08-16 16:34:50 +04:00
-@( for i in $( srcdir) /test/XInclude/docs/* ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/XInclude/$$ name ] ; then \
echo New test file $$ name ; \
$( CHECKER) $( top_builddir) /xmllint --nowarning --noxincludenode $$ i > $( srcdir) /result/XInclude/$$ name 2> $( srcdir) /result/XInclude/$$ name.err ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
log = ` $( CHECKER) $( top_builddir) /xmllint --nowarning --noxincludenode $$ i > result.$$ name 2>error.$$ name ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/XInclude/$$ name result.$$ name ; \
diff $( srcdir) /result/XInclude/$$ name.err error.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2004-08-16 16:34:50 +04:00
rm result.$$ name error.$$ name ; \
fi ; fi ; done )
2003-11-03 15:31:38 +03:00
@( echo > .memdump)
@echo "## XInclude xmlReader regression tests"
-@( for i in $( srcdir) /test/XInclude/docs/* ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/XInclude/$$ name.rdr ] ; then \
echo New test file $$ name ; \
2004-06-25 09:49:08 +04:00
$( CHECKER) $( top_builddir) /xmllint --nowarning --xinclude --stream --debug $$ i > $( srcdir) /result/XInclude/$$ name.rdr ; \
2003-11-03 15:31:38 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
2004-08-15 01:46:31 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint --nowarning --xinclude --stream --debug $$ i > result.$$ name 2>error.$$ name ; \
2003-11-03 15:31:38 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-12-09 14:35:37 +03:00
diff $( srcdir) /result/XInclude/$$ name.err error.$$ name ; \
2003-11-03 15:31:38 +03:00
diff $( srcdir) /result/XInclude/$$ name.rdr result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2003-12-09 14:35:37 +03:00
rm result.$$ name error.$$ name ; \
2003-11-03 15:31:38 +03:00
fi ; fi ; done )
2004-08-16 16:34:50 +04:00
-@( for i in $( srcdir) /test/XInclude/docs/* ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/XInclude/$$ name.rdr ] ; then \
echo New test file $$ name ; \
$( CHECKER) $( top_builddir) /xmllint --nowarning --noxincludenode --stream --debug $$ i > $( srcdir) /result/XInclude/$$ name.rdr ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
log = ` $( CHECKER) $( top_builddir) /xmllint --nowarning --xinclude --stream --debug $$ i > result.$$ name 2>error.$$ name ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/XInclude/$$ name.err error.$$ name ; \
diff $( srcdir) /result/XInclude/$$ name.rdr result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2004-08-16 16:34:50 +04:00
rm result.$$ name error.$$ name ; \
fi ; fi ; done )
2000-11-12 18:56:56 +03:00
2002-02-08 17:20:35 +03:00
Scripttests : xmllint $( EXEEXT )
2001-07-09 20:01:19 +04:00
@( echo > .memdump)
@echo "## Scripts regression tests"
@echo "## Some of the base computations may be different if srcdir != ."
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/scripts/*.script ; do \
2001-07-09 20:01:19 +04:00
name = ` basename $$ i .script` ; \
xml = $( srcdir) /test/scripts/` basename $$ i .script` .xml; \
if [ -f $$ xml ] ; then \
if [ ! -f $( srcdir) /result/scripts/$$ name ] ; then \
echo New test file $$ name ; \
2004-08-16 04:39:03 +04:00
$( CHECKER) $( top_builddir) /xmllint --shell $$ xml < $$ i > $( srcdir) /result/scripts/$$ name 2> $( srcdir) /result/scripts/$$ name.err ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2001-07-09 20:01:19 +04:00
else \
2004-08-16 04:39:03 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint --shell $$ xml < $$ i > result.$$ name 2> result.$$ name.err ; \
2001-07-09 20:01:19 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2004-08-16 04:39:03 +04:00
diff $( srcdir) /result/scripts/$$ name result.$$ name ; \
diff $( srcdir) /result/scripts/$$ name.err result.$$ name.err` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2004-08-16 04:39:03 +04:00
rm result.$$ name result.$$ name.err ; \
2001-07-09 20:01:19 +04:00
fi ; fi ; done )
2002-02-08 17:20:35 +03:00
Catatests : xmlcatalog $( EXEEXT )
2001-08-21 14:56:31 +04:00
@( echo > .memdump)
@echo "## Catalog regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/catalogs/*.script ; do \
2001-08-21 14:56:31 +04:00
name = ` basename $$ i .script` ; \
xml = $( srcdir) /test/catalogs/` basename $$ i .script` .xml; \
if [ -f $$ xml ] ; then \
if [ ! -f $( srcdir) /result/catalogs/$$ name ] ; then \
echo New test file $$ name ; \
2004-06-25 09:49:08 +04:00
$( CHECKER) $( top_builddir) /xmlcatalog --shell $$ xml < $$ i 2>& 1 > $( srcdir) /result/catalogs/$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2001-08-21 14:56:31 +04:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmlcatalog --shell $$ xml < $$ i 2>& 1 > result.$$ name ; \
2001-08-21 14:56:31 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/catalogs/$$ name result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2001-08-21 14:56:31 +04:00
rm result.$$ name ; \
fi ; fi ; done )
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/catalogs/*.script ; do \
2001-11-06 18:24:37 +03:00
name = ` basename $$ i .script` ; \
sgml = $( srcdir) /test/catalogs/` basename $$ i .script` .sgml; \
if [ -f $$ sgml ] ; then \
if [ ! -f $( srcdir) /result/catalogs/$$ name ] ; then \
echo New test file $$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /xmlcatalog --shell $$ sgml < $$ i > $( srcdir) /result/catalogs/$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2001-11-06 18:24:37 +03:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmlcatalog --shell $$ sgml < $$ i > result.$$ name ; \
2001-11-06 18:24:37 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/catalogs/$$ name result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2001-11-06 18:24:37 +03:00
rm result.$$ name ; \
fi ; fi ; done )
2003-10-03 02:28:19 +04:00
@echo "## Add and del operations on XML Catalogs"
2002-11-15 14:21:43 +03:00
-@( $( CHECKER) $( top_builddir) /xmlcatalog --create --noout $( srcdir) /result/catalogs/mycatalog; \
2001-11-06 18:24:37 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2002-11-15 14:21:43 +03:00
$( CHECKER) $( top_builddir) /xmlcatalog --noout --add public Pubid sysid $( srcdir) /result/catalogs/mycatalog; \
2001-11-06 18:24:37 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2002-11-15 14:21:43 +03:00
$( CHECKER) $( top_builddir) /xmlcatalog --noout --add public Pubid2 sysid2 $( srcdir) /result/catalogs/mycatalog; \
2001-11-06 18:24:37 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2002-11-15 14:21:43 +03:00
$( CHECKER) $( top_builddir) /xmlcatalog --noout --add public Pubid3 sysid3 $( srcdir) /result/catalogs/mycatalog; \
2001-11-06 18:24:37 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2002-11-15 14:21:43 +03:00
diff result/catalogs/mycatalog.full $( srcdir) /result/catalogs/mycatalog; \
2001-11-06 18:24:37 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2002-11-15 14:21:43 +03:00
$( CHECKER) $( top_builddir) /xmlcatalog --noout --del sysid $( srcdir) /result/catalogs/mycatalog; \
2001-11-06 18:24:37 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2002-11-15 14:21:43 +03:00
$( CHECKER) $( top_builddir) /xmlcatalog --noout --del sysid3 $( srcdir) /result/catalogs/mycatalog; \
2001-11-06 18:24:37 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2002-11-15 14:21:43 +03:00
$( CHECKER) $( top_builddir) /xmlcatalog --noout --del sysid2 $( srcdir) /result/catalogs/mycatalog; \
2001-11-06 18:24:37 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2002-11-15 14:21:43 +03:00
diff result/catalogs/mycatalog.empty $( srcdir) /result/catalogs/mycatalog; \
2001-11-06 18:24:37 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2002-11-15 14:21:43 +03:00
rm -f $( srcdir) /result/catalogs/mycatalog)
2001-08-21 14:56:31 +04:00
2002-02-08 17:20:35 +03:00
SVGtests : xmllint $( EXEEXT )
1999-08-10 23:04:08 +04:00
@echo "## SVG parsing regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/SVG/* ; do \
1999-08-10 23:04:08 +04:00
name = ` basename $$ i` ; \
1999-06-02 21:44:04 +04:00
if [ ! -d $$ i ] ; then \
1999-08-10 23:04:08 +04:00
if [ ! -f $( srcdir) /result/SVG/$$ name ] ; then \
echo New test file $$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /xmllint $$ i > $( srcdir) /result/SVG/$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
1999-06-02 21:44:04 +04:00
else \
1999-08-10 23:04:08 +04:00
echo Testing $$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /xmllint $$ i > result.$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
1999-08-10 23:04:08 +04:00
diff $( srcdir) /result/SVG/$$ name result.$$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /xmllint result.$$ name > result2.$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
1999-08-10 23:04:08 +04:00
diff result.$$ name result2.$$ name ; \
rm result.$$ name result2.$$ name ; \
1999-06-02 21:44:04 +04:00
fi ; fi ; done )
2002-02-08 17:20:35 +03:00
Threadtests : testThreads $( EXEEXT )
2001-10-17 15:30:37 +04:00
@echo "## Threaded regression tests"
2003-10-04 02:21:51 +04:00
-@( $( CHECKER) $( top_builddir) /testThreads ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
exit 0)
2001-10-17 15:30:37 +04:00
2003-09-17 03:17:26 +04:00
Readertests : xmllint $( EXEEXT )
2003-09-15 18:50:06 +04:00
@( echo > .memdump)
@echo "## Reader regression tests"
-@( for i in $( srcdir) /test/* ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/$$ name.rdr ] ; then \
echo New test file $$ name ; \
$( CHECKER) $( top_builddir) /xmllint --nonet --debug --stream $$ i > $( srcdir) /result/$$ name.rdr 2>/dev/null ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint --nonet --debug --stream $$ i > result.$$ name 2>/dev/null ; \
2003-09-15 18:50:06 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/$$ name.rdr result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2003-09-15 18:50:06 +04:00
rm result.$$ name ; \
fi ; fi ; done )
2003-09-18 17:35:51 +04:00
@echo "## Reader on memory regression tests"
-@( for i in $( srcdir) /test/* ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/$$ name.rdr ] ; then \
echo New test file $$ name ; \
$( CHECKER) $( top_builddir) /xmllint --memory --nonet --debug --stream $$ i > $( srcdir) /result/$$ name.rdr 2>/dev/null ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint --memory --nonet --debug --stream $$ i > result.$$ name 2>/dev/null ; \
2003-09-18 17:35:51 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/$$ name.rdr result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2003-09-18 17:35:51 +04:00
rm result.$$ name ; \
fi ; fi ; done )
2003-11-03 15:31:38 +03:00
@( echo > .memdump)
@echo "## Walker regression tests"
-@( for i in $( srcdir) /test/* ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/$$ name.rdr ] ; then \
echo New test file $$ name ; \
$( CHECKER) $( top_builddir) /xmllint --nonet --debug --walker $$ i > $( srcdir) /result/$$ name.rdr 2>/dev/null ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
log = ` $( CHECKER) $( top_builddir) /xmllint --nonet --debug --walker $$ i > result.$$ name 2>/dev/null ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/$$ name.rdr result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2003-11-03 15:31:38 +03:00
rm result.$$ name ; \
fi ; fi ; done )
2004-06-08 16:03:41 +04:00
@echo "## Reader entities substitution regression tests"
-@( for i in $( srcdir) /test/* ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/$$ name.rde ] ; then \
echo New test file $$ name ; \
$( CHECKER) $( top_builddir) /xmllint --noent --nonet --debug --stream $$ i > $( srcdir) /result/$$ name.rde 2>/dev/null ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
log = ` $( CHECKER) $( top_builddir) /xmllint --noent --nonet --debug --stream $$ i > result.$$ name 2>/dev/null ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/$$ name.rde result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2004-06-08 16:03:41 +04:00
rm result.$$ name ; \
fi ; fi ; done )
2002-02-08 17:20:35 +03:00
SAXtests : testSAX $( EXEEXT )
2001-05-03 14:49:20 +04:00
@( echo > .memdump)
2005-06-27 14:40:55 +04:00
@echo "## SAX1 callbacks regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/* ; do \
1999-08-10 23:04:08 +04:00
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
2003-09-03 17:10:37 +04:00
if [ ! -f $( srcdir) /result/$$ name.sax ] ; then \
1999-08-10 23:04:08 +04:00
echo New test file $$ name ; \
2003-10-05 17:51:35 +04:00
$( CHECKER) $( top_builddir) /testSAX $$ i > $( srcdir) /result/$$ name.sax 2> /dev/null ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
1999-08-10 23:04:08 +04:00
else \
2003-10-05 17:51:35 +04:00
log = ` $( CHECKER) $( top_builddir) /testSAX $$ i > result.$$ name 2> /dev/null ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/$$ name.sax result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
1999-08-10 23:04:08 +04:00
rm result.$$ name ; \
2005-06-27 14:40:55 +04:00
fi ; fi ; done )
@echo "## SAX2 callbacks regression tests"
-@( for i in $( srcdir) /test/* ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/$$ name.sax2 ] ; then \
echo New test file $$ name ; \
$( CHECKER) $( top_builddir) /testSAX --sax2 $$ i > $( srcdir) /result/$$ name.sax2 2> /dev/null ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
log = ` $( CHECKER) $( top_builddir) /testSAX --sax2 $$ i > result.$$ name 2> /dev/null ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/$$ name.sax2 result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2005-06-27 14:40:55 +04:00
rm result.$$ name ; \
1999-08-10 23:04:08 +04:00
fi ; fi ; done )
2017-06-16 22:38:57 +03:00
@echo "## SAX2 callbacks regression tests with entity substitution"
-@( for i in $( srcdir) /test/* ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/noent/$$ name.sax2 ] ; then \
echo New test file $$ name ; \
$( CHECKER) $( top_builddir) /testSAX --sax2 --noent $$ i > $( srcdir) /result/noent/$$ name.sax2 2> /dev/null ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
log = ` $( CHECKER) $( top_builddir) /testSAX --sax2 --noent $$ i > result.$$ name 2> /dev/null ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/noent/$$ name.sax2 result.$$ name` ; \
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
rm result.$$ name ; \
fi ; fi ; done )
1998-09-07 21:27:57 +04:00
2002-02-08 17:20:35 +03:00
Validtests : xmllint $( EXEEXT )
2001-05-03 14:49:20 +04:00
@( echo > .memdump)
2001-04-20 17:03:48 +04:00
@echo "## Valid documents regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/VCM/* ; do \
2001-04-20 17:03:48 +04:00
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint --valid --noout --nowarning $$ i ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2001-04-20 17:03:48 +04:00
fi ; done ; exit 0)
1999-08-10 23:04:08 +04:00
@echo "## Validity checking regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/VC/* ; do \
1999-08-10 23:04:08 +04:00
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/VC/$$ name ] ; then \
echo New test file $$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /xmllint --noout --valid $$ i 2> $( srcdir) /result/VC/$$ name ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
1999-08-10 23:04:08 +04:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint --noout --valid $$ i 2> result.$$ name ; \
2001-04-20 17:03:48 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/VC/$$ name result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
1999-08-10 23:04:08 +04:00
rm result.$$ name ; \
fi ; fi ; done )
2001-04-20 17:03:48 +04:00
@echo "## General documents valid regression tests"
2002-01-24 18:02:46 +03:00
-@( for i in $( srcdir) /test/valid/* ; do \
1999-08-10 23:04:08 +04:00
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/valid/$$ name ] ; then \
echo New test file $$ name ; \
2002-03-19 17:36:46 +03:00
$( CHECKER) $( top_builddir) /xmllint --valid $$ i > $( srcdir) /result/valid/$$ name 2>$( srcdir) /result/valid/$$ name.err ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
1999-08-10 23:04:08 +04:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint --valid $$ i > result.$$ name 2>error.$$ name ; \
2001-04-20 17:03:48 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
1999-08-10 23:04:08 +04:00
diff $( srcdir) /result/valid/$$ name result.$$ name ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/valid/$$ name.err error.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
1999-10-25 17:15:52 +04:00
rm result.$$ name error.$$ name ; \
1999-08-10 23:04:08 +04:00
fi ; fi ; done )
1998-09-07 21:27:57 +04:00
2002-04-16 19:50:10 +04:00
Regexptests : testRegexp $( EXEEXT )
@( echo > .memdump)
@echo "## Regexp regression tests"
-@( for i in $( srcdir) /test/regexp/* ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/regexp/$$ name ] ; then \
echo New test file $$ name ; \
2020-07-06 13:36:27 +03:00
$( CHECKER) $( top_builddir) /testRegexp -i $$ i > $( srcdir) /result/regexp/$$ name 2> $( srcdir) /result/regexp/$$ name.err ; \
if [ ! -s " $( srcdir) /result/regexp/ $$ name.err " ] ; then rm $( srcdir) /result/regexp/$$ name.err; fi ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2002-04-16 19:50:10 +04:00
else \
2020-07-06 13:36:27 +03:00
log = ` $( CHECKER) $( top_builddir) /testRegexp -i $$ i > result.$$ name 2> error.$$ name ; \
2002-04-16 19:50:10 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2020-07-06 13:36:27 +03:00
diff $( srcdir) /result/regexp/$$ name result.$$ name ; \
if [ -s " $( srcdir) /result/regexp/ $$ name.err " -o -s " error. $$ name " ] ; then diff $( srcdir) /result/regexp/$$ name.err error.$$ name ; fi ` ; \
if [ -n " $$ log " ] ; then echo $$ name result ; echo $$ log ; fi ; \
rm result.$$ name error.$$ name ; \
2002-04-16 19:50:10 +04:00
fi ; fi ; done )
2019-09-26 13:11:39 +03:00
# Disabled for now
Exptests : testRegexp $( EXEEXT )
2020-03-08 19:19:42 +03:00
@echo "## Formal expressions regression tests"
2005-08-22 16:58:05 +04:00
-@( for i in $( srcdir) /test/expr/* ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/expr/$$ name ] ; then \
echo New test file $$ name ; \
$( CHECKER) $( top_builddir) /testRegexp --expr -i $$ i > $( srcdir) /result/expr/$$ name; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
log = ` $( CHECKER) $( top_builddir) /testRegexp --expr -i $$ i 2>& 1 > result.$$ name ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/expr/$$ name result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2005-08-22 16:58:05 +04:00
rm result.$$ name ; \
fi ; fi ; done )
2002-04-16 19:50:10 +04:00
Automatatests : testAutomata $( EXEEXT )
@( echo > .memdump)
@echo "## Automata regression tests"
-@( for i in $( srcdir) /test/automata/* ; do \
name = ` basename $$ i` ; \
if [ ! -d $$ i ] ; then \
if [ ! -f $( srcdir) /result/automata/$$ name ] ; then \
echo New test file $$ name ; \
$( CHECKER) $( top_builddir) /testAutomata $$ i > $( srcdir) /result/automata/$$ name; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2002-04-16 19:50:10 +04:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /testAutomata $$ i 2>& 1 > result.$$ name ; \
2002-04-16 19:50:10 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-03 02:28:19 +04:00
diff $( srcdir) /result/automata/$$ name result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2002-04-16 19:50:10 +04:00
rm result.$$ name ; \
fi ; fi ; done )
2008-01-11 10:19:24 +03:00
dba100000.xml : dbgenattr .pl
2003-09-18 02:33:22 +04:00
@echo "## generating dba100000.xml"
2008-01-11 10:19:24 +03:00
@( $( PERL) $( top_srcdir) /dbgenattr.pl 100000 > dba100000.xml)
2003-09-18 02:33:22 +04:00
2008-01-11 10:19:24 +03:00
Timingtests : xmllint $( EXEEXT ) dba 100000.xml
2003-09-18 02:33:22 +04:00
@echo "## Timing tests to try to detect performance"
@echo "## as well a memory usage breakage when streaming"
2003-09-25 01:23:56 +04:00
@echo "## 1/ using the file interface"
@echo "## 2/ using the memory interface"
@echo "## 3/ repeated DOM parsing"
@echo "## 4/ repeated DOM validation"
2008-01-11 10:19:24 +03:00
-@( $( top_builddir) /xmllint --stream --timing dba100000.xml; \
2003-09-19 02:03:46 +04:00
MEM = ` cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}' ` ; \
if [ " $$ MEM " != "" ] ; then echo Using $$ MEM bytes ; fi ; \
2003-09-18 02:33:22 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
exit 0)
2008-01-11 10:19:24 +03:00
-@( $( top_builddir) /xmllint --stream --timing --memory dba100000.xml; \
2003-09-19 02:03:46 +04:00
MEM = ` cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}' ` ; \
if [ " $$ MEM " != "" ] ; then echo Using $$ MEM bytes ; fi ; \
2003-09-18 02:33:22 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
exit 0)
2004-02-26 12:57:32 +03:00
-@( $( top_builddir) /xmllint --noout --timing --repeat $( srcdir) /test/valid/REC-xml-19980210.xml; \
2003-09-25 01:23:56 +04:00
MEM = ` cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}' ` ; \
if [ " $$ MEM " != "" ] ; then echo Using $$ MEM bytes ; fi ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
exit 0)
2003-09-28 22:58:27 +04:00
VTimingtests : xmllint $( EXEEXT )
2004-02-26 12:57:32 +03:00
-@( $( top_builddir) /xmllint --noout --timing --valid --repeat $( srcdir) /test/valid/REC-xml-19980210.xml; \
2003-09-25 01:23:56 +04:00
MEM = ` cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}' ` ; \
if [ " $$ MEM " != "" ] ; then echo Using $$ MEM bytes ; fi ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
exit 0)
2003-09-18 02:33:22 +04:00
2002-05-31 10:32:32 +04:00
C14Ntests : testC 14N $( EXEEXT )
2002-06-04 08:27:06 +04:00
@echo "## C14N and XPath regression tests"
2009-07-09 12:26:22 +04:00
-@( for m in with-comments without-comments 1-1-without-comments exc-without-comments ; do \
2002-05-31 10:32:32 +04:00
for i in $( srcdir) /test/c14n/$$ m/*.xml ; do \
if [ ! -d $$ i ] ; then \
name = ` basename $$ i .xml` ; \
2002-06-04 08:27:06 +04:00
cmdline = " $( CHECKER) $( top_builddir) /testC14N -- $$ m $$ i " ; \
2002-10-15 12:43:17 +04:00
if [ -f $( srcdir) /test/c14n/$$ m/$$ name.xpath ] ; then \
2002-06-04 08:27:06 +04:00
cmdline = " $$ cmdline $( srcdir) /test/c14n/ $$ m/ $$ name.xpath " ; \
2002-10-15 12:43:17 +04:00
if [ -f $( srcdir) /test/c14n/$$ m/$$ name.ns ] ; then \
2002-06-04 08:27:06 +04:00
cmdline = " $$ cmdline '`cat $( srcdir) /test/c14n/ $$ m/ $$ name.ns`' " ; \
fi ; \
2002-05-31 10:32:32 +04:00
fi ; \
2017-06-12 20:25:01 +03:00
$$ cmdline > $( srcdir) /test/c14n/test.tmp 2> /dev/null; \
2002-05-31 10:32:32 +04:00
if [ $$ ? -eq 0 ] ; then \
2002-05-31 23:14:57 +04:00
diff $( srcdir) /result/c14n/$$ m/$$ name $( srcdir) /test/c14n/test.tmp; \
2002-05-31 10:32:32 +04:00
if [ $$ ? -ne 0 ] ; then \
2003-10-03 02:28:19 +04:00
echo " Test $$ m/ $$ name failed " ; \
2002-06-04 08:27:06 +04:00
cat $( srcdir) /test/c14n/test.tmp; \
2002-05-31 10:32:32 +04:00
fi ; \
else \
echo "C14N failed" ; \
fi ; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2002-05-31 10:32:32 +04:00
fi ; \
rm -f $( srcdir) /test/c14n/test.tmp; \
done ; \
done )
2002-04-16 19:50:10 +04:00
Schemastests : testSchemas $( EXEEXT )
@( echo > .memdump)
@echo "## Schemas regression tests"
2002-04-17 13:06:27 +04:00
-@( for i in $( srcdir) /test/schemas/*_*.xsd ; do \
name = ` basename $$ i | sed 's+_.*++' ` ; \
sno = ` basename $$ i | sed 's+.*_\(.*\).xsd+\1+' ` ; \
for j in $( srcdir) /test/schemas/" $$ name " _*.xml ; do \
2003-03-10 16:13:58 +03:00
if [ -f $$ j ] ; then \
2002-04-17 13:06:27 +04:00
xno = ` basename $$ j | sed 's+.*_\(.*\).xml+\1+' ` ; \
if [ ! -f $( srcdir) /result/schemas/" $$ name " _" $$ sno " _" $$ xno " ] ; \
then \
2002-04-18 15:54:04 +04:00
echo New test file " $$ name " _" $$ sno " _" $$ xno " ; \
2002-04-17 13:06:27 +04:00
$( CHECKER) $( top_builddir) /testSchemas $$ i $$ j \
> $( srcdir) /result/schemas/" $$ name " _" $$ sno " _" $$ xno " \
2> $( srcdir) /result/schemas/" $$ name " _" $$ sno " _" $$ xno " .err; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2002-04-17 13:06:27 +04:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /testSchemas $$ i $$ j \
2002-04-17 13:06:27 +04:00
> res.$$ name 2> err.$$ name; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/schemas/" $$ name " _" $$ sno " _" $$ xno " \
res.$$ name; \
diff $( srcdir) /result/schemas/" $$ name " _" $$ sno " _" $$ xno " .err \
err.$$ name; \
2003-10-03 02:28:19 +04:00
grep Unimplemented err.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo " $$ name " _" $$ sno " _" $$ xno " result ; echo " $$ log " ; fi ; \
2002-04-17 13:06:27 +04:00
rm res.$$ name err.$$ name ; \
2003-03-10 16:13:58 +03:00
fi ; fi ; \
2002-04-17 13:06:27 +04:00
done ; done )
2002-04-16 19:50:10 +04:00
2003-02-05 16:19:53 +03:00
Relaxtests : xmllint $( EXEEXT )
2003-01-23 21:29:16 +03:00
@( echo > .memdump)
@echo "## Relax-NG regression tests"
-@( for i in $( srcdir) /test/relaxng/*.rng ; do \
name = ` basename $$ i | sed 's+\.rng++' ` ; \
2003-02-09 17:22:17 +03:00
if [ ! -f $( srcdir) /result/relaxng/" $$ name " _valid ] ; then \
echo New schemas $$ name ; \
$( CHECKER) $( top_builddir) /xmllint$( EXEEXT) --noout --relaxng $( srcdir) /test/relaxng/tutorA.rng $$ i \
> $( srcdir) /result/relaxng/" $$ name " _valid \
2> $( srcdir) /result/relaxng/" $$ name " _err; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-02-09 17:22:17 +03:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint$( EXEEXT) --noout --relaxng $( srcdir) /test/relaxng/tutorA.rng $$ i \
2003-02-09 17:22:17 +03:00
> res.$$ name 2> err.$$ name; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/relaxng/" $$ name " _valid \
res.$$ name; \
diff $( srcdir) /result/relaxng/" $$ name " _err \
err.$$ name | grep -v "error detected at" ; \
2003-10-03 02:28:19 +04:00
grep Unimplemented err.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo schemas $$ name result ; echo " $$ log " ; fi ; \
2003-02-09 17:22:17 +03:00
rm res.$$ name err.$$ name ; \
fi ; \
2003-01-23 21:29:16 +03:00
for j in $( srcdir) /test/relaxng/" $$ name " _*.xml ; do \
if [ -f $$ j ] ; then \
xno = ` basename $$ j | sed 's+.*_\(.*\).xml+\1+' ` ; \
if [ ! -f $( srcdir) /result/relaxng/" $$ name " _" $$ xno " ] ; \
then \
echo New test file " $$ name " _" $$ xno " ; \
2003-02-05 16:19:53 +03:00
$( CHECKER) $( top_builddir) /xmllint$( EXEEXT) --noout --relaxng $$ i $$ j \
2003-01-23 21:29:16 +03:00
> $( srcdir) /result/relaxng/" $$ name " _" $$ xno " \
2> $( srcdir) /result/relaxng/" $$ name " _" $$ xno " .err; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-01-23 21:29:16 +03:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint$( EXEEXT) --noout --relaxng $$ i $$ j \
2003-01-23 21:29:16 +03:00
> res.$$ name 2> err.$$ name; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/relaxng/" $$ name " _" $$ xno " \
2003-04-16 03:32:22 +04:00
res.$$ name; \
diff $( srcdir) /result/relaxng/" $$ name " _" $$ xno " .err \
err.$$ name | grep -v "error detected at" ; \
2003-10-03 02:28:19 +04:00
grep Unimplemented err.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo " $$ name " _" $$ xno " result ; echo " $$ log " ; fi ; \
2003-04-16 03:32:22 +04:00
rm res.$$ name err.$$ name ; \
fi ; fi ; \
done ; done )
@echo "## Relax-NG streaming regression tests"
-@( for i in $( srcdir) /test/relaxng/*.rng ; do \
name = ` basename $$ i | sed 's+\.rng++' ` ; \
for j in $( srcdir) /test/relaxng/" $$ name " _*.xml ; do \
if [ -f $$ j ] ; then \
xno = ` basename $$ j | sed 's+.*_\(.*\).xml+\1+' ` ; \
if [ ! -f $( srcdir) /result/relaxng/" $$ name " _" $$ xno " ] ; \
then \
echo New test file " $$ name " _" $$ xno " ; \
$( CHECKER) $( top_builddir) /xmllint$( EXEEXT) --noout --relaxng $$ i $$ j \
> $( srcdir) /result/relaxng/" $$ name " _" $$ xno " \
2> $( srcdir) /result/relaxng/" $$ name " _" $$ xno " .err; \
2003-09-10 14:51:05 +04:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-04-16 03:32:22 +04:00
else \
2003-10-03 02:28:19 +04:00
log = ` $( CHECKER) $( top_builddir) /xmllint$( EXEEXT) --noout --stream --relaxng $$ i $$ j \
2003-04-16 03:32:22 +04:00
> res.$$ name 2> err.$$ name; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
2003-10-04 02:21:51 +04:00
diff $( srcdir) /result/relaxng/" $$ name " _" $$ xno " res.$$ name; \
2009-08-26 20:37:43 +04:00
if [ " $$ name " != "tutor10_1" -a " $$ name " != "tutor10_2" -a " $$ name " != "tutor3_2" -a " $$ name " != "307377" -a " $$ name " != "tutor8_2" ] ; then \
2003-10-04 02:21:51 +04:00
diff $( srcdir) /result/relaxng/" $$ name " _" $$ xno " .err \
err.$$ name | grep -v "error detected at" ; \
fi ; grep Unimplemented err.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo " $$ name " _" $$ xno " result ; echo " $$ log " ; fi ; \
2003-01-23 21:29:16 +03:00
rm res.$$ name err.$$ name ; \
fi ; fi ; \
done ; done )
2005-07-31 16:17:24 +04:00
Schematrontests : xmllint $( EXEEXT )
@( echo > .memdump)
@echo "## Schematron regression tests"
-@( for i in $( srcdir) /test/schematron/*.sct ; do \
name = ` basename $$ i | sed 's+\.sct++' ` ; \
for j in $( srcdir) /test/schematron/" $$ name " _*.xml ; do \
if [ -f $$ j ] ; then \
xno = ` basename $$ j | sed 's+.*_\(.*\).xml+\1+' ` ; \
if [ ! -f $( srcdir) /result/schematron/" $$ name " _" $$ xno " ] ; \
then \
echo New test file " $$ name " _" $$ xno " ; \
$( CHECKER) $( top_builddir) /xmllint$( EXEEXT) --schematron $$ i $$ j \
> $( srcdir) /result/schematron/" $$ name " _" $$ xno " \
2> $( srcdir) /result/schematron/" $$ name " _" $$ xno " .err; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
else \
log = ` $( CHECKER) $( top_builddir) /xmllint$( EXEEXT) --schematron $$ i $$ j \
> res.$$ name 2> err.$$ name; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
diff $( srcdir) /result/schematron/" $$ name " _" $$ xno " \
res.$$ name; \
diff $( srcdir) /result/schematron/" $$ name " _" $$ xno " .err \
err.$$ name | grep -v "error detected at" ; \
grep Unimplemented err.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo " $$ name " _" $$ xno " result ; echo " $$ log " ; fi ; \
2005-07-31 16:17:24 +04:00
rm res.$$ name err.$$ name ; \
fi ; fi ; \
done ; done )
2004-03-22 22:10:02 +03:00
RelaxNGPythonTests :
@( if [ -x $( PYTHON) ] ; then \
2004-05-10 04:40:51 +04:00
PYTHONPATH = $( top_builddir) /python:$( top_builddir) /python/.libs:$$ PYTHONPATH ; \
2004-03-31 06:01:32 +04:00
export PYTHONPATH; \
2005-02-12 04:08:22 +03:00
LD_LIBRARY_PATH = " $( top_builddir) /.libs: $$ LD_LIBRARY_PATH " ; \
export LD_LIBRARY_PATH; \
2004-03-22 22:10:02 +03:00
echo "## Relax-NG Python based test suite 1" ; \
2004-03-23 15:32:32 +03:00
$( CHECKER) $( PYTHON) $( srcdir) /check-relaxng-test-suite.py ; \
2004-03-22 22:10:02 +03:00
echo "## Relax-NG Python based test suite 2" ; \
2004-03-23 15:32:32 +03:00
$( CHECKER) $( PYTHON) $( srcdir) /check-relaxng-test-suite2.py ; \
2004-03-22 22:10:02 +03:00
fi )
SchemasPythonTests :
@( if [ -x $( PYTHON) ] ; then \
2004-05-10 04:40:51 +04:00
PYTHONPATH = $( top_builddir) /python:$( top_builddir) /python/.libs:$$ PYTHONPATH; \
2004-03-31 06:01:32 +04:00
export PYTHONPATH; \
2005-02-12 04:08:22 +03:00
LD_LIBRARY_PATH = " $( top_builddir) /.libs: $$ LD_LIBRARY_PATH " ; \
export LD_LIBRARY_PATH; \
2004-03-22 22:10:02 +03:00
echo "## XML Schemas datatypes Python based test suite" ; \
2005-12-05 18:32:28 +03:00
echo "## It is normal to see 11 errors reported" ; \
2004-03-23 15:32:32 +03:00
$( CHECKER) $( PYTHON) $( srcdir) /check-xsddata-test-suite.py ; \
2004-03-22 22:10:02 +03:00
fi )
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 07:32:54 +04:00
@( if [ -x $( PYTHON) -a -d xstc ] ; then cd xstc ; $( MAKE) CHECKER = " $( CHECKER) " pytests ; fi )
2004-03-22 22:10:02 +03:00
2005-01-31 01:36:30 +03:00
Patterntests : xmllint $( EXEEXT )
@( echo > .memdump)
@echo "## Pattern regression tests"
-@( for i in $( srcdir) /test/pattern/*.pat ; do \
name = ` basename $$ i .pat` ; \
if [ -f $( srcdir) /test/pattern/$$ name.xml ] ; then \
if [ ! -f $( srcdir) /result/pattern/$$ name ] ; then \
rm -f result.$$ name ; \
echo New test file $$ name ; \
for pat in ` cat $$ i` ; do \
2005-02-04 01:24:10 +03:00
$( CHECKER) $( top_builddir) /xmllint --walker --pattern $$ pat $( srcdir) /test/pattern/$$ name.xml >> $( srcdir) /result/pattern/$$ name ; \
2005-01-31 01:36:30 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
done ; \
else \
rm -f result.$$ name ; \
lst = ` cat $$ i` ; \
2005-02-04 01:24:10 +03:00
log = ` for pat in $$ lst ; do $( CHECKER) $( top_builddir) /xmllint --walker --pattern $$ pat $( srcdir) /test/pattern/$$ name.xml 2>& 1 >> result.$$ name ; \
2005-01-31 01:36:30 +03:00
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; \
done ; \
diff $( srcdir) /result/pattern/$$ name result.$$ name` ; \
2017-05-27 00:01:54 +03:00
if [ -n " $$ log " ] ; then echo $$ name result ; echo " $$ log " ; fi ; \
2005-01-31 01:36:30 +03:00
rm result.$$ name ; \
fi ; fi ; done ; )
2005-01-04 18:10:22 +03:00
ModuleTests : testModule $( EXEEXT ) testdso .la
@echo "## Module tests"
@( ./testModule$( EXEEXT) )
2003-11-19 02:52:38 +03:00
cleanup :
-@( find . -name .\# \* -exec rm { } \; )
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 07:32:54 +04:00
-@( find . -name \* .gcda -o -name \* .gcno -exec rm -f { } \; )
-@( find . -name \* .orig -o -name \* .rej -o -name \* .old -exec rm -f { } \; )
2003-11-19 02:52:38 +03:00
dist-hook : cleanup libxml 2.spec
2003-03-22 00:22:48 +03:00
-cp libxml2.spec $( distdir)
2022-02-14 01:29:51 +03:00
( cd $( srcdir) ; tar -cf - --exclude .git win32 macos os400 vms VxWorks bakefile test result) | ( cd $( distdir) ; tar xf -)
1999-02-22 00:20:12 +03:00
2004-08-31 13:37:03 +04:00
dist-source : distdir
2005-07-11 03:12:52 +04:00
$( AMTAR) -chof - --exclude Tests --exclude test --exclude result $( distdir) | GZIP = $( GZIP_ENV) gzip -c >` echo " $( distdir) " | sed "s+libxml2+libxml2-sources+" ` .tar.gz
2004-08-31 13:37:03 +04:00
2005-07-05 18:04:36 +04:00
dist-test : distdir
2005-07-11 03:12:52 +04:00
( mkdir -p $( distdir) )
2022-02-14 01:29:51 +03:00
( cd $( srcdir) ; tar -cf - --exclude .git xstc/Tests) | ( cd $( distdir) ; tar xf -)
2022-02-14 05:40:59 +03:00
tar -cf - $( distdir) /test $( distdir) /result $( distdir) /xstc/Tests $( distdir) /Makefile.tests $( distdir) /README.md $( distdir) /README.tests $( distdir) /testapi.c $( distdir) /runtest.c $( distdir) /runsuite.c | GZIP = $( GZIP_ENV) gzip -c >` echo " $( distdir) " | sed "s+libxml2+libxml2-tests+" ` .tar.gz
2005-07-11 01:38:31 +04:00
@( rm -rf $( distdir) /xstc/Test)
2005-07-05 18:04:36 +04:00
2001-01-25 21:54:39 +03:00
cleantar :
2002-02-18 17:32:39 +03:00
@( rm -f libxml*.tar.gz COPYING.LIB)
2001-01-25 21:54:39 +03:00
2003-11-19 02:52:38 +03:00
rpm : cleanup cleantar
2005-07-11 03:12:52 +04:00
@( unset CDPATH ; $( MAKE) dist-source dist && rpmbuild -ta $( distdir) .tar.gz)
2001-02-23 20:55:21 +03:00
## We create xml2Conf.sh here and not from configure because we want
## to get the paths expanded correctly. Macros like srcdir are given
## the value NONE in configure if the user doesn't specify them (this
## is an autoconf feature, not a bug).
2004-02-25 16:01:42 +03:00
xml2Conf.sh : xml 2Conf .sh .in Makefile
## Use sed and then mv to avoid problems if the user interrupts.
sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
-e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
-e 's?\@VERSION\@?$(VERSION)?g' \
-e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
2019-07-01 15:22:14 +03:00
-e 's?\@XML_PRIVATE_LIBS\@?$(XML_PRIVATE_LIBS)?g' \
2004-02-25 16:01:42 +03:00
< $( srcdir) /xml2Conf.sh.in > xml2Conf.tmp \
&& mv xml2Conf.tmp xml2Conf.sh
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 07:32:54 +04:00
CLEANFILES = runxmlconf.log test.out xml2Conf.sh *.gcda *.gcno *.res
2012-09-11 09:37:30 +04:00
DISTCLEANFILES = COPYING missing.lst
2001-02-23 20:55:21 +03:00
confexecdir = $( libdir)
confexec_DATA = xml2Conf.sh
2003-03-22 00:22:48 +03:00
EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml2.spec \
2004-11-04 13:52:50 +03:00
libxml.m4 Copyright check-xml-test-suite.py gentest.py \
2004-03-23 15:32:32 +03:00
check-relaxng-test-suite.py check-relaxng-test-suite2.py \
check-xsddata-test-suite.py check-xinclude-test-suite.py \
2001-02-23 20:55:21 +03:00
example/Makefile.am example/gjobread.c example/gjobs.xml \
2003-09-30 06:36:08 +04:00
$( man_MANS) libxml-2.0.pc.in libxml-2.0-uninstalled.pc.in \
2016-02-09 19:55:40 +03:00
libxml2-config.cmake.in autogen.sh \
2002-01-19 18:40:18 +03:00
trionan.c trionan.h triostr.c triostr.h trio.c trio.h \
2012-07-11 12:48:47 +04:00
triop.h triodef.h libxml.h elfgcchack.h xzlib.h buf.h \
2018-01-23 19:33:42 +03:00
enc.h save.h genUnicode.py TODO_SCHEMAS \
2004-08-20 20:47:10 +04:00
dbgen.pl dbgenattr.pl regressions.py regressions.xml \
2012-08-24 12:52:44 +04:00
README.tests Makefile.tests libxml2.syms timsort.h \
2022-02-14 05:40:59 +03:00
README.zOS README.md \
2022-02-14 01:29:51 +03:00
CMakeLists.txt config.h.cmake.in libxml2-config.cmake.cmake.in
2003-09-18 02:33:22 +04:00
2001-02-23 20:55:21 +03:00
pkgconfigdir = $( libdir) /pkgconfig
pkgconfig_DATA = libxml-2.0.pc
2014-10-11 23:50:41 +04:00
cmakedir = $( libdir) /cmake/libxml2
cmake_DATA = libxml2-config.cmake
2002-01-24 18:02:46 +03:00
#
2004-06-25 09:49:08 +04:00
# Install the tests program sources as examples
2002-01-24 18:02:46 +03:00
#
2021-07-29 13:11:08 +03:00
EXAMPLES_DIR = $( docdir) /examples
2002-01-24 18:02:46 +03:00
install-data-local :
2021-07-29 13:11:08 +03:00
$( MKDIR_P) $( DESTDIR) $( docdir)
-$( INSTALL) -m 0644 $( srcdir) /Copyright $( DESTDIR) $( docdir)
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 07:32:54 +04:00
$( MKDIR_P) $( DESTDIR) $( EXAMPLES_DIR)
-$( INSTALL) -m 0644 $( srcdir) /xmllint.c $( DESTDIR) $( EXAMPLES_DIR)
-$( INSTALL) -m 0644 $( srcdir) /testSAX.c $( DESTDIR) $( EXAMPLES_DIR)
-$( INSTALL) -m 0644 $( srcdir) /testHTML.c $( DESTDIR) $( EXAMPLES_DIR)
-$( INSTALL) -m 0644 $( srcdir) /testXPath.c $( DESTDIR) $( EXAMPLES_DIR)
2021-07-29 13:14:03 +03:00
@echo "If the documentation is installed, please also look at html/examples for more." > $( DESTDIR) $( EXAMPLES_DIR) /README
2004-08-14 15:15:13 +04:00
2008-01-11 10:19:24 +03:00
uninstall-local :
2021-07-29 13:14:03 +03:00
rm -f $( DESTDIR) $( EXAMPLES_DIR) /README
2009-08-24 16:23:32 +04:00
rm -f $( DESTDIR) $( EXAMPLES_DIR) /testXPath.c
rm -f $( DESTDIR) $( EXAMPLES_DIR) /testHTML.c
rm -f $( DESTDIR) $( EXAMPLES_DIR) /testSAX.c
rm -f $( DESTDIR) $( EXAMPLES_DIR) /xmllint.c
2008-01-11 10:19:24 +03:00
rm -rf $( DESTDIR) $( EXAMPLES_DIR)
2021-07-29 13:11:08 +03:00
rm -f $( DESTDIR) $( docdir) /Copyright
rm -rf $( DESTDIR) $( docdir)
2008-01-11 10:19:24 +03:00
2004-08-14 15:15:13 +04:00
tst : tst .c
2012-05-08 06:59:41 +04:00
$( CC) $( CFLAGS) -Iinclude -o tst tst.c .libs/libxml2.a -lpthread -lm -lz -llzma
2005-07-30 02:02:24 +04:00
sparse : clean
$( MAKE) CC = cgcc
2008-08-27 19:33:28 +04:00
#
# Coverage support, largely borrowed from libvirt
# Both binaries comes from the lcov package in Fedora
#
LCOV = /usr/bin/lcov
GENHTML = /usr/bin/genhtml
cov : clean -cov
if [ " `echo $( LDFLAGS) | grep coverage` " = "" ] ; then \
echo not configured with coverage; exit 1 ; fi
if [ ! -x $( LCOV) -o ! -x $( GENHTML) ] ; then \
echo Need $( LCOV) and $( GENHTML) excecutables; exit 1 ; fi
-@( $( MAKE) check)
-@( ./runsuite$( EXEEXT) )
mkdir $( top_builddir) /coverage
$( LCOV) -c -o $( top_builddir) /coverage/libxml2.info.tmp -d $( top_srcdir)
$( LCOV) -r $( top_builddir) /coverage/libxml2.info.tmp -o $( top_builddir) /coverage/libxml2.info *usr*
rm $( top_builddir) /coverage/libxml2.info.tmp
$( GENHTML) -s -t "libxml2" -o $( top_builddir) /coverage --legend $( top_builddir) /coverage/libxml2.info
echo " Coverage report is in $( top_builddir) /coverage/index.html "
clean-cov :
rm -rf $( top_builddir) /coverage