summaryrefslogtreecommitdiff
path: root/packages/fcl-xml/tests
diff options
context:
space:
mode:
authorsergei <sergei@3ad0048d-3df7-0310-abae-a5850022a9f2>2009-05-31 10:38:28 +0000
committersergei <sergei@3ad0048d-3df7-0310-abae-a5850022a9f2>2009-05-31 10:38:28 +0000
commite4116efa7a366ee63355627bcdff3974fc6e4628 (patch)
treed7a09790ab68f0d472a3a610197bc28e05a08198 /packages/fcl-xml/tests
parent50d61b21051ec7622474c421c7707a66abac804e (diff)
downloadfpc-e4116efa7a366ee63355627bcdff3974fc6e4628.tar.gz
Bringing readme's up to date
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@13216 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/fcl-xml/tests')
-rw-r--r--packages/fcl-xml/tests/README.txt9
-rw-r--r--packages/fcl-xml/tests/README_DOM.txt25
2 files changed, 24 insertions, 10 deletions
diff --git a/packages/fcl-xml/tests/README.txt b/packages/fcl-xml/tests/README.txt
index 61b2d7450d..4a52390f75 100644
--- a/packages/fcl-xml/tests/README.txt
+++ b/packages/fcl-xml/tests/README.txt
@@ -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
diff --git a/packages/fcl-xml/tests/README_DOM.txt b/packages/fcl-xml/tests/README_DOM.txt
index 8cd5923522..4c0adbdb97 100644
--- a/packages/fcl-xml/tests/README_DOM.txt
+++ b/packages/fcl-xml/tests/README_DOM.txt
@@ -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.