diff --git a/test/functional/wintps/build.xml b/test/functional/wintps/build.xml new file mode 100644 index 000000000..5e6407297 --- /dev/null +++ b/test/functional/wintps/build.xml @@ -0,0 +1,60 @@ + + + + + + + + WinTPS Installer tests + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/functional/wintps/playlist.xml b/test/functional/wintps/playlist.xml new file mode 100644 index 000000000..05b68b9ec --- /dev/null +++ b/test/functional/wintps/playlist.xml @@ -0,0 +1,30 @@ + + + + + WinTPSTests + $(CD) $(TEST_ROOT)$(D)functional$(D)wintps; $(TEST_ROOT)$(D)functional$(D)wintps$(D)runInstallerTests.sh $(REPORTDIR) ${JDK_VERSION}; \ + $(TEST_STATUS) + + hotspot + + + dev + + + functional + + + \ No newline at end of file diff --git a/test/functional/wintps/runInstallerTests.sh b/test/functional/wintps/runInstallerTests.sh new file mode 100644 index 000000000..f5dff6da9 --- /dev/null +++ b/test/functional/wintps/runInstallerTests.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +# +# 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. + +set -x +set -eo pipefail + +export RESULTS_FOLDER=$1/result +export INPUT_FOLDER=$1/input + +#mkdir $RESULTS_FOLDER +mkdir $INPUT_FOLDER +export JDK_VERSION=$2 +export MSI_VENDOR="Adoptium" +export CURRENT_USER_NAME='jenkins' + +echo "Fetch the MSI file" +curl -OLJSks "https://api.adoptium.net/v3/installer/latest/$JDK_VERSION/ga/windows/x64/jdk/hotspot/normal/eclipse?project=jdk" +mv *.msi $INPUT_FOLDER/ +ls $INPUT_FOLDER +./WindowsTPS/wrapper/run-tps-win-vagrant.sh