C: fix running tests

This commit is contained in:
Alexey Andreev 2023-09-19 10:06:05 +02:00
parent 2e7e11292b
commit 409292159e

View File

@ -57,5 +57,9 @@ tasks.test {
systemProperty("teavm.junit.wasi.runner", providers.gradleProperty("teavm.tests.wasi.runner") systemProperty("teavm.junit.wasi.runner", providers.gradleProperty("teavm.tests.wasi.runner")
.orElse("./run-wasi.sh").get()) .orElse("./run-wasi.sh").get())
systemProperty("teavm.junit.c", providers.gradleProperty("teavm.tests.c").orElse("false").get())
systemProperty("teavm.junit.c.compiler", providers.gradleProperty("teavm.tests.c.compiler")
.orElse("compile-c-unix-fast.sh").get())
maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1) maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1)
} }