Skip to content

Commit 3482cb8

Browse files
8266254: Update to use jtreg 6
8265020: tests must be updated for new TestNG module name Reviewed-by: lancea, erikj, mchung, naoto, alanb, iris, chegar
1 parent 375f8f3 commit 3482cb8

11 files changed

Lines changed: 22 additions & 23 deletions

File tree

make/conf/jib-profiles.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,10 +1133,9 @@ var getJibProfilesDependencies = function (input, common) {
11331133
jtreg: {
11341134
server: "jpg",
11351135
product: "jtreg",
1136-
version: "5.1",
1137-
build_number: "b01",
1138-
checksum_file: "MD5_VALUES",
1139-
file: "bundles/jtreg_bin-5.1.zip",
1136+
version: "6",
1137+
build_number: "1",
1138+
file: "bundles/jtreg-6+1.zip",
11401139
environment_name: "JT_HOME",
11411140
environment_path: input.get("jtreg", "home_path") + "/bin",
11421141
configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),

test/hotspot/jtreg/TEST.ROOT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ requires.properties= \
7878
jdk.containerized
7979

8080
# Minimum jtreg version
81-
requiredVersion=5.1 b1
81+
requiredVersion=6+1
8282

8383
# Path to libraries in the topmost test directory. This is needed so @library
8484
# does not need ../../../ notation to reach them

test/jaxp/TEST.ROOT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ modules=java.xml
2323
groups=TEST.groups
2424

2525
# Minimum jtreg version
26-
requiredVersion=5.1 b1
26+
requiredVersion=6+1
2727

2828
# Path to libraries in the topmost test directory. This is needed so @library
2929
# does not need ../../ notation to reach them

test/jdk/TEST.ROOT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ requires.properties= \
6767
jdk.containerized
6868

6969
# Minimum jtreg version
70-
requiredVersion=5.1 b1
70+
requiredVersion=6+1
7171

7272
# Path to libraries in the topmost test directory. This is needed so @library
7373
# does not need ../../ notation to reach them

test/jdk/java/lang/ModuleTests/addXXX/test/module-info.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -21,10 +21,10 @@
2121
* questions.
2222
*/
2323
module test {
24-
exports test to testng;
24+
exports test to org.testng;
2525

2626
requires m2;
2727
requires m3;
2828
requires m4;
29-
requires testng;
29+
requires org.testng;
3030
}

test/jdk/java/lang/invoke/MethodHandles/privateLookupIn/test/module-info.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -22,6 +22,6 @@
2222
*/
2323

2424
module test {
25-
requires testng;
26-
exports p to testng; // TestNG invokes the public methods
25+
requires org.testng;
26+
exports p to org.testng; // TestNG invokes the public methods
2727
}

test/jdk/java/lang/invoke/modules/m1/module-info.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -22,6 +22,6 @@
2222
*/
2323
module m1 {
2424
requires m2;
25-
requires testng;
25+
requires org.testng;
2626
exports p1;
2727
}

test/jdk/java/lang/invoke/modules/m3/module-info.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,7 +24,7 @@
2424
module m3 {
2525
requires m4;
2626
requires m5;
27-
requires testng;
27+
requires org.testng;
2828
requires java.management;
2929
exports c1;
3030
opens c2 to m5;

test/jdk/java/util/ServiceLoader/security/test/module-info.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -36,6 +36,6 @@
3636
provides S4 with P4;
3737
provides S5 with P5;
3838
provides S6 with P6;
39-
requires testng;
40-
exports p to testng;
39+
requires org.testng;
40+
exports p to org.testng;
4141
}

test/langtools/TEST.ROOT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ keys=intermittent randomness
1515
groups=TEST.groups
1616

1717
# Minimum jtreg version
18-
requiredVersion=5.1 b1
18+
requiredVersion=6+1
1919

2020
# Use new module options
2121
useNewOptions=true

0 commit comments

Comments
 (0)