@@ -134,50 +134,57 @@ checkVars()
134134 echo " Can't find vagrant-rsync-back plugin, installing . . ."
135135 vagrant plugin install vagrant-rsync-back
136136 fi
137- if [[ " $fastMode " == true ]]; then
138- skipFullSetup=" ,nvidia_cuda_toolkit"
139- case " $jdkToBuild " in
140- " jdk8" )
141- skipFullSetup=" $skipFullSetup ,MSVS_2013,MSVS_2019" ;
142- if [ " $buildHotspot " != " " ]; then
143- skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1,MSVS_2013,MSVS_2019"
144- fi
145- ;;
146- " jdk11" )
147- skipFullSetup=" $skipFullSetup ,MSVS_2013,MSVS_2019" ;
148- if [ " $buildHotspot " != " " ]; then
149- skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1,MSVS_2013,MSVS_2019"
150- fi
151- ;;
152- " jdk17" )
153- skipFullSetup=" $skipFullSetup ,MSVS_2013,MSVS_2017" ;
154- if [ " $buildHotspot " != " " ]; then
155- skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1,MSVS_2013,MSVS_2017"
156- fi
157- ;;
158- " jdk21" )
159- skipFullSetup=" $skipFullSetup ,MSVS_2013,MSVS_2017,MSVS_2019" ;
160- if [ " $buildHotspot " != " " ]; then
161- skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1,MSVS_2013,MSVS_2017,MSVS_2019"
162- fi
163- ;;
164- " jdk22" )
165- skipFullSetup=" $skipFullSetup ,MSVS_2013,MSVS_2017,MSVS_2019" ;
166- if [ " $buildHotspot " != " " ]; then
167- skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1,MSVS_2013,MSVS_2017,MSVS_2019"
168- fi
169- ;;
170- " jdk" )
171- skipFullSetup=" $skipFullSetup ,MSVS_2013,MSVS_2017,MSVS_2019" ;
172- if [ " $buildHotspot " != " " ]; then
173- skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1,MSVS_2013,MSVS_2017,MSVS_2019"
137+
138+ if [[ " $fastMode " == true ]]; then
139+ skipFullSetup=" ,nvidia_cuda_toolkit"
140+ case " $jdkToBuild " in
141+ " jdk8" )
142+ skipFullSetup=" $skipFullSetup ,MSVS_2013,MSVS_2019" ;
143+ if [ " $buildHotspot " != " " ]; then
144+ skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1,MSVS_2013,MSVS_2019"
145+ fi
146+ ;;
147+ " jdk11" )
148+ skipFullSetup=" $skipFullSetup ,MSVS_2013,MSVS_2019" ;
149+ if [ " $buildHotspot " != " " ]; then
150+ skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1,MSVS_2013,MSVS_2019"
151+ fi
152+ ;;
153+ " jdk17" )
154+ skipFullSetup=" $skipFullSetup ,MSVS_2013,MSVS_2017" ;
155+ if [ " $buildHotspot " != " " ]; then
156+ skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1,MSVS_2013,MSVS_2017"
157+ fi
158+ ;;
159+ " jdk21" )
160+ skipFullSetup=" $skipFullSetup ,MSVS_2013,MSVS_2017,MSVS_2019" ;
161+ if [ " $buildHotspot " != " " ]; then
162+ skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1,MSVS_2013,MSVS_2017,MSVS_2019"
163+ fi
164+ ;;
165+ " jdk22" )
166+ skipFullSetup=" $skipFullSetup ,MSVS_2013,MSVS_2017,MSVS_2019" ;
167+ if [ " $buildHotspot " != " " ]; then
168+ skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1,MSVS_2013,MSVS_2017,MSVS_2019"
169+ fi
170+ ;;
171+ " jdk25" )
172+ skipFullSetup=" $skipFullSetup ,MSVS_2013,MSVS_2017,MSVS_2019" ;
173+ if [ " $buildHotspot " != " " ]; then
174+ skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1,MSVS_2013,MSVS_2017,MSVS_2019"
175+ fi
176+ ;;
177+ " jdk" )
178+ skipFullSetup=" $skipFullSetup ,MSVS_2013,MSVS_2017,MSVS_2019" ;
179+ if [ " $buildHotspot " != " " ]; then
180+ skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1,MSVS_2013,MSVS_2017,MSVS_2019"
181+ fi
182+ ;;
183+ * )
184+ skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1" ;;
185+ esac
174186 fi
175- ;;
176- * )
177- skipFullSetup=" $skipFullSetup ,MSVS_2010,VS2010_SP1" ;;
178- esac
179- fi
180- jdkToBuild=" --version $jdkToBuild "
187+ jdkToBuild=" --version $jdkToBuild "
181188}
182189
183190checkVagrantOS ()
@@ -358,7 +365,7 @@ startVMPlaybookWin()
358365 cd $WORKSPACE /adoptopenjdkPBTests/${gitFork} -${newGitBranch} /ansible
359366
360367 if [ " $newVagrantFiles " = " true" ]; then
361- if [[ " $useAdopt " == " true" ]] && [[ " $OS " == " Win2022" ]]; then
368+ if [[ " $useAdopt " == " true" ]] && [[ " $OS " == " Win2022" || " $OS " == " Win2025 " ]]; then
362369 echo " Use Adoptium Box For Win2022"
363370 ln -sf vagrant/Vagrantfile.$OS .Adopt Vagrantfile
364371 else
@@ -465,14 +472,13 @@ startVMPlaybookWin()
465472 # Run a python script to start a test for the built JDK on the Windows VM
466473 if [[ $PYTHON_VERSION == * " Python 2." * ]]; then
467474 echo " Python 2 detected"
468- python pbTestScripts/startScriptWin.py -i " 127.0.0.1:$vagrantPort " -t 2>&1 | tee $testLogPath
475+ python pbTestScripts/startScriptWin.py -i " 127.0.0.1:$vagrantPort " -a " $jdkToBuild " - t 2>&1 | tee $testLogPath
469476 elif [[ $PYTHON_VERSION == * " Python 3." * ]]; then
470477 echo " Python 3 detected"
471- # echo "Due To Changes In Python 3 - No Output Will Be Displayed Until The Build Is Completed"
472- # python pbTestScripts/startScriptWin_v2.py -i "127.0.0.1:$vagrantPort" -t 2>&1 | tee $testLogPath
473- # Create Powershell Script To Launch Tests
474- echo " & sh \" C:/vagrant/pbTestScripts/testJDKWin.sh\" " > testJDK_Tmp.ps1
475- # Copy PowerShell Script From Vagrant Share For Performance Reasons & Launch
478+ echo " Due To Changes In Python 3 - No Output Will Be Displayed Until The Build Is Completed so use PowerShell instead"
479+ # Create Powershell Script To Launch Build
480+ echo " Set-Location -Path \" C:/tmp\" " > testJDK_Tmp.ps1
481+ echo " & sh \" C:/vagrant/pbTestScripts/testJDKWin.sh\" $jdkToBuild " >> testJDK_Tmp.ps1
476482 vagrant winrm -s powershell -e -c ' copy c:/vagrant/testJDK_Tmp.ps1 c:/tmp; cd c:/tmp; pwd; ls'
477483 vagrant winrm -e -c ' powershell -ExecutionPolicy Bypass -File c:/tmp/testJDK_Tmp.ps1' | tee $testLogPath
478484 else
@@ -528,10 +534,12 @@ echo "Testing on the following OSs: $vagrantOS"
528534for OS in $vagrantOS
529535do
530536 echo OS = $vagrantOS
531- if [[ " $OS " == " Win2012" || " $OS " == " Win2022" ]] ; then
532- startVMPlaybookWin $OS
537+ echo " OS : $OS "
538+
539+ if [[ " $OS " == " Win2012" || " $OS " == " Win2022" || " $OS " == " Win2025" ]]; then
540+ startVMPlaybookWin " $OS "
533541 else
534- startVMPlaybook $OS
542+ startVMPlaybook " $OS "
535543 fi
536544 if [[ " $vmHalt " == true ]]; then
537545 vagrant halt
0 commit comments