Blame README.tests

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