Skip to content

Commit

Permalink
Add combined test meta-task
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Oct 24, 2023
1 parent f4cbcbc commit c4b7990
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 7 additions & 0 deletions shared/cppJavaDesktopTestTask.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apply from: "${rootDir}/shared/cppDesktopTestTask.gradle"
apply from: "${rootDir}/shared/javaDesktopTestTask.gradle"

tasks.register('testDesktop') {
dependsOn testDesktopJava
dependsOn testDesktopCpp
}
3 changes: 1 addition & 2 deletions shared/javacpp/setupBuild.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ model {
}
}

apply from: "${rootDir}/shared/cppDesktopTestTask.gradle"
apply from: "${rootDir}/shared/javaDesktopTestTask.gradle"
apply from: "${rootDir}/shared/cppJavaDesktopTestTask.gradle"

tasks.withType(RunTestExecutable) {
args "--gtest_output=xml:test_detail.xml"
Expand Down
3 changes: 1 addition & 2 deletions shared/jni/setupBuild.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,7 @@ model {
}
}

apply from: "${rootDir}/shared/cppDesktopTestTask.gradle"
apply from: "${rootDir}/shared/javaDesktopTestTask.gradle"
apply from: "${rootDir}/shared/cppJavaDesktopTestTask.gradle"

ext.getJniSpecClass = {
return JniNativeLibrarySpec
Expand Down

0 comments on commit c4b7990

Please sign in to comment.