Skip to content

Commit

Permalink
created target for transformer regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
jckreg committed Dec 18, 2024
1 parent e89c432 commit 33a9d05
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,24 @@ tasks.register<ExecOperationsTask>("transform") {
}
}

tasks.register<ExecOperationsTask>("regression-transformer") {
group = "testing"
description = "Runs regression test for transformer"
dependsOn("compile")
doLast {
execOperations.javaexec {
classpath = files(configurations.runtimeClasspath.get().files.joinToString(File.pathSeparator))
// classpath = files(configurations.testRuntimeClasspath.get().files.joinToString(File.pathSeparator))
classpath += files(File.pathSeparator + file("build/classes/java"))
mainClass.set("transform.Main")
args("test/transformer/regression", "testOutput")
// args("-cp")
standardOutput = System.out
errorOutput = System.err
}
}
}

// Wipes all folders created by the code as well as the build folder
// Use for fresh run of code
tasks.register<Delete>("reset") {
Expand Down

0 comments on commit 33a9d05

Please sign in to comment.