Skip to content

Commit 1cc6e2f

Browse files
committed
cli.test: New attempt to fix Win test
1 parent 8c8c516 commit 1cc6e2f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/de.cau.cs.kieler.cli.test/src/de/cau/cs/kieler/cli/test/SCChartsCLITest.xtend

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,17 @@ class SCChartsCLITest extends AbstractCLITest {
181181
val dir = setupTest("complex-compile")
182182

183183
val wd = new File(dir, "sctx/abo")
184-
val local_compiler = wd.toPath.resolve(compiler.name)
184+
val local_compiler = wd.toPath.toAbsolutePath.relativize(compiler.toPath.toAbsolutePath)
185185

186-
// copy to local
187-
Files.copy(compiler.toPath, local_compiler, StandardCopyOption.REPLACE_EXISTING)
188-
assertTrue("Failed to copy compiler from " + compiler.toPath.toString + " to local test folder " + local_compiler.toString, local_compiler.toFile.isFile)
189-
assertTrue("Cannot set executable flag of compiler", local_compiler.toFile.setExecutable(true))
186+
// val local_compiler = wd.toPath.resolve(compiler.name)
187+
// // copy to local
188+
// Files.copy(compiler.toPath, local_compiler, StandardCopyOption.REPLACE_EXISTING)
189+
// assertTrue("Failed to copy compiler from " + compiler.toPath.toString + " to local test folder " + local_compiler.toString, local_compiler.toFile.isFile)
190+
// assertTrue("Cannot set executable flag of compiler", local_compiler.toFile.setExecutable(true))
190191

191192
// compiler
192-
val command = #[new File("./" + compiler.name).path, "-v", "-s", "de.cau.cs.kieler.sccharts.netlist", "-o", "code", "-ig", "kieler-gen", "abo.sctx"]
193+
// val command = #[new File("./" + compiler.name).path, "-v", "-s", "de.cau.cs.kieler.sccharts.netlist", "-o", "code", "-ig", "kieler-gen", "abo.sctx"]
194+
val command = #[local_compiler.toString, "-v", "-s", "de.cau.cs.kieler.sccharts.netlist", "-o", "code", "-ig", "kieler-gen", "abo.sctx"]
193195
assertEquals("Exit value not zero", 0, command.invoke(wd))
194196

195197
// check results

0 commit comments

Comments
 (0)