From 54cde09be38121262ad4c9dfa3847e53960410f4 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Mon, 19 Aug 2024 02:59:11 +0200 Subject: [PATCH] Update test configuration in other build.gradle files --- ansi/build.gradle | 7 +++++++ base/build.gradle | 1 + graphics/build.gradle | 7 +++++++ graphics/glfw/build.gradle | 7 +++++++ graphics/opengl/build.gradle | 7 +++++++ graphics/vulkan/build.gradle | 7 +++++++ 6 files changed, 36 insertions(+) diff --git a/ansi/build.gradle b/ansi/build.gradle index 5c50ca8..e373861 100644 --- a/ansi/build.gradle +++ b/ansi/build.gradle @@ -92,6 +92,13 @@ javadoc { test { useJUnitPlatform() + // Pass test configuration to test VMs + Map testConfiguration = new HashMap<>(); + for (String property : project.properties.keySet()) + if (property.startsWith("test.")) + testConfiguration.put(property, project.properties.get(property).toString()) + systemProperties(testConfiguration) + setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setForkEvery(1) setFailFast(true) diff --git a/base/build.gradle b/base/build.gradle index 0a8507a..1e94679 100644 --- a/base/build.gradle +++ b/base/build.gradle @@ -131,6 +131,7 @@ javadoc { test { useJUnitPlatform() + // Pass test configuration to test VMs Map testConfiguration = new HashMap<>(); for (String property : project.properties.keySet()) if (property.startsWith("test.")) diff --git a/graphics/build.gradle b/graphics/build.gradle index 696d81b..ba1cc4b 100644 --- a/graphics/build.gradle +++ b/graphics/build.gradle @@ -90,6 +90,13 @@ javadoc { test { useJUnitPlatform() + // Pass test configuration to test VMs + Map testConfiguration = new HashMap<>(); + for (String property : project.properties.keySet()) + if (property.startsWith("test.")) + testConfiguration.put(property, project.properties.get(property).toString()) + systemProperties(testConfiguration) + setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setForkEvery(1) setFailFast(true) diff --git a/graphics/glfw/build.gradle b/graphics/glfw/build.gradle index ec2f759..9cae423 100644 --- a/graphics/glfw/build.gradle +++ b/graphics/glfw/build.gradle @@ -125,6 +125,13 @@ javadoc { test { useJUnitPlatform() + // Pass test configuration to test VMs + Map testConfiguration = new HashMap<>(); + for (String property : project.properties.keySet()) + if (property.startsWith("test.")) + testConfiguration.put(property, project.properties.get(property).toString()) + systemProperties(testConfiguration) + setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setForkEvery(1) setFailFast(true) diff --git a/graphics/opengl/build.gradle b/graphics/opengl/build.gradle index ccbb38f..6e7d6fc 100644 --- a/graphics/opengl/build.gradle +++ b/graphics/opengl/build.gradle @@ -129,6 +129,13 @@ javadoc { test { useJUnitPlatform() + // Pass test configuration to test VMs + Map testConfiguration = new HashMap<>(); + for (String property : project.properties.keySet()) + if (property.startsWith("test.")) + testConfiguration.put(property, project.properties.get(property).toString()) + systemProperties(testConfiguration) + setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setForkEvery(1) setFailFast(true) diff --git a/graphics/vulkan/build.gradle b/graphics/vulkan/build.gradle index 2babba1..f1f163b 100644 --- a/graphics/vulkan/build.gradle +++ b/graphics/vulkan/build.gradle @@ -126,6 +126,13 @@ javadoc { test { useJUnitPlatform() + // Pass test configuration to test VMs + Map testConfiguration = new HashMap<>(); + for (String property : project.properties.keySet()) + if (property.startsWith("test.")) + testConfiguration.put(property, project.properties.get(property).toString()) + systemProperties(testConfiguration) + setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setForkEvery(1) setFailFast(true)