Skip to content

Commit

Permalink
disable test
Browse files Browse the repository at this point in the history
  • Loading branch information
lausdahl committed Jul 16, 2024
1 parent bede2df commit 179117f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions maestro/src/test/java/org/intocps/maestro/FullSpecCppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.condition.DisabledOnOs;
import org.junit.jupiter.api.condition.OS;

import java.io.File;
import java.io.IOException;
Expand All @@ -27,6 +29,7 @@
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;

@DisabledOnOs(OS.WINDOWS)
public class FullSpecCppTest extends FullSpecTest {
public static final List<String> CACHE_FOLDERS = Arrays.asList("libzip", "rapidjson", "intocpsfmi-src");
static final File baseProjectPath = Paths.get("target", FullSpecCppTest.class.getSimpleName(), "_base").toFile().getAbsoluteFile();
Expand Down Expand Up @@ -79,7 +82,7 @@ protected boolean getMablVerbose() {

@Override
protected void postProcessSpec(String name, File directory, File workingDirectory, Mabl mabl, ARootDocument spec,
Map<INode, PType> value) throws Exception {
Map<INode, PType> value) throws Exception {
if (!beforeExecuted) {
configureBaseProject();
}
Expand Down Expand Up @@ -139,8 +142,8 @@ protected void postProcessSpec(String name, File directory, File workingDirector
spec.apply(new DepthFirstAnalysisAdaptor() {
@Override
public void caseALoadExp(ALoadExp node) {
if (node.getArgs().size() == 3 && node.getArgs().get(0) instanceof AStringLiteralExp && ((AStringLiteralExp) node.getArgs()
.get(0)).getValue().equals("FMI2")) {
if (node.getArgs().size() == 3 && node.getArgs().get(0) instanceof AStringLiteralExp &&
((AStringLiteralExp) node.getArgs().get(0)).getValue().equals("FMI2")) {
if (node.getArgs().get(2) instanceof AStringLiteralExp) {
fmus.add(new File(((AStringLiteralExp) node.getArgs().get(2)).getValue()));
}
Expand Down Expand Up @@ -168,8 +171,8 @@ public void caseALoadExp(ALoadExp node) {
}

pb = new ProcessBuilder(simProjectSimFile.getAbsolutePath(), "-runtime", runtimeFileTest.getAbsolutePath());
File simulationWorkingDir = directory.getAbsoluteFile().getParentFile().getParentFile().getParentFile().getParentFile()
.getParentFile().getParentFile();
File simulationWorkingDir =
directory.getAbsoluteFile().getParentFile().getParentFile().getParentFile().getParentFile().getParentFile().getParentFile();
System.out.println("Simulation working dir: " + simulationWorkingDir);
pb.directory(simulationWorkingDir);
Assertions.assertTrue(CMakeUtil.runProcess(pb, true), "Simulation did not complete without errors (" + name + ")");
Expand Down

0 comments on commit 179117f

Please sign in to comment.