From c4b7990082cf986cfe3185dc95e15f1680ffa7da Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Tue, 24 Oct 2023 00:31:44 -0400 Subject: [PATCH] Add combined test meta-task --- shared/cppJavaDesktopTestTask.gradle | 7 +++++++ shared/javacpp/setupBuild.gradle | 3 +-- shared/jni/setupBuild.gradle | 3 +-- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 shared/cppJavaDesktopTestTask.gradle diff --git a/shared/cppJavaDesktopTestTask.gradle b/shared/cppJavaDesktopTestTask.gradle new file mode 100644 index 00000000000..475c38c4cd3 --- /dev/null +++ b/shared/cppJavaDesktopTestTask.gradle @@ -0,0 +1,7 @@ +apply from: "${rootDir}/shared/cppDesktopTestTask.gradle" +apply from: "${rootDir}/shared/javaDesktopTestTask.gradle" + +tasks.register('testDesktop') { + dependsOn testDesktopJava + dependsOn testDesktopCpp +} diff --git a/shared/javacpp/setupBuild.gradle b/shared/javacpp/setupBuild.gradle index f2d88c4a829..1f3ff10acc1 100644 --- a/shared/javacpp/setupBuild.gradle +++ b/shared/javacpp/setupBuild.gradle @@ -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" diff --git a/shared/jni/setupBuild.gradle b/shared/jni/setupBuild.gradle index 6f4345ad57f..9f9334ffc02 100644 --- a/shared/jni/setupBuild.gradle +++ b/shared/jni/setupBuild.gradle @@ -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