Blame README.tests

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