Skip to content

Commit 6d93e8c

Browse files
committed
Create test image for Windows
1 parent 2f85d9a commit 6d93e8c

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

installers/windows/zip/build.gradle

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ task executeBuild(type: Exec) {
5757
dependsOn configureBuild
5858
workingDir buildRoot
5959

60-
commandLine 'make', 'clean', 'images'
60+
commandLine 'make', 'clean', 'images', 'test-image-hotspot-jtreg-native', 'test-image-jdk-jtreg-native'
6161
}
6262

6363
task copyImage(type: Copy) {
@@ -67,8 +67,17 @@ task copyImage(type: Copy) {
6767
into "$buildRoot/build"
6868
}
6969

70-
task packageJdk(type: Zip) {
70+
task packageTestImage(type: Zip) {
7171
dependsOn copyImage
72+
archiveName "${project.correttoTestImageArchiveName}.zip"
73+
from("${copyImage.destinationDir}/test") {
74+
include '**'
75+
}
76+
into project.correttoTestImageArchiveName
77+
}
78+
79+
task packageBuildResults(type: Zip) {
80+
dependsOn packageTestImage
7281
archiveName = "unsigned-jdk-image.zip"
7382

7483
from("${copyImage.destinationDir}/jdk") {
@@ -84,5 +93,5 @@ task packageJdk(type: Zip) {
8493
}
8594

8695
artifacts {
87-
archives packageJdk
96+
archives packageBuildResults
8897
}

0 commit comments

Comments
 (0)