Skip to content

Commit

Permalink
Moved code_generator_test.
Browse files Browse the repository at this point in the history
  • Loading branch information
clnhlzmn committed Mar 25, 2021
1 parent 64fcf88 commit 4cce8bd
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ internal class CodeGeneratorTest {
@Test
fun testCodeGenerator() {
val makeClean = ProcessBuilder()
.directory(File("./test/code_generator_test"))
.directory(File("./../test/code_generator_test"))
.command("make", "clean").start()
makeClean.waitFor(10, TimeUnit.SECONDS)

val make = ProcessBuilder()
.directory(File("./test/code_generator_test"))
.directory(File("./../test/code_generator_test"))
.command("make").start()
make.waitFor(10, TimeUnit.SECONDS)

File("./test/code_generator_test/out/test_output.txt").reader().use {
File("./../test/code_generator_test/out/test_output.txt").reader().use {
assertEquals(testOutput, it.readLines())
}
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ out/test: test_driver.c out/test.c out/test.h out
gcc test_driver.c out/test.c -I "." -std=c99 -Wall -Wextra -Werror -o out/test

out/test.c:
java -jar ../../out/artifacts/makina_compiler_jar/makina-compiler.jar test_source.mkna -m "struct machine_data" -e "struct event_data" -i "test_data.h" -o out
java -jar ../../makina-compiler/out/artifacts/makina_compiler_jar/makina-compiler.jar test_source.mkna -m "struct machine_data" -e "struct event_data" -i "test_data.h" -o out

out:
mkdir out
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4cce8bd

Please sign in to comment.