mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-02-04 01:54:47 +01:00
Bringing readme's up to date
git-svn-id: trunk@13216 -
This commit is contained in:
parent
466c41da12
commit
baa07b1a22
@ -3,7 +3,7 @@ Test runner for w3.org XML compliance suite
|
||||
|
||||
The xmlts is intended to run the XML compliance suite from W3.org.
|
||||
The suite includes 2500+ tests. It may be downloaded from
|
||||
http://www.w3.org/XML/Test/xmlts20080205.zip (approx. 1.7 mBytes)
|
||||
http://www.w3.org/XML/Test/xmlts20080827.zip (approx. 1.5 mBytes)
|
||||
After compiling xmlts.pp, run it with the following command line:
|
||||
|
||||
xmlts <path-to-xmlconf.xml> <report-filename> [-t template.xml] [-v]
|
||||
@ -15,17 +15,12 @@ The test suite includes several test databases (all named 'xmlconf.xml'). There
|
||||
master database located in root dir, and several individual databases in different
|
||||
subdirs.
|
||||
|
||||
for example, to run all tests included into the suite in non-validating mode, use:
|
||||
For example, to run all tests included into the suite in non-validating mode, use:
|
||||
|
||||
xmlts xmlconf/xmlconf.xml myreport.html
|
||||
|
||||
Report is produced in xhtml format, use your favourite browser to view it.
|
||||
|
||||
As of 10.03.2007, the xml package does not support namespaces yet, so you might wish
|
||||
to exclude namespace tests. To do this, edit xmlconf/xmlconf.xml file and comment out
|
||||
the lines that contain references &eduni-ns10; &eduni-ns11; and &eduni-nse;
|
||||
|
||||
|
||||
Testsuite errata
|
||||
--------------------------------------------
|
||||
The following issues were encountered while testing the parser. Fortunately, none
|
||||
|
||||
@ -13,9 +13,18 @@ implementation frees. Therefore, running the tests WILL result in heap
|
||||
corruption, executing arbitrary code, and any other imaginable kind of
|
||||
disaster. Be warned.
|
||||
|
||||
[Update: This was fixed in SVN revision 13196, dated 26 May 2009.]
|
||||
|
||||
*** End of notice
|
||||
--------------------------------------------------------------------
|
||||
|
||||
The fcl-xml package support for testing its DOM implementation consists of
|
||||
the following files:
|
||||
|
||||
1) testgen.pp - an utility for generating Pascal source from XML descriptions.
|
||||
2) api.xml - database used by testgen.
|
||||
3) domunit.pp - FPCUnit extensions required at runtime.
|
||||
4) README_DOM.txt - this file.
|
||||
|
||||
To test the FCL DOM implementation, follow these steps:
|
||||
|
||||
@ -45,12 +54,19 @@ Level 1 Core (527 tests):
|
||||
|
||||
Level 2 Core (282 tests):
|
||||
testgen 2001/DOM-Test-Suite/tests/level2/core core2.pp
|
||||
|
||||
Level 2 HTML (677 out of 685 tests, only conversion -- not runnable yet):
|
||||
testgen 2001/DOM-Test-Suite/tests/level2/html html2.pp
|
||||
|
||||
Level 3 Core (partial only, 131 out of 722 tests):
|
||||
testgen 2001/DOM-Test-Suite/tests/level3/core core3.pp
|
||||
|
||||
Level 3 XPath (63 tests, only conversion -- not runnable yet):
|
||||
testgen 2001/DOM-Test-Suite/tests/level3/xpath xpath3.pp
|
||||
|
||||
In the examples above, output names (core1.pp, etc.) carry no defined meaning, you may
|
||||
use anything instead.
|
||||
In the examples above, output names (core1.pp, etc.) carry no defined meaning, except
|
||||
they are used to construct test names which appear in the test reports. The test name
|
||||
is constructed from the unit name by removing the extension and adding a 'TTest' prefix.
|
||||
|
||||
Normally, tests that contain properties/methods unsupported by FCL DOM, or
|
||||
other elements not yet known to testgen, will be skipped. The conversion may be forced
|
||||
@ -62,4 +78,7 @@ its uses clause, and compile. During compilation, path to 'domunit.pp' should be
|
||||
to the unit search paths.
|
||||
|
||||
5) During runtime, tests must be able to read test files which are located
|
||||
within CVS source tree ('files' subdirectory of each module directory).
|
||||
within CVS source tree ('files' subdirectory of each module directory). For this purpose,
|
||||
each generated test class contains a function 'GetTestFilesURI' which returns the path
|
||||
that was supplied to testgen. Therefore, either use an absolute path, or ensure that both
|
||||
generated sources and the test executable are located in the same directory.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user