README.tests 1.2 KB

123456789101112131415161718192021222324252627282930
  1. README.tests
  2. Instructions for standalone test regressions of libxml2
  3. libxml2-tests-$version.tar.gz contains 3 standalone C programs as well
  4. as a large amount of tests and results coming from libxml2 itself and
  5. from W3C, NIST, Sun Microsystems, Microsoft and James Clark. Each C
  6. program has a different testing purpose:
  7. runtest.c : runs libxml2 basic internal regression tests
  8. runsuite.c: runs libxml2 against external regression tests
  9. testapi.c : exercises the library public entry points
  10. testchar.c: exercise the check of character ranges and UTF-8 validation
  11. The command:
  12. make -f Makefile.tests check
  13. should be sufficient on an Unix system to build and exercise the tests
  14. for the version of the library installed on the system. Note however
  15. that there isn't backward compatibility provided so if the installed
  16. version is older to the testsuite one, failing to compile or run the tests
  17. is likely. In any event this won't work with an installed libxml2 older
  18. than 2.6.20.
  19. Building on other platfroms should be a matter of compiling the C files
  20. like any other program using libxml2, running the test should be done
  21. simply by launching the resulting executables.
  22. Daniel Veillard
  23. Thu Jul 24 2008