Skip to content
Snippets Groups Projects
Commit dfcedf2e authored by Cookiebowser's avatar Cookiebowser
Browse files

adjusted tests of other languages for code-generator signature change

parent ef1b03db
Branches
No related tags found
No related merge requests found
...@@ -43,7 +43,8 @@ public class TestC { ...@@ -43,7 +43,8 @@ public class TestC {
false, false,
false, false,
null, null,
null); null,
false);
//cFilePaths.forEach(path -> cleanUp(path.toString())); //cFilePaths.forEach(path -> cleanUp(path.toString()));
} }
......
...@@ -39,7 +39,8 @@ public class TestClojure { ...@@ -39,7 +39,8 @@ public class TestClojure {
false, false,
false, false,
null, null,
null); null,
false);
//cljFilePaths.forEach(path -> cleanUp(path.toString())); //cljFilePaths.forEach(path -> cleanUp(path.toString()));
} }
......
...@@ -63,7 +63,8 @@ public class TestCpp { ...@@ -63,7 +63,8 @@ public class TestCpp {
false, false,
false, false,
null, null,
null); null,
false);
Process process = Runtime.getRuntime() Process process = Runtime.getRuntime()
.exec("g++ -std=c++14 -O2 -g -DIMMER_NO_THREAD_SAFETY -c " + cppFilePaths.get(cppFilePaths.size() - 1).toFile().getAbsoluteFile().toString()); .exec("g++ -std=c++14 -O2 -g -DIMMER_NO_THREAD_SAFETY -c " + cppFilePaths.get(cppFilePaths.size() - 1).toFile().getAbsoluteFile().toString());
...@@ -92,7 +93,8 @@ public class TestCpp { ...@@ -92,7 +93,8 @@ public class TestCpp {
false, false,
false, false,
null, null,
null); null,
false);
Runtime runtime = Runtime.getRuntime(); Runtime runtime = Runtime.getRuntime();
...@@ -147,7 +149,8 @@ public class TestCpp { ...@@ -147,7 +149,8 @@ public class TestCpp {
false, false,
false, false,
null, null,
null); null,
false);
Process process = Runtime.getRuntime() Process process = Runtime.getRuntime()
.exec("g++ -std=c++14 -O2 -g -ferror-limit=100 -DIMMER_NO_THREAD_SAFETY -c " + cppFilePaths.get(cppFilePaths.size() - 1).toFile().getAbsoluteFile().toString()); .exec("g++ -std=c++14 -O2 -g -ferror-limit=100 -DIMMER_NO_THREAD_SAFETY -c " + cppFilePaths.get(cppFilePaths.size() - 1).toFile().getAbsoluteFile().toString());
......
...@@ -61,7 +61,8 @@ public class TestJava { ...@@ -61,7 +61,8 @@ public class TestJava {
false, false,
false, false,
null, null,
null); null,
false);
Process process = Runtime.getRuntime() Process process = Runtime.getRuntime()
.exec("javac -classpath btypes.jar " + String.join(" ", javaFilePaths.stream() .exec("javac -classpath btypes.jar " + String.join(" ", javaFilePaths.stream()
.map(path -> path.toFile().getAbsoluteFile().toString()) .map(path -> path.toFile().getAbsoluteFile().toString())
...@@ -101,7 +102,8 @@ public class TestJava { ...@@ -101,7 +102,8 @@ public class TestJava {
false, false,
false, false,
null, null,
null); null,
false);
Runtime runtime = Runtime.getRuntime(); Runtime runtime = Runtime.getRuntime();
Process compileProcess = runtime.exec("javac -cp btypes.jar " + Process compileProcess = runtime.exec("javac -cp btypes.jar " +
String.join(" ", javaFilePaths.stream() String.join(" ", javaFilePaths.stream()
...@@ -161,7 +163,8 @@ public class TestJava { ...@@ -161,7 +163,8 @@ public class TestJava {
false, false,
false, false,
null, null,
null); null,
false);
Process process = Runtime.getRuntime() Process process = Runtime.getRuntime()
.exec("javac -cp btypes.jar " + String.join(" ", javaFilePaths.stream() .exec("javac -cp btypes.jar " + String.join(" ", javaFilePaths.stream()
.map(path -> path.toFile().getAbsoluteFile().toString()) .map(path -> path.toFile().getAbsoluteFile().toString())
......
...@@ -106,7 +106,8 @@ public class TestJs { ...@@ -106,7 +106,8 @@ public class TestJs {
false, false,
forVisualisation, forVisualisation,
visualisation, visualisation,
null); null,
false);
Process compileProcess = Runtime.getRuntime().exec("tsc --target ES6 --moduleResolution node " + Process compileProcess = Runtime.getRuntime().exec("tsc --target ES6 --moduleResolution node " +
String.join(" ", tsFilePaths.stream() String.join(" ", tsFilePaths.stream()
......
...@@ -52,7 +52,8 @@ public class TestProlog { ...@@ -52,7 +52,8 @@ public class TestProlog {
false, false,
false, false,
null, null,
null); null,
false);
Process process = Runtime.getRuntime() Process process = Runtime.getRuntime()
.exec("javac -classpath btypes_persistent.jar " + String.join(" ", javaFilePaths.stream() .exec("javac -classpath btypes_persistent.jar " + String.join(" ", javaFilePaths.stream()
.map(path -> path.toFile().getAbsoluteFile().toString()) .map(path -> path.toFile().getAbsoluteFile().toString())
...@@ -85,7 +86,8 @@ public class TestProlog { ...@@ -85,7 +86,8 @@ public class TestProlog {
false, false,
false, false,
null, null,
null); null,
false);
// Runtime runtime = Runtime.getRuntime(); // Runtime runtime = Runtime.getRuntime();
// Process compileProcess = runtime.exec("javac -cp btypes_persistent.jar " + // Process compileProcess = runtime.exec("javac -cp btypes_persistent.jar " +
// String.join(" ", javaFilePaths.stream() // String.join(" ", javaFilePaths.stream()
...@@ -145,7 +147,8 @@ public class TestProlog { ...@@ -145,7 +147,8 @@ public class TestProlog {
false, false,
false, false,
null, null,
null); null,
false);
Process process = Runtime.getRuntime() Process process = Runtime.getRuntime()
.exec("javac -classpath btypes.jar " + String.join(" ", javaFilePaths.stream() .exec("javac -classpath btypes.jar " + String.join(" ", javaFilePaths.stream()
.map(path -> path.toFile().getAbsoluteFile().toString()) .map(path -> path.toFile().getAbsoluteFile().toString())
......
...@@ -59,7 +59,8 @@ public class TestPython { ...@@ -59,7 +59,8 @@ public class TestPython {
false, false,
false, false,
null, null,
null); null,
false);
pythonFilePaths.forEach(path -> cleanUp(path.toString())); pythonFilePaths.forEach(path -> cleanUp(path.toString()));
} }
...@@ -83,7 +84,8 @@ public class TestPython { ...@@ -83,7 +84,8 @@ public class TestPython {
false, false,
false, false,
null, null,
null); null,
false);
Path mainPath = pythonFilePaths.get(pythonFilePaths.size() - 1); Path mainPath = pythonFilePaths.get(pythonFilePaths.size() - 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment