From a1d517e7477119c175b81b06945d9e076a608df1 Mon Sep 17 00:00:00 2001 From: Tinny Ng <tng@apache.org> Date: Tue, 21 May 2002 18:37:56 +0000 Subject: [PATCH] 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 --- scripts/sanityTest.pl | 37 +--- scripts/sanityTest_ExpectedResult.log | 255 +++----------------------- 2 files changed, 29 insertions(+), 263 deletions(-) diff --git a/scripts/sanityTest.pl b/scripts/sanityTest.pl index b9e7e2fb0..ce5698ed4 100644 --- a/scripts/sanityTest.pl +++ b/scripts/sanityTest.pl @@ -2,7 +2,7 @@ # # 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. # # Redistribution and use in source and binary forms, with or without @@ -129,18 +129,6 @@ system ("DOMPrint -v=never personal.xml"); system ("DOMPrint personal.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 system ("StdInParse < personal.xml"); system ("StdInParse -v=never < personal.xml"); @@ -166,9 +154,6 @@ system ("CreateDOMDocument"); # Run the test cases # -# Run DOMIDTest -system ("DOMIDTest"); - # Run DOMMemTest system ("DOMMemTest"); @@ -181,17 +166,11 @@ system ("RangeTest"); # Run DOMTraversalTest system ("DOMTraversalTest"); -# Run IDOMMemTest -system ("IDOMMemTest"); - -# Run IDOMTest -system ("IDOMTest"); - -# Run IRangeTest -system ("IRangeTest"); - -# Run ITraversal -system ("ITraversal"); +# Run DeprecatedDOMCount +system ("DeprecatedDOMCount"); +system ("DeprecatedDOMCount -v=never personal.xml"); +system ("DeprecatedDOMCount personal.xml"); +system ("DeprecatedDOMCount -n -s personal-schema.xml"); # Run InitTestTerm system ("InitTermTest"); @@ -203,15 +182,11 @@ system ("InitTermTest -n -s -f personal-schema.xml"); system ("ThreadTest"); 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=idom -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=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=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=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.".."; diff --git a/scripts/sanityTest_ExpectedResult.log b/scripts/sanityTest_ExpectedResult.log index e8fbb6c24..9c2e706e6 100644 --- a/scripts/sanityTest_ExpectedResult.log +++ b/scripts/sanityTest_ExpectedResult.log @@ -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 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: -e create entity reference nodes. Default is no expansion. -u=xxx Handle unrepresentable chars [fail | rep | ref*]. @@ -914,65 +737,37 @@ Attributes: -------------------------------------------- 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 +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: InitTermTest [options] <XML file> This program tests the XMLPlatformUtils::Initialize()/Terminate() -pair by calling it a number of times. All four parsers -(DOMParser, IDOMParser, SAXParser and SAX2XMLReader) are invoked -to parse the specified XML file. - +pair by calling it a number of times. Options: -n Enable namespace 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.. -n Enable namespace processing. Defaults to off. -s Enable schema processing. 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. -verbose Display extra messages. -reuse Retain and reuse parser. Default creates new for each parse. @@ -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 -- GitLab