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