From 9d89aa6d0bc9f5e60a600955d2dceb40edb211ae Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Mon, 6 Feb 2023 17:14:05 -0500 Subject: [PATCH 1/7] Moving security tests to adoptium sub folder Signed-off-by: Sophia Guo --- functional/security/{ => Adoptium}/build.xml | 12 ++++++------ functional/security/{ => Adoptium}/playlist.xml | 0 .../adoptopenjdk/test/DefaultTlsFunctionalTest.java | 0 .../net/adoptopenjdk/test/Tls13FunctionalTest.java | 0 functional/security/{ => Adoptium}/testng.xml | 0 5 files changed, 6 insertions(+), 6 deletions(-) rename functional/security/{ => Adoptium}/build.xml (89%) rename functional/security/{ => Adoptium}/playlist.xml (100%) rename functional/security/{ => Adoptium}/src/net/adoptopenjdk/test/DefaultTlsFunctionalTest.java (100%) rename functional/security/{ => Adoptium}/src/net/adoptopenjdk/test/Tls13FunctionalTest.java (100%) rename functional/security/{ => Adoptium}/testng.xml (100%) diff --git a/functional/security/build.xml b/functional/security/Adoptium/build.xml similarity index 89% rename from functional/security/build.xml rename to functional/security/Adoptium/build.xml index cd02f1af98..a82c85d8a5 100644 --- a/functional/security/build.xml +++ b/functional/security/Adoptium/build.xml @@ -14,15 +14,15 @@ # limitations under the License. --> - + - Security Functional tests - - + Adotpium Security Functional tests + + - + @@ -32,7 +32,7 @@ - + Ant version is ${ant.version} ============COMPILER SETTINGS============ diff --git a/functional/security/playlist.xml b/functional/security/Adoptium/playlist.xml similarity index 100% rename from functional/security/playlist.xml rename to functional/security/Adoptium/playlist.xml diff --git a/functional/security/src/net/adoptopenjdk/test/DefaultTlsFunctionalTest.java b/functional/security/Adoptium/src/net/adoptopenjdk/test/DefaultTlsFunctionalTest.java similarity index 100% rename from functional/security/src/net/adoptopenjdk/test/DefaultTlsFunctionalTest.java rename to functional/security/Adoptium/src/net/adoptopenjdk/test/DefaultTlsFunctionalTest.java diff --git a/functional/security/src/net/adoptopenjdk/test/Tls13FunctionalTest.java b/functional/security/Adoptium/src/net/adoptopenjdk/test/Tls13FunctionalTest.java similarity index 100% rename from functional/security/src/net/adoptopenjdk/test/Tls13FunctionalTest.java rename to functional/security/Adoptium/src/net/adoptopenjdk/test/Tls13FunctionalTest.java diff --git a/functional/security/testng.xml b/functional/security/Adoptium/testng.xml similarity index 100% rename from functional/security/testng.xml rename to functional/security/Adoptium/testng.xml From 1b8b0175b93de662853415efbd8f403e87ac44d3 Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Wed, 8 Feb 2023 00:03:13 -0500 Subject: [PATCH 2/7] Add crypto tests Signed-off-by: Sophia Guo --- functional/build.xml | 60 +++++++++++++++ functional/security/Crypto/build.xml | 98 +++++++++++++++++++++++++ functional/security/Crypto/crypto.mk | 18 +++++ functional/security/Crypto/playlist.xml | 29 ++++++++ 4 files changed, 205 insertions(+) create mode 100644 functional/build.xml create mode 100644 functional/security/Crypto/build.xml create mode 100644 functional/security/Crypto/crypto.mk create mode 100644 functional/security/Crypto/playlist.xml diff --git a/functional/build.xml b/functional/build.xml new file mode 100644 index 0000000000..4aa2c5065a --- /dev/null +++ b/functional/build.xml @@ -0,0 +1,60 @@ + + + + + + + + Build functional tests + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/functional/security/Crypto/build.xml b/functional/security/Crypto/build.xml new file mode 100644 index 0000000000..c13fd15513 --- /dev/null +++ b/functional/security/Crypto/build.xml @@ -0,0 +1,98 @@ + + + + + + + + Crypto Security Functional tests + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ant version is ${ant.version} + ============COMPILER SETTINGS============ + ===fork: yes + ===executable: ${compiler.javac} + ===debug: on + ===destdir: ${DEST} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/functional/security/Crypto/crypto.mk b/functional/security/Crypto/crypto.mk new file mode 100644 index 0000000000..2b6569d441 --- /dev/null +++ b/functional/security/Crypto/crypto.mk @@ -0,0 +1,18 @@ +############################################################################## +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +############################################################################## +ifneq ($(JDK_VERSION),8) + JAVA_MOD_ARGS=--add-reads java.base=ALL-UNNAMED --add-exports java.base/com.sun.crypto.provider=ALL-UNNAMED --add-exports java.base/sun.security.internal.spec=ALL-UNNAMED --add-exports java.base/sun.security.ssl=ALL-UNNAMED --add-exports java.base/sun.security.x509=ALL-UNNAMED --add-reads java.security.jgss=ALL-UNNAMED --add-exports java.security.jgss/sun.security.jgss=ALL-UNNAMED --add-exports java.security.jgss/sun.security.jgss.krb5=ALL-UNNAMED --add-exports java.security.jgss/sun.security.krb5=ALL-UNNAMED --add-reads java.xml.crypto=ALL-UNNAMED --add-exports java.xml.crypto/org.jcp.xml.dsig.internal.dom=ALL-UNNAMED --add-modules=jdk.crypto.ec --add-reads jdk.crypto.ec=ALL-UNNAMED --add-exports jdk.crypto.ec/sun.security.ec=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED +else + JAVA_MOD_ARGS= +endif \ No newline at end of file diff --git a/functional/security/Crypto/playlist.xml b/functional/security/Crypto/playlist.xml new file mode 100644 index 0000000000..0ab71cf4da --- /dev/null +++ b/functional/security/Crypto/playlist.xml @@ -0,0 +1,29 @@ + + + + + crypto.mk + + CryptoTests + $(JAVA_COMMAND) $(JVM_OPTIONS) $(JAVA_MOD_ARGS) -cp $(Q)$(RESOURCES_DIR)$(P)$(TEST_RESROOT)$(D)CryptoTests.jar$(P)$(TEST_RESROOT)$(D)test.jks$(Q) -Dcryptotests.skipAgentTests=1 cryptotest.CryptoTest; \ + $(TEST_STATUS) + + extended + + + functional + + + \ No newline at end of file From b29bea2e9fffde9439acc142a3962dc3728e90cb Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Wed, 8 Feb 2023 14:34:07 -0500 Subject: [PATCH 3/7] Moving existing function/security tests to AQAvit sub folder Signed-off-by: Sophia Guo --- functional/build.xml | 60 ------------------- .../security/{Adoptium => AQAvit}/build.xml | 8 +-- .../{Adoptium => AQAvit}/playlist.xml | 0 .../test/DefaultTlsFunctionalTest.java | 0 .../test/Tls13FunctionalTest.java | 0 .../security/{Adoptium => AQAvit}/testng.xml | 0 6 files changed, 4 insertions(+), 64 deletions(-) delete mode 100644 functional/build.xml rename functional/security/{Adoptium => AQAvit}/build.xml (92%) rename functional/security/{Adoptium => AQAvit}/playlist.xml (100%) rename functional/security/{Adoptium => AQAvit}/src/net/adoptopenjdk/test/DefaultTlsFunctionalTest.java (100%) rename functional/security/{Adoptium => AQAvit}/src/net/adoptopenjdk/test/Tls13FunctionalTest.java (100%) rename functional/security/{Adoptium => AQAvit}/testng.xml (100%) diff --git a/functional/build.xml b/functional/build.xml deleted file mode 100644 index 4aa2c5065a..0000000000 --- a/functional/build.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - Build functional tests - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/functional/security/Adoptium/build.xml b/functional/security/AQAvit/build.xml similarity index 92% rename from functional/security/Adoptium/build.xml rename to functional/security/AQAvit/build.xml index a82c85d8a5..f855a3d2b0 100644 --- a/functional/security/Adoptium/build.xml +++ b/functional/security/AQAvit/build.xml @@ -14,15 +14,15 @@ # limitations under the License. --> - + - Adotpium Security Functional tests + AQAvit Security Functional tests - + - + diff --git a/functional/security/Adoptium/playlist.xml b/functional/security/AQAvit/playlist.xml similarity index 100% rename from functional/security/Adoptium/playlist.xml rename to functional/security/AQAvit/playlist.xml diff --git a/functional/security/Adoptium/src/net/adoptopenjdk/test/DefaultTlsFunctionalTest.java b/functional/security/AQAvit/src/net/adoptopenjdk/test/DefaultTlsFunctionalTest.java similarity index 100% rename from functional/security/Adoptium/src/net/adoptopenjdk/test/DefaultTlsFunctionalTest.java rename to functional/security/AQAvit/src/net/adoptopenjdk/test/DefaultTlsFunctionalTest.java diff --git a/functional/security/Adoptium/src/net/adoptopenjdk/test/Tls13FunctionalTest.java b/functional/security/AQAvit/src/net/adoptopenjdk/test/Tls13FunctionalTest.java similarity index 100% rename from functional/security/Adoptium/src/net/adoptopenjdk/test/Tls13FunctionalTest.java rename to functional/security/AQAvit/src/net/adoptopenjdk/test/Tls13FunctionalTest.java diff --git a/functional/security/Adoptium/testng.xml b/functional/security/AQAvit/testng.xml similarity index 100% rename from functional/security/Adoptium/testng.xml rename to functional/security/AQAvit/testng.xml From 97ce553cebae47994c9999aad71ba4f03a51776a Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Wed, 8 Feb 2023 16:03:36 -0500 Subject: [PATCH 4/7] Adding security/build.xml Signed-off-by: Sophia Guo --- functional/security/build.xml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 functional/security/build.xml diff --git a/functional/security/build.xml b/functional/security/build.xml new file mode 100644 index 0000000000..fe9d078f01 --- /dev/null +++ b/functional/security/build.xml @@ -0,0 +1,39 @@ + + + + + + + Build security_Tests + + + + + + + + + + + + + + + + + + + + From 3a672272986a2085888c94d4447ba6e51f6e9ca3 Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Wed, 8 Feb 2023 16:06:55 -0500 Subject: [PATCH 5/7] Update gitignore with security tests Signed-off-by: Sophia Guo --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 297d032bb8..b5adde154c 100755 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,8 @@ TestConfig TKG functional !functional/security +!functional/security/AQAvit +!functional/security/Crypto !functional/SyntheticGCWorkload !functional/MBCS_Tests From 3921ec72e5ceaf4d4b4f8318cf47e29d361fda2f Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Wed, 8 Feb 2023 16:52:37 -0500 Subject: [PATCH 6/7] Add task getDependentLibs to support compile by sub directory Signed-off-by: Sophia Guo --- functional/security/AQAvit/build.xml | 3 ++- functional/security/build.xml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/functional/security/AQAvit/build.xml b/functional/security/AQAvit/build.xml index f855a3d2b0..76bf9f4b39 100644 --- a/functional/security/AQAvit/build.xml +++ b/functional/security/AQAvit/build.xml @@ -20,6 +20,7 @@ AQAvit Security Functional tests + @@ -33,7 +34,7 @@ - + Ant version is ${ant.version} ============COMPILER SETTINGS============ ===fork: yes diff --git a/functional/security/build.xml b/functional/security/build.xml index fe9d078f01..24fe837858 100644 --- a/functional/security/build.xml +++ b/functional/security/build.xml @@ -18,6 +18,7 @@ limitations under the License. Build security_Tests + From c6c1ec47b3aba339742a0b968044fb200f818a71 Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Wed, 8 Feb 2023 21:17:34 -0500 Subject: [PATCH 7/7] Limit LIB value to testng and jcommander Signed-off-by: Sophia Guo --- functional/security/AQAvit/build.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/functional/security/AQAvit/build.xml b/functional/security/AQAvit/build.xml index 76bf9f4b39..e968de098e 100644 --- a/functional/security/AQAvit/build.xml +++ b/functional/security/AQAvit/build.xml @@ -20,6 +20,7 @@ AQAvit Security Functional tests +