mirror of
https://github.com/apple/pkl.git
synced 2026-04-25 09:48:41 +02:00
Add Gradle task "testNative"
Support running native tests with "gw testNative" for consistency with "gw test".
This commit is contained in:
committed by
Philip K.F. Hölzenspies
parent
a49526649d
commit
c3473cc626
@@ -28,7 +28,8 @@ jenv enable-plugin export
|
||||
[source,shell]
|
||||
----
|
||||
gw clean
|
||||
gw test
|
||||
gw test # run all tests except native executable tests
|
||||
gw testNative # run native executable tests
|
||||
gw spotlessApply # fix code formatting
|
||||
gw build # build everything except native executables
|
||||
gw buildNative # build macOS executable on macOS,
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
val assembleNative by tasks.registering {}
|
||||
|
||||
val checkNative by tasks.registering {}
|
||||
val testNative by tasks.registering {}
|
||||
|
||||
val checkNative by tasks.registering {
|
||||
dependsOn(testNative)
|
||||
}
|
||||
|
||||
val buildNative by tasks.registering {
|
||||
dependsOn(assembleNative, checkNative)
|
||||
|
||||
@@ -271,7 +271,7 @@ val testAlpineExecutableAmd64 by tasks.registering(Test::class) {
|
||||
}
|
||||
}
|
||||
|
||||
tasks.checkNative {
|
||||
tasks.testNative {
|
||||
dependsOn(testLinuxExecutableAmd64)
|
||||
dependsOn(testLinuxExecutableAarch64)
|
||||
dependsOn(testMacExecutableAmd64)
|
||||
|
||||
Reference in New Issue
Block a user