-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmktest.sh
72 lines (61 loc) · 1.55 KB
/
mktest.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#/bin/bash
set -e
cd "$(dirname ${BASH_SOURCE[0]})"
function log() {
echo "[TEST] " $@
}
function interpreterize() {
mv "./jdk/bin/$1" "./jdk/bin/$1.real"
echo -e '#!/bin/bash\n"'"$(pwd)/jdk/bin/$1.real"'" -Xint "$@"' > "./jdk/bin/$1"
chmod +x "./jdk/bin/$1"
}
function setup_jdk() {
log "Downloading latest JDK-EV3."
wget -nv https://ci.adoptopenjdk.net/view/ev3dev/job/openjdk-10-ev3/lastSuccessfulBuild/artifact/build/jdk-ev3.tar.gz
log "Extracting JDK."
tar -xf jdk-ev3.tar.gz
log "Configuring JDK."
interpreterize java
interpreterize javac
}
function run_tests() {
log "Downloading tests."
git clone --depth 1 https://github.com/AdoptOpenJDK/openjdk-tests.git
cd openjdk-tests
log "Calling get script."
export JAVA_IMPL=hotspot
export BUILD_LIST=openjdk_regression
export JAVA_BIN=/opt/jdktest/jdk/bin
export SPEC=linux_arm
export JAVA_VERSION=SE100
./get.sh -t /opt/jdktest/openjdk-tests -p linux_arm -v openjdk10
cd TestConfig
log "Calling configure."
make -f run_configure.mk
log "Calling compile."
make compile
log "Starting tests."
# make sanety
make jdk_math
make jdk_lang
make jdk_io
make jdk_beans
make jdk_other
make jdk_net
make jdk_nio
make jdk_security1
make jdk_security2
make jdk_security3
make jdk_text
make jdk_util
make jdk_time
make jdk_management
make jdk_jmx
make jdk_rmi
#make jdk_sound
make jdk_tools
make jdk_jdi
make jdk_jfr
}
setup_jdk
run_tests