Skip to content

Commit

Permalink
8266254: Update to use jtreg 6
Browse files Browse the repository at this point in the history
8265020: tests must be updated for new TestNG module name

Reviewed-by: clanger
Backport-of: 3482cb8
  • Loading branch information
gdams authored and RealCLanger committed Jul 28, 2022
1 parent c61acb5 commit 00d9483
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 19 deletions.
7 changes: 3 additions & 4 deletions make/conf/jib-profiles.js
Expand Up @@ -916,10 +916,9 @@ var getJibProfilesDependencies = function (input, common) {
jtreg: {
server: "jpg",
product: "jtreg",
version: "5.1",
build_number: "b01",
checksum_file: "MD5_VALUES",
file: "bundles/jtreg_bin-5.1.zip",
version: "6",
build_number: "1",
file: "bundles/jtreg-6+1.zip",
environment_name: "JT_HOME",
environment_path: input.get("jtreg", "install_path") + "/jtreg/bin"
},
Expand Down
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/TEST.ROOT
Expand Up @@ -75,7 +75,7 @@ requires.properties= \
docker.support

# Minimum jtreg version
requiredVersion=5.1 b1
requiredVersion=6+1

# Path to libraries in the topmost test directory. This is needed so @library
# does not need ../../../ notation to reach them
Expand Down
2 changes: 1 addition & 1 deletion test/jaxp/TEST.ROOT
Expand Up @@ -23,7 +23,7 @@ modules=java.xml
groups=TEST.groups

# Minimum jtreg version
requiredVersion=5.1 b1
requiredVersion=6+1

# Path to libraries in the topmost test directory. This is needed so @library
# does not need ../../ notation to reach them
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/TEST.ROOT
Expand Up @@ -59,7 +59,7 @@ requires.properties= \
release.implementor

# Minimum jtreg version
requiredVersion=5.1 b1
requiredVersion=6+1

# Path to libraries in the topmost test directory. This is needed so @library
# does not need ../../ notation to reach them
Expand Down
6 changes: 3 additions & 3 deletions test/jdk/java/lang/ModuleTests/addXXX/test/module-info.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -21,10 +21,10 @@
* questions.
*/
module test {
exports test to testng;
exports test to org.testng;

requires m2;
requires m3;
requires m4;
requires testng;
requires org.testng;
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -22,6 +22,6 @@
*/

module test {
requires testng;
exports p to testng; // TestNG invokes the public methods
requires org.testng;
exports p to org.testng; // TestNG invokes the public methods
}
4 changes: 2 additions & 2 deletions test/jdk/java/lang/invoke/modules/m1/module-info.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -22,6 +22,6 @@
*/
module m1 {
requires m2;
requires testng;
requires org.testng;
exports p1;
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -36,6 +36,6 @@
provides S4 with P4;
provides S5 with P5;
provides S6 with P6;
requires testng;
exports p to testng;
requires org.testng;
exports p to org.testng;
}
2 changes: 1 addition & 1 deletion test/langtools/TEST.ROOT
Expand Up @@ -15,7 +15,7 @@ keys=intermittent randomness
groups=TEST.groups

# Minimum jtreg version
requiredVersion=5.1 b1
requiredVersion=6+1

# Use new module options
useNewOptions=true
Expand Down

1 comment on commit 00d9483

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.