public class TclTests
extends java.lang.Object
This test must be run from the directory that contains the auto/ directory, for example:
(cd ~/ptII/ptolemy/actor/lib/io/test; java -classpath ${PTII}:${PTII}/lib/ptjacl.jar:${PTII}/lib/junit-4.8.2.jar:${PTII}/lib/JUnitParams-0.3.0.jar org.junit.runner.JUnitCore ptolemy.util.test.junit.TclTests)
This test uses JUnitParams from http://code.google.com/p/junitparams/, which is released under Apache License 2.0.
Red (cxh) |
Red (cxh) |
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
THERE_ARE_NO_TCL_TESTS
A special string that is passed when there are no tcl tests.
|
Constructor and Description |
---|
TclTests() |
Modifier and Type | Method and Description |
---|---|
protected static void |
_incrementTclFileCount()
Increment the count of the number of tcl files visited.
|
protected static void |
_setFailedTestCount(java.lang.Object count)
Set the cached value of the count of the number of failed tests.
|
static void |
doneTests()
Call the Tcl doneTests command to print out the number of errors.
|
java.lang.Object[] |
parametersForRunTclFile()
Return a two dimensional array of arrays of strings that name the .tcl files
to be executed.
|
void |
RunTclFile(java.lang.String tclFile)
Run a tclFile.
|
protected static final java.lang.String THERE_ARE_NO_TCL_TESTS
public static void doneTests() throws java.lang.Throwable
java.lang.Throwable
- If the class, constructor or method cannot be found. or if
the Interp cannot be instantiated.public java.lang.Object[] parametersForRunTclFile() throws java.io.IOException
THERE_ARE_NO_TCL_TESTS
field.java.io.IOException
- If there is a problem accessing the auto/ directory.public void RunTclFile(java.lang.String tclFile) throws java.lang.Throwable
Timeout after 480000 ms. The ptolemy/cg/kernel/generic/program/procedural/java/test/AutoAdapter.tcl test requires more than 240 seconds.
tclFile
- The full path to the .tcl file to be executed. If tclFile
ends with the value of the THERE_ARE_NO_TCL_TESTS
,
then the method returns immediately.java.lang.Throwable
- If thrown while executing the tclFile.protected static void _incrementTclFileCount()
protected static void _setFailedTestCount(java.lang.Object count)
count
- The object representing the number of failed tests.