2005-07-10 21:38:31 +00:00
README.tests
Instructions for standalone test regressions of libxml2
libxml2-tests-$version.tar.gz contains 3 standalone C programs as well
as a large amount of tests and results coming from libxml2 itself and
from W3C, NIST, Sun Microsystems, Microsoft and James Clark. Each C
program has a different testing purpose:
runtest.c : runs libxml2 basic internal regression tests
runsuite.c: runs libxml2 against external regression tests
testapi.c : exercises the library public entry points
2008-07-24 15:05:38 +00:00
testchar.c: exercise the check of character ranges and UTF-8 validation
2005-07-10 21:38:31 +00:00
The command:
2012-05-07 15:23:25 +08:00
make check
or
2008-07-24 15:05:38 +00:00
make -f Makefile.tests check
2005-07-10 21:38:31 +00:00
should be sufficient on an Unix system to build and exercise the tests
2008-07-24 15:05:38 +00:00
for the version of the library installed on the system. Note however
2005-07-10 21:38:31 +00:00
that there isn't backward compatibility provided so if the installed
2012-05-07 15:23:25 +08:00
version is older than the testsuite one, failing to compile or run the tests
2005-07-10 21:38:31 +00:00
is likely. In any event this won't work with an installed libxml2 older
than 2.6.20.
2012-05-07 15:23:25 +08:00
2012-03-19 21:42:00 +01:00
Building on other platforms should be a matter of compiling the C files
2005-07-10 21:38:31 +00:00
like any other program using libxml2, running the test should be done
simply by launching the resulting executables.
2012-05-07 15:23:25 +08:00
Also note the availability of a "make valgrind" target which will run the
above tests under valgrind to check for memory errors (but this relies
on the availability of the valgrind command and take far more time to
complete).
2005-07-10 21:38:31 +00:00
Daniel Veillard
2012-05-07 15:23:25 +08:00
Mon May 7 2012