tclxml-3.2/tests/tclxml/all.tcl

Go to the documentation of this file.
00001 /*  all.tcl --*/
00002 /* */
00003 /*  This file contains a support module to run all of the Tcl*/
00004 /*  tests.  It must be invoked using "source all.test" by */
00005 /*  a calling tcl script that has loaded the parser class it wishes to*/
00006 /*  test in this directory.*/
00007 /* */
00008 /*  Copyright (c) 2008 Explain*/
00009 /*  http://www.explain.com.au/*/
00010 /*  Copyright (c) 2003 Zveno Pty Ltd*/
00011 /*  Copyright (c) 1998-1999 by Scriptics Corporation.*/
00012 /* */
00013 /*  All rights reserved.*/
00014 /*  */
00015 /*  RCS: @(#) $Id: all.tcl,v 1.4 2003/12/03 20:06:36 balls Exp $*/
00016 
00017 package require Tcl 8.4
00018 package require tcltest 2.2
00019 tcltest::Option -parser xml {
00020     Selects the XML parser class.
00021 } AcceptAll parser
00022 tcltest::configure -testdir [file dirname [file normalize [info script]]]
00023 eval tcltest::configure $argv
00024 
00025 if {$::tcltest::parser == "xml"} {
00026     foreach parser {libxml2 tclparser} {
00027     puts "\nTesting parser class \"$parser\"\n"
00028     tcltest::configure -parser $parser
00029     tcltest::runAllTests
00030     }
00031 } else {
00032     tcltest::runAllTests
00033 }
00034 

Generated on 21 Sep 2010 for Gui by  doxygen 1.6.1