From d9d031050fe299bd9b638629579a69abac00f8a6 Mon Sep 17 00:00:00 2001 From: "Peter A. Jonsson" Date: Tue, 19 Sep 2023 11:09:51 +0200 Subject: [PATCH] tests: avoid Java ServiceLoader mechanism Set the slf4j.provider property so the ServiceLoader mechanism in Java can be avoided. This saves 1 second for 07-simulation-base on my machine, and it probably saves more on slower machines. --- tests/Makefile.simulation-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Makefile.simulation-test b/tests/Makefile.simulation-test index 218bfaf7a6..57b1d0a0a5 100644 --- a/tests/Makefile.simulation-test +++ b/tests/Makefile.simulation-test @@ -63,7 +63,7 @@ endif # Successful simulations do nothing, failures appends test+seed to summary. tests: $(TESTS) @for (( SEED=$(BASESEED); SEED < $$(( $(BASESEED) + $(RUNCOUNT) )); SEED++ )); do \ - $(GRADLE) --no-watch-fs --parallel --build-cache -p $(CONTIKI)/tools/cooja run --args="--no-gui --contiki=$(realpath $(CONTIKI)) --logdir=$(dir $(realpath $<)) --random-seed=$$SEED $(realpath $^)" || \ + $(GRADLE) --no-watch-fs --parallel --build-cache -p $(CONTIKI)/tools/cooja run -Dslf4j.provider=ch.qos.logback.classic.spi.LogbackServiceProvider --args="--no-gui --contiki=$(realpath $(CONTIKI)) --logdir=$(dir $(realpath $<)) --random-seed=$$SEED $(realpath $^)" || \ echo "TEST FAIL: $^ seed $$SEED" >> summary; \ done