public class AutoCGCTests extends AutoCGTests
This test must be run from the directory that contains the auto/ directory, for example:
(cd ptolemy/cg/adapter/generic/program/procedural/c/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.AutoCGCTests)
This test uses JUnitParams from http://code.google.com/p/junitparams/, which is released under Apache License 2.0.
| Red (cxh) |
| Red (cxh) |
_cgDirectory, _generateCodeMethod_applicationClass, _applicationConstructor, THERE_ARE_NO_AUTO_TESTS, THERE_ARE_NO_KNOWN_FAILED_TESTS| Constructor and Description |
|---|
AutoCGCTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
runModelInline(java.lang.String fullPath)
Generate, compile and run inline code for a model.
|
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.
|
runModelmodelValues, modelValuespublic void setUp()
throws java.lang.Throwable
setUp in class AutoCGTestsjava.lang.Throwable - If the class or constructor cannot be found.public void runModelInline(java.lang.String fullPath)
throws java.lang.Throwable
fullPath - The full path to the model file to be
executed. If the fullPath ends with the value of the ModelTests.THERE_ARE_NO_AUTO_TESTS, then the method returns
immediately.java.lang.Throwable - If thrown while executing the model.public void runModelNoInline(java.lang.String fullPath)
throws java.lang.Throwable
fullPath - The full path to the model file to be
executed. If the fullPath ends with the value of the ModelTests.THERE_ARE_NO_AUTO_TESTS, then the method returns
immediately.java.lang.Throwable - If thrown while executing the model.