public class AutoCGKnownFailedTests extends AutoCGTests
This class provides common facilities used by classes that generate C and Java code.
| Red (cxh) |
| Red (cxh) |
_cgDirectory, _generateCodeMethod_applicationClass, _applicationConstructor, THERE_ARE_NO_AUTO_TESTS, THERE_ARE_NO_KNOWN_FAILED_TESTS| Constructor and Description |
|---|
AutoCGKnownFailedTests() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object[] |
modelValues()
Return a two dimensional array of arrays of strings that name
the model to be executed.
|
void |
runModel(java.lang.String fullPath,
java.lang.String language,
boolean generateInSubdirectory,
boolean inline,
int maximumLinesPerBlock,
boolean variablesAsArrays,
java.lang.String generatorPackageList)
Generate, compile and run code for a model known to fail.
|
setUpmodelValuespublic java.lang.Object[] modelValues()
throws java.io.IOException
modelValues in class ModelTestsjava.io.IOException - If there is a problem accessing the auto/ directory.public void runModel(java.lang.String fullPath,
java.lang.String language,
boolean generateInSubdirectory,
boolean inline,
int maximumLinesPerBlock,
boolean variablesAsArrays,
java.lang.String generatorPackageList)
throws java.lang.Throwable
runModel in class AutoCGTestsfullPath - 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.language - Either "c" or "java".generateInSubdirectory - If true, then generate the code in
in a subdirectory of ~/cg/.inline - If true, then generate inline code.maximumLinesPerBlock - The maximum number of line of code generated
per blockvariablesAsArrays - If true, then try to save space by putting variables
into arrays.generatorPackageList - A semicolon or * separated list of
Java packages to be searched for adapters. For example,
generic.program.procedural.c.arduino means use the arduinojava.lang.Throwable - If thrown while generating, compiling or executing the compiled code.