Commit 04a71759 authored by Nils Kaminski's avatar Nils Kaminski
Browse files

Fix Test for MathOpt

parent 315414cc
Pipeline #90387 failed with stage
in 31 seconds
......@@ -34,6 +34,10 @@ public class ConfigPortTest extends AbstractSymtabTest{
assertNull(subInst1.getIncomingPortInstance("param2").orElse(null));
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/configPort/");
List<File> files = generatorCPP.generateFiles(comp, symtab);
......@@ -53,6 +57,10 @@ public class ConfigPortTest extends AbstractSymtabTest{
assertTrue(configPort.isIncoming());
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/configPortFromKeyword/");
List<File> files = generatorCPP.generateFiles(comp, symtab);
......
......@@ -35,6 +35,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -50,6 +54,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -64,6 +72,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -79,6 +91,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -94,6 +110,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -108,6 +128,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -123,6 +147,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -138,6 +166,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -154,6 +186,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -168,6 +204,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -183,6 +223,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -198,6 +242,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -212,6 +260,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -227,6 +279,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -242,6 +298,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -256,6 +316,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -271,6 +335,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......@@ -286,6 +354,10 @@ public class MathOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/optimizer/l1/");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "optimizer/l1/";
......
......@@ -29,6 +29,8 @@ public class TestsGenTest extends AbstractSymtabTest {
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setModelsDirPath(MODELS_DIR_PATH);
generatorCPP.setGenerateTests(true);
generatorCPP.setGenerateCMake(false);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/MySuperAwesomeComponent1/");
generatorCPP.setCheckModelDir(true);
List<File> files = generatorCPP.generateFiles(symTab, componentSymbol, symTab);
......
......@@ -24,6 +24,8 @@ public class BasicGenerationTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("testing.basicLookUpInstance", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testing/l0");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "testing/l0/";
......@@ -37,6 +39,8 @@ public class BasicGenerationTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("testing.model", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setGenerateCMake(false);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testing/l0");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
}
......@@ -91,6 +95,7 @@ public class BasicGenerationTest extends AbstractSymtabTest {
} else {
firstPartOfPath = "./target/generated-sources-cpp/paperMatrixModifier/l";
}
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath(firstPartOfPath + additionalPath);
generatorCPP.generateFiles(componentSymbol, symtab);
}
......@@ -103,6 +108,7 @@ public class BasicGenerationTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useArmadilloBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/armadillo/testing");
generatorCPP.generateFiles(componentSymbol, symtab);
}
......@@ -114,6 +120,7 @@ public class BasicGenerationTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useArmadilloBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/armadillo/testing");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "armadillo/testing/";
......
......@@ -24,6 +24,8 @@ public class BasicMathGenerationTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setGenerateCMake(false);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testMath/l0");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "testMath/l0/";
......@@ -38,6 +40,8 @@ public class BasicMathGenerationTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("test.math.columnVectorMathSectionTest", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testMath/l0");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "testMath/l0/";
......@@ -51,6 +55,8 @@ public class BasicMathGenerationTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("test.math.staticMathSectionVariableTest", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testMath/l0");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "testMath/l0/";
......@@ -64,6 +70,8 @@ public class BasicMathGenerationTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("test.math.matrixConstantVariableMathSectionTest", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testMath/l0");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "testMath/l0/";
......@@ -77,6 +85,7 @@ public class BasicMathGenerationTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useArmadilloBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testMath/l0");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "testMath/l0/";
......@@ -91,6 +100,7 @@ public class BasicMathGenerationTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useArmadilloBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testMath/l0");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "testMath/l0/";
......@@ -105,6 +115,7 @@ public class BasicMathGenerationTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useArmadilloBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testMath/l0");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "testMath/l0/";
......
......@@ -42,6 +42,7 @@ public class GenerationTest extends AbstractSymtabTest {
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testBooleanVariableComp");
generatorCPP.useArmadilloBackend();
generatorCPP.setGenerateCMake(false);
List<File> files = generatorCPP.generateFiles(symtab, componentSymbol, symtab);
String restPath = "testBooleanVariableComp/";
testFilesAreEqual(files, restPath);
......@@ -54,6 +55,10 @@ public class GenerationTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("test.singleElemArray", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testSingleElemArray");
List<File> files = generatorCPP.generateFiles(symtab, componentSymbol, symtab);
String restPath = "testSingleElemArray/";
......@@ -67,6 +72,10 @@ public class GenerationTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("test.basicConstantAssignment", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testConstantAssignment");
List<File> files = generatorCPP.generateFiles(symtab, componentSymbol, symtab);
String restPath = "testConstantAssignment/";
......@@ -80,6 +89,10 @@ public class GenerationTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("test.basicConstantAssignment2", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testConstantAssignment2");
List<File> files = generatorCPP.generateFiles(symtab, componentSymbol, symtab);
String restPath = "testConstantAssignment2/";
......@@ -93,6 +106,10 @@ public class GenerationTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("test.basicPorts", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
//System.out.println(generatorCPP.generateString(componentSymbol));
assertEquals("#ifndef TEST_BASICPORTS\n" +
"#define TEST_BASICPORTS\n" +
......@@ -129,6 +146,10 @@ public class GenerationTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("test.basicPortsConstantConnector", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
//System.out.println(generatorCPP.generateString(componentSymbol));
assertEquals("#ifndef TEST_BASICPORTSCONSTANTCONNECTOR\n" +
"#define TEST_BASICPORTSCONSTANTCONNECTOR\n" +
......@@ -168,6 +189,10 @@ public class GenerationTest extends AbstractSymtabTest {
//MathStatementsSymbol mathSymbol = symtab.<MathStatementsSymbol>resolve("test.BasicPortsMath.MathStatements", MathStatementsSymbol.KIND).orElse(null);
//assertNotNull(mathSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
//System.out.println(generatorCPP.generateString(componentSymbol, mathSymbol));
assertEquals("#ifndef TEST_BASICPORTSMATH\n" +
"#define TEST_BASICPORTSMATH\n" +
......@@ -209,6 +234,10 @@ public class GenerationTest extends AbstractSymtabTest {
MathStatementsSymbol mathSymbol = Helper.getMathStatementsSymbolFor(componentSymbol, symtab);
assertNotNull(mathSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
//System.out.println(generatorCPP.generateString(componentSymbol, mathSymbol));
assertEquals("#ifndef TEST_BASICPORTSLOOP\n" +
"#define TEST_BASICPORTSLOOP\n" +
......@@ -374,6 +403,10 @@ public class GenerationTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("test.basicGenericArrayInstance", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testBasicGenericArrayInstance");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "testBasicGenericArrayInstance/";
......@@ -464,6 +497,10 @@ public class GenerationTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("simulator.mainController", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/simulatorMainController");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "simulatorMainController/";
......@@ -480,6 +517,10 @@ public class GenerationTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("test.basicPrecisionTest1", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/test");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "test/";
......@@ -498,6 +539,10 @@ public class GenerationTest extends AbstractSymtabTest {
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseAlgebraicOptimizations(true);
generatorCPP.setUseThreadingOptimization(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/paperMatrixModifier/l3");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "paperMatrixModifier/l3/";
......@@ -539,6 +584,10 @@ public class GenerationTest extends AbstractSymtabTest {
).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testing/MyComponent4v1");
List<File> files = generatorCPP.generateFiles(componentSymbol, symTab);
Assert.assertNotNull(files);
......@@ -554,6 +603,10 @@ public class GenerationTest extends AbstractSymtabTest {
).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testing");
List<File> files = generatorCPP.generateFiles(componentSymbol, symTab);
String restPath = "testing/";
......@@ -616,6 +669,10 @@ public class GenerationTest extends AbstractSymtabTest {
assertNotNull(componentInstanceSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testing/Parameter/");
List<File> files = generatorCPP.generateFiles(componentInstanceSymbol, taggingResolver);
......@@ -633,6 +690,7 @@ public class GenerationTest extends AbstractSymtabTest {
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useArmadilloBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testing/WholeNumberPort/");
List<File> files = generatorCPP.generateFiles(componentInstanceSymbol, taggingResolver);
......@@ -649,6 +707,7 @@ public class GenerationTest extends AbstractSymtabTest {
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useArmadilloBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testing/WholeNumberMatrix/");
List<File> files = generatorCPP.generateFiles(componentInstanceSymbol, taggingResolver);
......
......@@ -64,6 +64,10 @@ public class GeneratorCppCliTest extends AbstractSymtabTest {
).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath(targetPath);
List<File> files = generatorCPP.generateFiles(componentSymbol, symTab);
Assert.assertNotNull(files);
......
......@@ -27,6 +27,10 @@ public class OctaveFunctionTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("test.math." + namePart + "CommandTest", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testMath/l0");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "testMath/l0/";
......@@ -41,6 +45,10 @@ public class OctaveFunctionTest extends AbstractSymtabTest {
EMAComponentInstanceSymbol componentSymbol = symtab.<EMAComponentInstanceSymbol>resolve("test.math." + namePart + "CommandTest", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/testMath/l0");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "testMath/l0/";
......
......@@ -27,6 +27,10 @@ public class ThreadingOptimizerTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.setUseThreadingOptimization(true);
generatorCPP.useOctaveBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/paperMatrixModifier/l2");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "paperMatrixModifier/l2/";
......
......@@ -31,6 +31,7 @@ public class ArmadilloFunctionTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useArmadilloBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/armadillo/testMath/l0");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "armadillo/testMath/l0/";
......@@ -46,6 +47,7 @@ public class ArmadilloFunctionTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useArmadilloBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/armadillo/testMath/l0");
List<File> files = generatorCPP.generateFiles(componentSymbol, symtab);
String restPath = "armadillo/testMath/l0/";
......
......@@ -37,6 +37,7 @@ public class BasicGenerationArmadilloTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useArmadilloBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/armadillo/testConstantAssignment");
List<File> files = generatorCPP.generateFiles(symtab, componentSymbol, symtab);
String restPath = "armadillo/testConstantAssignment/";
......@@ -52,6 +53,7 @@ public class BasicGenerationArmadilloTest extends AbstractSymtabTest {
assertNotNull(componentSymbol);
GeneratorCPP generatorCPP = new GeneratorCPP();
generatorCPP.useArmadilloBackend();
generatorCPP.setGenerateCMake(false);
generatorCPP.setGenerationTargetPath("./target/generated-sources-cpp/armadillo/testConstantAssignment2");
List<File> files = generatorCPP.generateFiles(symtab, componentSymbol, symtab);
String restPath = "armadillo/testConstantAssignment2/";
......@@ -67,6 +69,7 @@ public class BasicGenerationArmadilloTest extends AbstractSymtabTest {