Nick Wellnhofer
22ada0a0bf
tests: Look for xmlconf in source directory
...
Add -d option to runxmlconf for automake.
Fix extraction of xmlconf.tar.gz on Windows.
Make runxmlconf work with Meson CI.
2025-02-18 23:55:28 +01:00
Nick Wellnhofer
bfe6af2eed
fuzz: Remove hacks to build lint fuzzer
...
Don't include source file directly.
2025-01-17 20:06:45 +01:00
Nick Wellnhofer
41aed0890a
automake: Only build testdso when testing
2024-12-26 21:25:23 +01:00
Nick Wellnhofer
225e0229dc
autotools: Add html5ent.inc to EXTRA_DIST
2024-12-09 23:28:02 +01:00
Nick Wellnhofer
799104defb
build: Schema doesn't require XPath anymore
2024-11-21 23:43:23 +01:00
Nick Wellnhofer
52afde07c1
build: Only build xmlcatalog executable if enabled
2024-11-21 23:43:23 +01:00
Nick Wellnhofer
2191ccdf7b
autotools: Fix EXTRA_DIST
...
Fixes #786 .
2024-08-18 12:17:10 +02:00
Nick Wellnhofer
2adcde3920
save: Optimize xmlSerializeText
...
Use lookup tables.
2024-07-16 17:42:10 +02:00
Nick Wellnhofer
3528b81f8a
tools: Move codegen tools to 'tools' directory
2024-07-13 15:42:02 +02:00
Nick Wellnhofer
30be984a0f
encoding: Rework ISO-8859-X conversion
...
Optimize code. Pass tables as context parameter. Check for
XML_ENC_ERR_SPACE.
2024-07-01 18:05:40 +02:00
Nick Wellnhofer
e68ccfa988
tests: Port Schematron tests to C
2024-06-22 21:59:03 +02:00
Nick Wellnhofer
811373e221
tests: Remove old Python tests
...
With the exception of the xinclude test, these tests should be
equivalent to runsuite and runxmlconf.
2024-06-22 21:59:03 +02:00
Nick Wellnhofer
0a279e2f68
tests: Remove old timing tests
2024-06-22 21:59:03 +02:00
Nick Wellnhofer
f06fc933cd
tests: Move tests for executables to separate script
...
Move tests for xmllint shell and xmlcatalog to separate scripts and
enabled them in Autotools.
2024-06-22 21:59:03 +02:00
Nick Wellnhofer
4c1b88513f
autotools: Move MODULE_PLATFORM_LIBS into NON_PC_LIBS
2024-06-21 13:48:22 +02:00
Nick Wellnhofer
2b0c4abb1f
threads: Remove pthread weak symbol hack
...
On Linux, we tried to detect the presence of libpthread to disable
things like locks. This questionable hack doesn't work since glibc 2.34
which merged libpthread into libc.
2024-06-17 00:54:47 +02:00
Nick Wellnhofer
33a1f8978d
legacy: Merge SAX.c into legacy.c
2024-06-16 19:17:41 +02:00
Nick Wellnhofer
1341deac13
xmllint: Move shell to xmllint
...
Move source code for xmllint shell to shell.c and move it from the
libxml2 library to the xmllint executable.
Also allow shell to run without XPath and debug modules.
Add stubs for old shell API functions in legacy build mode.
2024-06-16 18:47:12 +02:00
Nick Wellnhofer
481fd6bbee
tests: Remove testThreads.c
...
This was merged into runtest.c some time ago.
2024-06-16 18:47:12 +02:00
Nick Wellnhofer
e714f506e4
build: Stop installing libxml.m4
...
This file is deprecated and unmaintained. It will be kept in the source
tree for a while.
2024-06-15 20:14:03 +02:00
Nick Wellnhofer
dba1ed85a3
ftp: Remove FTP support
...
Remove the built-in FTP client. If you configure --with-legacy, old
symbols are retained for ABI compatibility.
2024-06-12 18:19:55 +02:00
Nick Wellnhofer
609d2666fa
Stop defining _REENTRANT
...
This macro is obsolete, see `man feature_test_macros`.
2024-05-13 13:08:14 +02:00
Nick Wellnhofer
bffef46c4c
doc: Don't install example code
2024-04-28 22:58:06 +02:00
Nick Wellnhofer
d381e5de4a
doc: Move doc/examples to example
2024-04-28 21:55:34 +02:00
Vincent Torri
5732ce56f3
meson: Initial commit
2024-04-04 12:23:39 +02:00
Nick Wellnhofer
d636ef1de1
tests: Remove testOOM
...
This was never part of the standard test suite and we now test OOM error
handling more comprehensively with fuzz testing.
2024-01-11 00:43:44 +01:00
Mike Dalessio
ed3ad3e173
Makefile.am: omit $(top_builddir) from DEPS and LDADDS
...
BSD make is less liberal than GNU make in matching targets, and so it
tries to resolve the dependency `./libxml2.la` and fails to match the
target `libxml2.la`.
2023-12-20 23:43:08 +00:00
Nick Wellnhofer
455c61d635
Remove VMS support
...
This was last updated 10 years ago and is most likely broken.
2023-11-23 15:59:41 +01:00
Nick Wellnhofer
7d6969d955
Remove Trio
...
Trio is a rather old cross-platform printf library which was bundled with
libxml2. It was needed for ancient pre-C99 systems without snprintf and
should be safe to remove these days.
2023-11-23 15:48:52 +01:00
Nick Wellnhofer
a9ada18352
tests: Start with testparser.c for extra tests
...
Several issues require customized tests. Start with a test that push
parses large documents. See #539 .
2023-10-22 14:24:43 +02:00
Mike Dalessio
3463063001
autoconf: fix iconv library paths
...
and pass cflags when building executables
See 0f77167f for prior related work
2023-05-06 12:26:17 -04:00
Nick Wellnhofer
886bf4e63b
Stop calling xmlMemoryDump
...
This was used to check for memory leaks but could potentially create a
.memdump file. These days, there are better ways to check for memory
leaks.
2023-04-30 15:48:41 +02:00
Nick Wellnhofer
905386ec35
autotools: Fix make distcheck
...
- Add private/xinclude.h to EXTRA_DIST
- Add runsuite.log to CLEANFILES
Fixes #485 .
2023-02-13 11:14:34 +01:00
Nick Wellnhofer
c74e590395
Remove ancient TODOs
2022-12-21 22:30:25 +01:00
Nick Wellnhofer
101a542eb8
Remove RPM build, Makefile.tests, README.tests
2022-12-21 22:05:47 +01:00
Nick Wellnhofer
eaebf37fb6
gentest.py: Fix memory leak in API tests
...
Regressed in commit ff34ba3e.
2022-12-08 19:18:10 +01:00
Nick Wellnhofer
b92768cd62
tests: Enable "runsuite" test
...
This enables some tests with testcases in
- test/xsdtest
- test/relaxng/OASIS/spectest.xml
- test/relaxng/testsuite.xml
The XML Schema Test Suite will also be run it was downloaded, see
xstc/Makefile.am. Gitlab CI should be updated to fetch these files.
There are 10 expected errors in the XSD test suite. This seems to be the
case since at least version 2.9.0 from 2012.
2022-12-08 00:24:53 +01:00
Nick Wellnhofer
3a1c5ee7c1
Disable fuzzer tests if glob.h wasn't found
2022-09-04 18:36:04 +02:00
Nick Wellnhofer
caef85633e
Move automata test to runtest.c
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
c59df16d1d
Always link with -no-undefined
...
This is a good idea to detect errors early.
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
513d65fee8
Use AM_CFLAGS and AM_LDFLAGS consistently
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
0f77167f76
Rework library detection in configure.ac
...
Migrate to AC_CHECK_LIB and AC_SEARCH_LIBS. Don't pollute CPPFLAGS,
LDFLAGS and LIBS.
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
14d38a7114
Don't build unneeded .c source files
2022-09-02 18:33:35 +02:00
Nick Wellnhofer
ae2b802150
Cleanup distribution settings in Makefile.am
...
- Remove useless nodist_ prefix
- Prefer dist_ prefix over EXTRA_DIST
- Remove .in files from EXTRA_DIST
2022-08-29 16:31:47 +02:00
Nick Wellnhofer
aa383e66c7
Don't distribute libxml2.spec
...
This is a generated file.
2022-08-26 17:38:11 +02:00
Nick Wellnhofer
b218abce43
Don't create missing.xml when running testapi
...
Side effect of b31e07db. Use a non-existing directory to avoid creating
a file.
2022-08-26 02:52:17 +02:00
Nick Wellnhofer
0f568c0b73
Consolidate private header files
...
Private functions were previously declared
- in header files in the root directory
- in public headers guarded with IN_LIBXML
- in libxml.h
- redundantly in source files that used them.
Consolidate all private header files in include/private.
2022-08-26 02:11:56 +02:00
Nick Wellnhofer
7f7961df25
Remove generated files from distribution
...
- libxml2.spec
- libxml-2.0.pc
- xml2-config
- include/libxml/xmlversion.h
- python/libxml2.py
- python/libxml2-export.c
- python/libxml2-py.c
- python/libxml2-py.h
- python/libxml2class.py
- python/libxml2class.txt
- python/setup.py
2022-08-25 14:35:31 +02:00
Nick Wellnhofer
b60cdf1f9a
Remove Makefile rule to build testapi.c
...
This file is under version control and should only be rebuilt on
demand.
2022-08-18 19:17:37 +02:00
Nick Wellnhofer
d20df9d864
Cleanup files generated by test suite
...
Fixes make distcheck.
2022-08-17 13:22:20 +02:00