forked from adoptium/infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestJDKWin.sh
executable file
·36 lines (30 loc) · 954 Bytes
/
testJDKWin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Relocate Built JDKS
mv /cygdrive/c/tmp/workspace/build/src/build/*/images/jdk* c:/tmp
# Remove Redundant Images
rm -rf /cygdrive/c/tmp/*-debug-image
rm -rf /cygdrive/c/tmp/*-jre
rm -rf /cygdrive/c/tmp/*-test-image
#Identify The JDK
# Set Test JDK HOME To The Relocated JDK
# export TEST_JDK_HOME=C:/cygwin64$(find ~ -maxdepth 1 -type d -name "*jdk*"|grep -v ".*jre"| grep -v ".*-image")
export TEST_JDK_HOME=`ls -d c:/tmp/jdk*|grep -v "static"|grep -v "debug"|grep -v "jre"|grep -v "test-image"`
echo TEST_JDK_HOME=$TEST_JDK_HOME
cd /cygdrive/c/tmp
if [ ! -d "testLocation" ];
then
echo "Creating testLocation directory"
mkdir testLocation
fi
cd testLocation
if [ ! -d "openjdk-tests" ];
then
echo "Git cloning openjdk-tests"
git clone https://github.com/adoptopenjdk/openjdk-tests
fi
cd openjdk-tests
./get.sh -T $HOME/testLocation/openjdk-tests -p x64_windows
cd TKG
export BUILD_LIST=system
make compile
make _extended.system