public class AutoKnownFailedTests extends ModelKnownFailedTests
This test must be run from the directory that contains the auto/knownFailedTests/ directory, for example:
(cd $PTII/ptolemy/actor/lib/net/test; java -classpath ${PTII}:${PTII}/lib/junit-4.8.2.jar:${PTII}/lib/JUnitParams-0.3.0.jar org.junit.runner.JUnitCore ptolemy.util.test.junit.AutoKnownFailedTests)
This test uses JUnitParams from http://code.google.com/p/junitparams/, which is released under Apache License 2.0.
| Red (cxh) |
| Red (cxh) |
_applicationClass, _applicationConstructor, THERE_ARE_NO_AUTO_TESTS, THERE_ARE_NO_KNOWN_FAILED_TESTS| Constructor and Description |
|---|
AutoKnownFailedTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
RunModel(java.lang.String fullPath)
Execute a model.
|
modelValuesmodelValuespublic void RunModel(java.lang.String fullPath)
throws java.lang.Throwable
To check the time, go to the list of tests for AutoTest, for example
http://sisyphus.eecs.berkeley.edu:8079/hudson/job/ptII/724/testReport/ptolemy.util.test.junit/AutoKnownFailedTests/,
where 724 is a recent run of the build. Look for thhe longest
passing test, typically OpenModelicaInteractive (15 sec.), and round up by a factor
of 10 because 15 sec. is so small.
fullPath - The full path to the model file to be executed. If the
fullPath ends with the value of the
ModelTests.THERE_ARE_NO_KNOWN_FAILED_TESTS, then the method
returns immediately.java.lang.Throwable - If thrown while executing the model.