Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 37 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ jobs:
with:
path: "test.*.tar.gz"

test-windows:
name: "Windows Jtreg"
test-windows-cygwin:
name: "Windows-cygwin Jtreg"
runs-on: "windows-latest"
defaults:
run:
Expand Down Expand Up @@ -129,3 +129,38 @@ jobs:
uses: actions/upload-artifact@v3
with:
path: "test.*.tar.gz"

test-windows-msys2:
name: "Windows-msys2 Jtreg"
runs-on: "windows-latest"
strategy:
fail-fast: false
matrix:
jdkconf:
- JDK 8
- JDK 11
- JDK 17
- JDK 21
include:
- jdkconf: JDK 8
jdkver: "8"
- jdkconf: JDK 11
jdkver: "11"
- jdkconf: JDK 17
jdkver: "17"
- jdkconf: JDK 21
jdkver: "21"
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
update: true
install: wget tar
- name: Prepare env
shell: msys2 {0}
run: MSYS2_ENABLED=true ./run.sh "${JAVA_HOME}"
- name: Upload results
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
path: "test.*.tar.gz"
3 changes: 2 additions & 1 deletion TEST.ROOT
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ maxOutputSize=1000000
# which are known to pass on RH builds, but not on any others
requires.extraPropDefns = tests/VarDeps.java
requires.properties = \
var.rh.jdk
var.rh.jdk \
var.msys2.enabled
3 changes: 2 additions & 1 deletion test/TEST.ROOT
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ maxOutputSize=1000000
# which are known to pass on RH builds, but not on any others
requires.extraPropDefns = VarDeps.java
requires.properties = \
var.rh.jdk
var.rh.jdk \
var.msys2.enabled
1 change: 1 addition & 0 deletions test/VarDeps.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ boolean checkVar(String var) {
public Map<String, String> call() {
Map<String, String> map = new HashMap<String, String>();
map.put("var.rh.jdk", checkVar("RH_JDK") ? "true": "false");
map.put("var.msys2.enabled", checkVar("MSYS2_ENABLED") ? "true": "false");
return map;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
# @test
# @requires jdk.version.major >= 7
# @bug 1463098
# @requires jdk.version.major >= 7 & var.msys2.enabled == "false"
# @summary cgroup memory limit not respected when run outside container
# @run shell/timeout=120 cgroup-memory-limit-respected-systemd.sh

Expand Down
1 change: 1 addition & 0 deletions test/reproducers/1582253/KeytoolNotGenerateDSA.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
# @test
# @bug 1582253
# @requires var.msys2.enabled == "false"
# @summary Do not generate DSA keys by default in keytool
# @run shell/timeout=100 KeytoolNotGenerateDSA.sh

Expand Down
1 change: 1 addition & 0 deletions test/reproducers/1759335/keytool-broken-fips.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
# @test
# @bug 1759335
# @requires var.msys2.enabled == "false"
# @summary OpenJDK keytool is broken in FIPS mode
# @run shell keytool-broken-fips.sh

Expand Down
2 changes: 1 addition & 1 deletion test/reproducers/1780335/fips-load-p11-kit-trust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# @test
# @author zzambers
# @bug 1780335
# @requires jdk.version.major >= 8
# @requires jdk.version.major >= 8 & var.msys2.enabled == "false"
# @summary FIPS mode Provider refuses to load pk11-kit-trust
# @run shell fips-load-p11-kit-trust.sh
#
Expand Down
1 change: 1 addition & 0 deletions test/reproducers/2036462/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/*
@test runtest
@bug 2036462
@requires var.msys2.enabled == "false"
@summary test whether this Test.java file is buildable as is
@run shell runtest.sh
*/
Expand Down
1 change: 1 addition & 0 deletions test/reproducers/6656625/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/* @test
@bug 6656625
@requires var.msys2.enabled == "false"
@summary image stream manipulation
@run shell Test.sh
*/
Expand Down
1 change: 1 addition & 0 deletions test/reproducers/6657133/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
public
/* @test
@bug 6657133
@requires var.msys2.enabled == "false"
@summary inaccessibile com.sun.imageio.plugins.jpeg.JPEG.names
@run shell Test.sh
*/
Expand Down
1 change: 1 addition & 0 deletions test/reproducers/6804996/Test.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* @test
@bug 6804996
@requires var.msys2.enabled == "false"
@summary some splash issue
@run shell Test.sh
*/
Expand Down
1 change: 1 addition & 0 deletions test/reproducers/6804998/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

/* @test
@bug 6804998
@requires var.msys2.enabled == "false"
@summary invalid gif read issue
@run shell Test.sh
*/
Expand Down
1 change: 1 addition & 0 deletions test/reproducers/6823373/Test.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* @test
@bug 6823373
@requires var.msys2.enabled == "false"
@summary some splash issue
@run shell Test.sh
*/
Expand Down
1 change: 1 addition & 0 deletions test/reproducers/7013969/Test7013969.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/*
* @test
* @bug 7013969
* @requires var.msys2.enabled == "false"
* @summary network interface address scan
* @run shell 7013969.sh
*/
Expand Down
2 changes: 1 addition & 1 deletion test/reproducers/7046823/bug7046823.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@bug 7046823
@summary Problem with scripting/javascript
@build bug7046823
@requires jdk.version.major < 9
@requires jdk.version.major < 9 & var.msys2.enabled == "false"
@run shell bug7046823.sh
*/

Expand Down
1 change: 1 addition & 0 deletions test/reproducers/7122141/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/*
* @test
* @bug 7122141
* @requires var.msys2.enabled == "false"
* @summary race condition between isAnnotationPresent and getAnnotations
* @author Lukas Zachar <lzachar@redhat.com>
* @run shell runtest.sh
Expand Down