File: all.tcl

package info (click to toggle)
tclxml 3.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,076 kB
  • ctags: 876
  • sloc: ansic: 6,064; tcl: 5,116; xml: 4,642; sh: 3,112; makefile: 60
file content (31 lines) | stat: -rwxr-xr-x 875 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# all.tcl --
#
# This file contains a support module to run all of the Tcl
# tests.  It must be invoked using "source all.test" by 
# a calling tcl script that has loaded the parser class it wishes to
# test in this directory.
#
# Copyright (c) 2003 Zveno Pty Ltd
# Copyright (c) 1998-1999 by Scriptics Corporation.
#
# All rights reserved.
# 
# RCS: @(#) $Id: all.tcl,v 1.4 2003/12/03 20:06:36 balls Exp $

package require Tcl 8.4
package require tcltest 2.2
tcltest::Option -parser xml {
    Selects the XML parser class.
} AcceptAll parser
tcltest::configure -testdir [file dirname [file normalize [info script]]]
eval tcltest::configure $argv

if {$::tcltest::parser == "xml"} {
    foreach parser {libxml2 expat tclparser} {
	puts "\nTesting parser class \"$parser\"\n"
	tcltest::configure -parser $parser
	tcltest::runAllTests
    }
} else {
    tcltest::runAllTests
}