move jdk24 jvm-opts to separate
Signed-off-by: Sean Corfield <sean@corfield.org>
This commit is contained in:
parent
a40abc285e
commit
14b4c3435f
2 changed files with 11 additions and 7 deletions
8
deps.edn
8
deps.edn
|
|
@ -50,7 +50,7 @@
|
||||||
org.apache.logging.log4j/log4j-jul {:mvn/version "2.24.3"}
|
org.apache.logging.log4j/log4j-jul {:mvn/version "2.24.3"}
|
||||||
org.apache.logging.log4j/log4j-slf4j-impl {:mvn/version "2.24.3"}
|
org.apache.logging.log4j/log4j-slf4j-impl {:mvn/version "2.24.3"}
|
||||||
org.apache.logging.log4j/log4j-slf4j2-impl {:mvn/version "2.24.3"}}
|
org.apache.logging.log4j/log4j-slf4j2-impl {:mvn/version "2.24.3"}}
|
||||||
:jvm-opts ["-Dlog4j2.configurationFile=log4j2-info.properties"
|
:jvm-opts ["-Dlog4j2.configurationFile=log4j2-info.properties"]}
|
||||||
;; for SQLite on JDK 24:
|
:runner {:main-opts ["-m" "lazytest.main"]}
|
||||||
"--enable-native-access=ALL-UNNAMED"]}
|
:jdk24 {:jvm-opts [;; for SQLite on JDK 24 locally
|
||||||
:runner {:main-opts ["-m" "lazytest.main"]}}}
|
"--enable-native-access=ALL-UNNAMED"]}}}
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,13 @@
|
||||||
(defn- run-tests [env v]
|
(defn- run-tests [env v]
|
||||||
(when v (println "\nTesting Clojure" v))
|
(when v (println "\nTesting Clojure" v))
|
||||||
(let [{:keys [exit]}
|
(let [{:keys [exit]}
|
||||||
(p/shell {:extra-env env} "clojure" (str "-M"
|
(p/shell {:extra-env env}
|
||||||
|
"clojure"
|
||||||
|
(str "-M"
|
||||||
(when v (str ":" v))
|
(when v (str ":" v))
|
||||||
":test:runner")
|
":test:runner"
|
||||||
|
;; to suppress native access warnings on JDK24:
|
||||||
|
":jdk24")
|
||||||
"--output" "dots")]
|
"--output" "dots")]
|
||||||
(when-not (zero? exit)
|
(when-not (zero? exit)
|
||||||
(System/exit exit))))
|
(System/exit exit))))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue