Skip to content

Commit

Permalink
Consistently use doLast.
Browse files Browse the repository at this point in the history
This is motivate by failures in eisop/jdk#97
  • Loading branch information
wmdietl committed Nov 13, 2024
1 parent e151772 commit a42d396
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions checker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -283,18 +283,26 @@ checkCompilerMessages {
}
}

task nullnessExtraTests(type: Exec, dependsOn: assembleForJavac, group: 'Verification') {
task nullnessExtraTests(dependsOn: assembleForJavac, group: 'Verification') {
description 'Run extra tests for the Nullness Checker.'
executable 'make'
environment JAVAC: "${projectDir}/bin/javac -AnoJreVersionCheck", JAVAP: 'javap'
args = ['-C', 'tests/nullness-extra/']
doLast{
exec{
executable 'make'
environment JAVAC: "${projectDir}/bin/javac -AnoJreVersionCheck", JAVAP: 'javap'
args = ['-C', 'tests/nullness-extra/']
}
}
}

task commandLineTests(type: Exec, dependsOn: assembleForJavac, group: 'Verification') {
task commandLineTests(dependsOn: assembleForJavac, group: 'Verification') {
description 'Run tests that need a special command line.'
executable 'make'
environment JAVAC: "${projectDir}/bin/javac -AnoJreVersionCheck"
args = ['-C', 'tests/command-line/']
doLast {
exec {
executable 'make'
environment JAVAC: "${projectDir}/bin/javac -AnoJreVersionCheck"
args = ['-C', 'tests/command-line/']
}
}
}

task tutorialTests(dependsOn: assembleForJavac, group: 'Verification') {
Expand All @@ -306,11 +314,15 @@ task tutorialTests(dependsOn: assembleForJavac, group: 'Verification') {
}
}

task exampleTests(type: Exec, dependsOn: assembleForJavac, group: 'Verification') {
task exampleTests(dependsOn: assembleForJavac, group: 'Verification') {
description 'Run tests for the example programs.'
executable 'make'
environment JAVAC: "${projectDir}/bin/javac -AnoJreVersionCheck"
args = ['-C', '../docs/examples']
doLast{
exec{
executable 'make'
environment JAVAC: "${projectDir}/bin/javac -AnoJreVersionCheck"
args = ['-C', '../docs/examples']
}
}
}

task demosTests(dependsOn: assembleForJavac, group: 'Verification') {
Expand Down

0 comments on commit a42d396

Please sign in to comment.