Skip to content
Snippets Groups Projects
Commit a1d517e7 authored by Tinny Ng's avatar Tinny Ng
Browse files

sanityTest update: remove IDOMCount, IDOMPrint and IDOM associated test case. ...

sanityTest update: remove IDOMCount, IDOMPrint and IDOM associated test case.  Add DeprecatedDOMCount.


git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173681 13f79535-47bb-0310-9956-ffa450edef68
parent f7eabbeb
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# The Apache Software License, Version 1.1 # The Apache Software License, Version 1.1
# #
# Copyright (c) 1999-2001 The Apache Software Foundation. All rights # Copyright (c) 1999-2002 The Apache Software Foundation. All rights
# reserved. # reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
...@@ -129,18 +129,6 @@ system ("DOMPrint -v=never personal.xml"); ...@@ -129,18 +129,6 @@ system ("DOMPrint -v=never personal.xml");
system ("DOMPrint personal.xml"); system ("DOMPrint personal.xml");
system ("DOMPrint -n -s personal-schema.xml"); system ("DOMPrint -n -s personal-schema.xml");
# Run IDOMCount
system ("IDOMCount");
system ("IDOMCount -v=never personal.xml");
system ("IDOMCount personal.xml");
system ("IDOMCount -n -s personal-schema.xml");
# Run IDOMPrint
system ("IDOMPrint");
system ("IDOMPrint -v=never personal.xml");
system ("IDOMPrint personal.xml");
system ("IDOMPrint -n -s personal-schema.xml");
# Run StdInParse # Run StdInParse
system ("StdInParse < personal.xml"); system ("StdInParse < personal.xml");
system ("StdInParse -v=never < personal.xml"); system ("StdInParse -v=never < personal.xml");
...@@ -166,9 +154,6 @@ system ("CreateDOMDocument"); ...@@ -166,9 +154,6 @@ system ("CreateDOMDocument");
# Run the test cases # Run the test cases
# #
# Run DOMIDTest
system ("DOMIDTest");
# Run DOMMemTest # Run DOMMemTest
system ("DOMMemTest"); system ("DOMMemTest");
...@@ -181,17 +166,11 @@ system ("RangeTest"); ...@@ -181,17 +166,11 @@ system ("RangeTest");
# Run DOMTraversalTest # Run DOMTraversalTest
system ("DOMTraversalTest"); system ("DOMTraversalTest");
# Run IDOMMemTest # Run DeprecatedDOMCount
system ("IDOMMemTest"); system ("DeprecatedDOMCount");
system ("DeprecatedDOMCount -v=never personal.xml");
# Run IDOMTest system ("DeprecatedDOMCount personal.xml");
system ("IDOMTest"); system ("DeprecatedDOMCount -n -s personal-schema.xml");
# Run IRangeTest
system ("IRangeTest");
# Run ITraversal
system ("ITraversal");
# Run InitTestTerm # Run InitTestTerm
system ("InitTermTest"); system ("InitTermTest");
...@@ -203,15 +182,11 @@ system ("InitTermTest -n -s -f personal-schema.xml"); ...@@ -203,15 +182,11 @@ system ("InitTermTest -n -s -f personal-schema.xml");
system ("ThreadTest"); system ("ThreadTest");
system ("ThreadTest -parser=sax -quiet -threads 10 -time 20 personal.xml"); system ("ThreadTest -parser=sax -quiet -threads 10 -time 20 personal.xml");
system ("ThreadTest -parser=dom -quiet -threads 10 -time 20 personal.xml"); system ("ThreadTest -parser=dom -quiet -threads 10 -time 20 personal.xml");
system ("ThreadTest -parser=idom -quiet -threads 10 -time 20 personal.xml");
system ("ThreadTest -parser=sax -v -quiet -threads 10 -time 20 personal.xml"); system ("ThreadTest -parser=sax -v -quiet -threads 10 -time 20 personal.xml");
system ("ThreadTest -parser=dom -v -quiet -threads 10 -time 20 personal.xml"); system ("ThreadTest -parser=dom -v -quiet -threads 10 -time 20 personal.xml");
system ("ThreadTest -parser=idom -v -quiet -threads 10 -time 20 personal.xml");
system ("ThreadTest -parser=sax -n -s -v -quiet -threads 10 -time 20 personal-schema.xml"); system ("ThreadTest -parser=sax -n -s -v -quiet -threads 10 -time 20 personal-schema.xml");
system ("ThreadTest -parser=dom -n -s -v -quiet -threads 10 -time 20 personal-schema.xml"); system ("ThreadTest -parser=dom -n -s -v -quiet -threads 10 -time 20 personal-schema.xml");
system ("ThreadTest -parser=idom -n -s -v -quiet -threads 10 -time 20 personal-schema.xml");
system ("ThreadTest -parser=sax -n -s -f -v -quiet -threads 10 -time 20 personal-schema.xml"); system ("ThreadTest -parser=sax -n -s -f -v -quiet -threads 10 -time 20 personal-schema.xml");
system ("ThreadTest -parser=dom -n -s -f -v -quiet -threads 10 -time 20 personal-schema.xml"); system ("ThreadTest -parser=dom -n -s -f -v -quiet -threads 10 -time 20 personal-schema.xml");
system ("ThreadTest -parser=idom -n -s -f -v -quiet -threads 10 -time 20 personal-schema.xml");
chdir "..".$pathsep.".."; chdir "..".$pathsep."..";
...@@ -414,183 +414,6 @@ This program invokes the DOM parser, and builds the DOM tree. ...@@ -414,183 +414,6 @@ This program invokes the DOM parser, and builds the DOM tree.
It then traverses the DOM tree and prints the contents of the It then traverses the DOM tree and prints the contents of the
tree for the specified XML file. tree for the specified XML file.
Options:
-e create entity reference nodes. Default is no expansion.
-u=xxx Handle unrepresentable chars [fail | rep | ref*].
-v=xxx Validation scheme [always | never | auto*].
-n Enable namespace processing. Default is off.
-s Enable schema processing. Default is off.
-f Enable full schema constraint checking. Defaults to off.
-x=XXX Use a particular encoding for output. Default is
the same encoding as the input XML file. UTF-8 if
input XML file has not XML declaration.
-? Show this help.
* = Default if not provided explicitly.
The parser has intrinsic support for the following encodings:
UTF-8, USASCII, ISO8859-1, UTF-16[BL]E, UCS-4[BL]E,
WINDOWS-1252, IBM1140, IBM037.
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE personnel SYSTEM "personal.dtd">
<!-- @version: -->
<personnel>
<person id="Big.Boss">
<name><family>Boss</family> <given>Big</given></name>
<email>chief@foo.com</email>
<link subordinates="one.worker two.worker three.worker four.worker five.worker"/>
</person>
<person id="one.worker">
<name><family>Worker</family> <given>One</given></name>
<email>one@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="two.worker">
<name><family>Worker</family> <given>Two</given></name>
<email>two@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="three.worker">
<name><family>Worker</family> <given>Three</given></name>
<email>three@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="four.worker">
<name><family>Worker</family> <given>Four</given></name>
<email>four@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="five.worker">
<name><family>Worker</family> <given>Five</given></name>
<email>five@foo.com</email>
<link manager="Big.Boss"/>
</person>
</personnel>
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE personnel SYSTEM "personal.dtd">
<!-- @version: -->
<personnel>
<person id="Big.Boss">
<name><family>Boss</family> <given>Big</given></name>
<email>chief@foo.com</email>
<link subordinates="one.worker two.worker three.worker four.worker five.worker"/>
</person>
<person id="one.worker">
<name><family>Worker</family> <given>One</given></name>
<email>one@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="two.worker">
<name><family>Worker</family> <given>Two</given></name>
<email>two@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="three.worker">
<name><family>Worker</family> <given>Three</given></name>
<email>three@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="four.worker">
<name><family>Worker</family> <given>Four</given></name>
<email>four@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="five.worker">
<name><family>Worker</family> <given>Five</given></name>
<email>five@foo.com</email>
<link manager="Big.Boss"/>
</person>
</personnel>
<?xml version="1.0" encoding="UTF-8"?>
<personnel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="personal.xsd">
<person id="Big.Boss" contr="false">
<name><family>Boss</family> <given>Big</given></name>
<email>chief@foo.com</email>
<link subordinates="one.worker two.worker three.worker four.worker five.worker"/>
</person>
<person id="one.worker" contr="false">
<name><family>Worker</family> <given>One</given></name>
<email>one@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="two.worker" contr="false">
<name><family>Worker</family> <given>Two</given></name>
<email>two@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="three.worker" contr="false">
<name><family>Worker</family> <given>Three</given></name>
<email>three@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="four.worker" contr="false">
<name><family>Worker</family> <given>Four</given></name>
<email>four@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="five.worker" contr="false">
<name><family>Worker</family> <given>Five</given></name>
<email>five@foo.com</email>
<link manager="Big.Boss"/>
</person>
</personnel>
Usage:
IDOMCount [options] <XML file | List file>
This program invokes the IDOM parser, builds the DOM tree,
and then prints the number of elements found in each XML file.
Options:
-l Indicate the input file is a List File that has a list of xml files.
Default to off (Input file is an XML file).
-v=xxx Validation scheme [always | never | auto*].
-n Enable namespace processing. Defaults to off.
-s Enable schema processing. Defaults to off.
-f Enable full schema constraint checking. Defaults to off.
-? Show this help.
* = Default if not provided explicitly.
personal.xml:{timing removed}(37 elems).
personal.xml:{timing removed}(37 elems).
personal-schema.xml:{timing removed}(37 elems).
Usage:
IDOMPrint [options] <XML file>
This program invokes the IDOM parser, and builds the DOM tree.
It then traverses the DOM tree and prints the contents of the
tree for the specified XML file.
Options: Options:
-e create entity reference nodes. Default is no expansion. -e create entity reference nodes. Default is no expansion.
-u=xxx Handle unrepresentable chars [fail | rep | ref*]. -u=xxx Handle unrepresentable chars [fail | rep | ref*].
...@@ -914,65 +737,37 @@ Attributes: ...@@ -914,65 +737,37 @@ Attributes:
-------------------------------------------- --------------------------------------------
The tree just created contains: 4 elements. The tree just created contains: 4 elements.
DOM reference counted memory alloction statistics:
live string handles: 0
total string handles: 151
live string buffers: 0
total string buffers: 331
live nodeImpls: 0
total nodeImpls: 55
live NamedNodeMaps: 0
total NamedNodeMaps: 18
DOM Memory Test.
DOM reference counted memory alloction statistics:
live string handles: 0
total string handles: 545
live string buffers: 0
total string buffers: 578
live nodeImpls: 0
total nodeImpls: 183
live NamedNodeMaps: 0
total NamedNodeMaps: 37
DOM reference counted memory alloction statistics:
live string handles: 0
total string handles: 239
live string buffers: 0
total string buffers: 270
live nodeImpls: 0
total nodeImpls: 220
live NamedNodeMaps: 0
total NamedNodeMaps: 34
DOM reference counted memory alloction statistics:
live string handles: 0
total string handles: 145
live string buffers: 0
total string buffers: 163
live nodeImpls: 0
total nodeImpls: 77
live NamedNodeMaps: 0
total NamedNodeMaps: 0
DOM reference counted memory alloction statistics:
live string handles: 0
total string handles: 17
live string buffers: 0
total string buffers: 17
live nodeImpls: 0
total nodeImpls: 17
live NamedNodeMaps: 0
total NamedNodeMaps: 2
Test Run Successfully Test Run Successfully
Test Run Successfully Test Run Successfully
Test Run Successfully Test Run Successfully
Test Run Successfully Test Run Successfully
Usage:
DeprecatedDOMCount [options] <XML file | List file>
This program invokes the DOM parser, builds the DOM tree,
and then prints the number of elements found in each XML file.
Options:
-l Indicate the input file is a List File that has a list of xml files.
Default to off (Input file is an XML file).
-v=xxx Validation scheme [always | never | auto*].
-n Enable namespace processing. Defaults to off.
-s Enable schema processing. Defaults to off.
-f Enable full schema constraint checking. Defaults to off.
-? Show this help.
* = Default if not provided explicitly.
personal.xml:{timing removed}(37 elems).
personal.xml:{timing removed}(37 elems).
personal-schema.xml:{timing removed}(37 elems).
Usage: Usage:
InitTermTest [options] <XML file> InitTermTest [options] <XML file>
This program tests the XMLPlatformUtils::Initialize()/Terminate() This program tests the XMLPlatformUtils::Initialize()/Terminate()
pair by calling it a number of times. All four parsers pair by calling it a number of times.
(DOMParser, IDOMParser, SAXParser and SAX2XMLReader) are invoked
to parse the specified XML file.
Options: Options:
-n Enable namespace processing. Default is off. -n Enable namespace processing. Default is off.
-s Enable schema processing. Default is off. -s Enable schema processing. Default is off.
...@@ -988,7 +783,7 @@ usage: threadtest [-v] [-threads nnn] [-time nnn] [-quiet] [-verbose] xmlfile.. ...@@ -988,7 +783,7 @@ usage: threadtest [-v] [-threads nnn] [-time nnn] [-quiet] [-verbose] xmlfile..
-n Enable namespace processing. Defaults to off. -n Enable namespace processing. Defaults to off.
-s Enable schema processing. Defaults to off. -s Enable schema processing. Defaults to off.
-f Enable full schema constraint checking. Defaults to off. -f Enable full schema constraint checking. Defaults to off.
-parser=xxx Parser Type [dom | idom | sax]. Default is SAX. -parser=xxx Parser Type [dom | sax]. Default is SAX.
-quiet Suppress periodic status display. -quiet Suppress periodic status display.
-verbose Display extra messages. -verbose Display extra messages.
-reuse Retain and reuse parser. Default creates new for each parse. -reuse Retain and reuse parser. Default creates new for each parse.
...@@ -1005,7 +800,3 @@ Test Run Successfully ...@@ -1005,7 +800,3 @@ Test Run Successfully
Test Run Successfully Test Run Successfully
Test Run Successfully Test Run Successfully
Test Run Successfully Test Run Successfully
Test Run Successfully
Test Run Successfully
Test Run Successfully
Test Run Successfully
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment