Skip to content
Snippets Groups Projects
Commit 401326ac authored by Jonas's avatar Jonas
Browse files

Update on autolaunching processes

parent 3e199df4
Branches
No related merge requests found
......@@ -38,8 +38,7 @@ public class Configurator {
//path to the testcase compliler
private String m_sTestCaseCompilerPath = "../../../build/test/compiler/compiler.dll";
//arguments for the testcase compiler
//TODO: Set paths
private String[] m_aCompilerArgs = new String[] {"path1", "path2"};
private String[] m_aCompilerArgs = new String[] {"../../test/testfaelle", "../../../build/test/compiler/testfaelle"};
//document representation of the feature model
private Document m_oFeatureModelDoc;
......@@ -126,7 +125,7 @@ public class Configurator {
//TODO launch compiler
try {
Process oTestCaseCompiler = Runtime.getRuntime().exec("dotnet " + m_sTestManagerPath + m_aCompilerArgs[0] + " " + m_aCompilerArgs[1]);
Process oTestCaseCompiler = Runtime.getRuntime().exec("dotnet " + m_sTestManagerPath + " " + m_aCompilerArgs[0] + " " + m_aCompilerArgs[1]);
BufferedReader oOutput = new BufferedReader(new InputStreamReader(oTestCaseCompiler.getInputStream()));
String sOutput = null;
while ((sOutput = oOutput.readLine()) != null) {
......@@ -138,6 +137,7 @@ public class Configurator {
//TODO launch test manager
try {
Process oChMod = Runtime.getRuntime().exec("chmod u+x"+ m_sTestManagerPath);
Process oTestManager = Runtime.getRuntime().exec(m_sTestManagerPath);
BufferedReader oOutput = new BufferedReader(new InputStreamReader(oTestManager.getInputStream()));
String sOutput = null;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment