annotate tck7/run_all.sh @ 18:a75e3cbf5b1c draft

Added script used to run TCK7.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Tue, 22 Apr 2014 13:35:48 +0200
parents
children d8557576f53a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
1 #!/usr/bin/env bash
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
2
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
3 # Daily test builder.
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
4 #
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
5 # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Red Hat
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
6 #
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
7 # This tool is free software; you can redistribute it and/or modify
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
8 # it under the terms of the GNU General Public License as published by
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
9 # the Free Software Foundation; either version 2, or (at your option)
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
10 # any later version.
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
11 #
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
12 # This tool is distributed in the hope that it will be useful, but
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
15 # General Public License for more details.
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
16 #
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
17 # You should have received a copy of the GNU General Public License
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
18 # along with IcedTea; see the file COPYING. If not, write to the
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
19 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
20 # 02110-1301 USA.
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
21 #
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
22 # Linking this library statically or dynamically with other modules is
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
23 # making a combined work based on this library. Thus, the terms and
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
24 # conditions of the GNU General Public License cover the whole
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
25 # combination.
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
26 #
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
27 # As a special exception, the copyright holders of this library give you
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
28 # permission to link this library with independent modules to produce an
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
29 # executable, regardless of the license terms of these independent
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
30 # modules, and to copy and distribute the resulting executable under
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
31 # terms of your choice, provided that you also meet, for each linked
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
32 # independent module, the terms and conditions of the license of that
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
33 # module. An independent module is a module which is not derived from
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
34 # or based on this library. If you modify this library, you may extend
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
35 # this exception to your version of the library, but you are not
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
36 # obligated to do so. If you do not wish to do so, delete this
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
37 # exception statement from your version.
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
38 #
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
39 # Run TCK against all tested JDKs.
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
40 #
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
41 # Author: Pavel Tisnovsky
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
42 # e-mail: ptisnovs@redhat.com
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
43
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
44 JCK_ROOT_DIR=`cat jck.dir`
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
45 JCK_VERSION=7
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
46 JCK_DIR=${JCK_ROOT_DIR}/${JCK_VERSION}
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
47 WORK_DIR=${JCK_ROOT_DIR}/work
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
48 RESULT_DIR=${JCK_ROOT_DIR}/results
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
49 DAILY_TESTS_DIR=`cat dailytests.dir`
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
50
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
51 DATE=`date +%Y%m%d`
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
52
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
53 exec > logs/test_$DATE.log 2>&1
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
54
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
55 TESTS="compiler devtools runtime"
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
56
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
57 function run_tck()
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
58 {
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
59 echo "Run tck $1"
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
60 REPORTDIR=${RESULT_DIR}/${DATE}-${1}
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
61 export DISPLAY=:0.0
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
62
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
63 for tst in ${TESTS}
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
64 do
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
65 TEST_NAME=JCK-${tst}-${JCK_VERSION}
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
66 CURRENT_WORKDIR=${WORK_DIR}/${DATE}-${1}/${tst}
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
67 CONFIG=${JCK_DIR}/${tst}-config.jti
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
68
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
69 mkdir -p ${REPORTDIR}/${tst}
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
70 mkdir -p ${CURRENT_WORKDIR}
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
71
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
72 ORIG_PATH="${PATH}"
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
73 export PATH="${JCK_DIR}/${TEST_NAME}/linux/bin;${ORIG_PATH}"
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
74
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
75 java -Xms128m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=512m -jar ${JCK_DIR}/${TEST_NAME}/lib/javatest.jar \
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
76 -workdir ${CURRENT_WORKDIR} \
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
77 -open ${CONFIG} \
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
78 -verbose:progress -runtests \
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
79 -writeReport ${REPORTDIR}/${tst}
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
80 rc=$?
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
81 if [ $rc -ne 0 ]; then
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
82 log "${RED}test failed ${BLUE}${tst}${RESET}"
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
83 else
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
84 log "${GREEN}test passed ${BLUE}${tst}${RESET}"
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
85 fi
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
86
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
87 export PATH="${ORIG_PATH}"
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
88 done
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
89 }
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
90
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
91 function finish_tck()
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
92 {
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
93 echo "Finish tck $1"
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
94 REPORTDIR=${RESULT_DIR}/${DATE}-${1}
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
95 export DISPLAY=:0.0
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
96 echo "Processing ${REPORTDIR}"
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
97 for tst in ${TESTS}
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
98 do
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
99 TEST_NAME=JCK-${tst}-${JCK_VERSION}
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
100 CURRENT_WORKDIR=${WORK_DIR}/${DATE}-${1}/${tst}
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
101 CONFIG=${JCK_DIR}/${tst}-config.jti
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
102
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
103 java -Xms128m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=512m -jar ${JCK_DIR}/${TEST_NAME}/lib/javatest.jar \
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
104 -workDir ${CURRENT_WORKDIR} \
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
105 -config ${CONFIG} \
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
106 -verbose:progress \
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
107 -priorStatus passed,fail,error \
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
108 -writeReport ${REPORTDIR}/${tst}
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
109 done
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
110 }
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
111
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
112 function run_tck1()
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
113 {
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
114 rm ${JCK_DIR}/jdk
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
115 ln -s -T ${DAILY_TESTS_DIR}/builds/Icedtea7_forest/openjdk/build/linux-amd64/j2sdk-image/ ${JCK_DIR}/jdk
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
116 ls -l ${JCK_DIR}/
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
117
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
118 run_tck 1
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
119 sleep 10
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
120 finish_tck 1
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
121 }
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
122
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
123 function run_tck2()
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
124 {
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
125 rm ${JCK_DIR}/jdk
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
126 ln -s -T ${DAILY_TESTS_DIRJCK_DIR}/builds/Icedtea7_forest_2_3/openjdk/build/linux-amd64/j2sdk-image/ ${JCK_DIR}/jdk
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
127 ls -l ${JCK_DIR}/
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
128
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
129 run_tck 2
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
130 sleep 10
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
131 finish_tck 2
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
132 }
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
133
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
134 function run_tck3()
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
135 {
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
136 rm ${JCK_DIR}/jdk
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
137 ln -s -T ${DAILY_TESTS_DIRJCK_DIR}/builds/Icedtea7_forest_2_4/openjdk/build/linux-amd64/j2sdk-image/ ${JCK_DIR}/jdk
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
138 ls -l ${JCK_DIR}/
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
139
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
140 run_tck 3
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
141 sleep 10
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
142 finish_tck 3
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
143 }
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
144
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
145 function main()
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
146 {
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
147 echo "Starting"
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
148 run_tck1
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
149 run_tck2
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
150 run_tck3
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
151 }
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
152
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
153 main
a75e3cbf5b1c Added script used to run TCK7.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
154