Package ptolemy.util.test.junit
Class AutoCGJavaKnownFailedTests
- java.lang.Object
-
- ptolemy.util.test.junit.ModelTests
-
- ptolemy.util.test.junit.AutoCGTests
-
- ptolemy.util.test.junit.AutoCGKnownFailedTests
-
- ptolemy.util.test.junit.AutoCGJavaKnownFailedTests
-
public class AutoCGJavaKnownFailedTests extends AutoCGKnownFailedTests
Run the Ptolemy model tests in the auto/knownFailedTests directory using cg Java language code generation under JUnit.This test must be run from the directory that contains the auto/knowFailedTests/ directory, for example:
(cd $PTII/ptolemy/cg/adapter/generic/program/procedural/java/adapters/ptolemy/actor/lib/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.AutoCGCKnownFailedTests)
This test uses JUnitParams from http://code.google.com/p/junitparams/, which is released under Apache License 2.0.
- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Christopher Brooks
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
Field Summary
-
Fields inherited from class ptolemy.util.test.junit.AutoCGTests
_cgDirectory, _generateCodeMethod
-
Fields inherited from class ptolemy.util.test.junit.ModelTests
_applicationClass, _applicationConstructor, _applicationToplevelMethod, THERE_ARE_NO_AUTO_ARCH_TESTS, THERE_ARE_NO_AUTO_TESTS, THERE_ARE_NO_KNOWN_FAILED_TESTS
-
-
Constructor Summary
Constructors Constructor Description AutoCGJavaKnownFailedTests()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
runModelInline(java.lang.String fullPath)
Generate, compile and run inline code for a model.void
runModelLarge(java.lang.String fullPath)
Generate, compile and run code as if the model was very large.void
runModelNoInline(java.lang.String fullPath)
Generate, compile and run non-inline code for a model.void
setUp()
Find the ptolemy.cg.kernel.generic.GenericCodeGenerator class and its generateCode static method that takes an array of strings.-
Methods inherited from class ptolemy.util.test.junit.AutoCGKnownFailedTests
modelValues, runModel
-
Methods inherited from class ptolemy.util.test.junit.ModelTests
modelValues
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Throwable
Find the ptolemy.cg.kernel.generic.GenericCodeGenerator class and its generateCode static method that takes an array of strings.- Overrides:
setUp
in classAutoCGTests
- Throws:
java.lang.Throwable
- If the class or constructor cannot be found.
-
runModelInline
public void runModelInline(java.lang.String fullPath) throws java.lang.Throwable
Generate, compile and run inline code for a model.- Parameters:
fullPath
- The full path to the model file to be executed. If the fullPath ends with the value of theModelTests.THERE_ARE_NO_AUTO_TESTS
, then the method returns immediately.- Throws:
java.lang.Throwable
- If thrown while executing the model.
-
runModelLarge
public void runModelLarge(java.lang.String fullPath) throws java.lang.Throwable
Generate, compile and run code as if the model was very large.- Parameters:
fullPath
- The full path to the model file to be executed. If the fullPath ends with the value of theModelTests.THERE_ARE_NO_AUTO_TESTS
, then the method returns immediately.- Throws:
java.lang.Throwable
- If thrown while executing the model.
-
runModelNoInline
public void runModelNoInline(java.lang.String fullPath) throws java.lang.Throwable
Generate, compile and run non-inline code for a model.- Parameters:
fullPath
- The full path to the model file to be executed. If the fullPath ends with the value of theModelTests.THERE_ARE_NO_AUTO_TESTS
, then the method returns immediately.- Throws:
java.lang.Throwable
- If thrown while executing the model.
-
-