< prev index next >

test/jdk/jdk/incubator/vector/config.sh

Print this page

 7 # under the terms of the GNU General Public License version 2 only, as
 8 # published by the Free Software Foundation.  Oracle designates this
 9 # particular file as subject to the "Classpath" exception as provided
10 # by Oracle in the LICENSE file that accompanied this code.
11 #
12 # This code is distributed in the hope that it will be useful, but WITHOUT
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 # version 2 for more details (a copy is included in the LICENSE file that
16 # accompanied this code).
17 #
18 # You should have received a copy of the GNU General Public License version
19 # 2 along with this work; if not, write to the Free Software Foundation,
20 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 #
22 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23 # or visit www.oracle.com if you need additional information or have any
24 # questions.
25 #
26 
27 VECTORTESTS_HOME="$(pwd)"
28 JDK_SRC_HOME="./../../../../../"
29 JAVA="${JAVA_HOME}/bin/java"
30 JAVAC="${JAVA_HOME}/bin/javac"
31 BUILDLOG_FILE="./build.log"
32 SPP_CLASSNAME="build.tools.spp.Spp"
33 # Windows: Classpath Separator is ';'
34 # Linux: ':'
35 SEPARATOR=":"
36 TYPEPREFIX=""
37 TEMPLATE_FILE="unit_tests.template"
38 TESTNG_JAR="${TESTNG_PLUGIN}/plugins/org.testng.source_6.13.1.r201712040515.jar"
39 TESTNG_RUN_JAR="${TESTNG_PLUGIN}/plugins/org.testng_6.13.1.r201712040515.jar"
40 JCOMMANDER_JAR="${TESTNG_PLUGIN}/plugins/com.beust.jcommander_1.72.0.jar"
41 TEST_ITER_COUNT=100
42 
43 PERF_TEMPLATE_FILE="perf_tests.template"
44 PERF_SCALAR_TEMPLATE_FILE="perf_scalar_tests.template"
45 PERF_DEST="benchmark/src/main/java/benchmark/jdk/incubator/vector/"

46 
47 function Log () {
48   if [ $1 == true ]; then
49     echo "$2"
50   fi
51   echo "$2" >> $BUILDLOG_FILE
52 }
53 
54 function LogRun () {
55   if [ $1 == true ]; then
56     echo -ne "$2"
57   fi
58   echo -ne "$2" >> $BUILDLOG_FILE
59 }
60 
61 # Determine which delimiter to use based on the OS.
62 # Windows uses ";", while Unix-based OSes use ":"
63 uname_s=$(uname -s)
64 VECTORTESTS_HOME_CP=$VECTORTESTS_HOME
65 if [ "x${VAR_OS_ENV}" == "xwindows.cygwin" ]; then

 7 # under the terms of the GNU General Public License version 2 only, as
 8 # published by the Free Software Foundation.  Oracle designates this
 9 # particular file as subject to the "Classpath" exception as provided
10 # by Oracle in the LICENSE file that accompanied this code.
11 #
12 # This code is distributed in the hope that it will be useful, but WITHOUT
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 # version 2 for more details (a copy is included in the LICENSE file that
16 # accompanied this code).
17 #
18 # You should have received a copy of the GNU General Public License version
19 # 2 along with this work; if not, write to the Free Software Foundation,
20 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 #
22 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23 # or visit www.oracle.com if you need additional information or have any
24 # questions.
25 #
26 
27 JDK_SRC_HOME="$(git rev-parse --show-toplevel)"
28 VECTORTESTS_HOME="$JDK_SRC_HOME/test/jdk/jdk/incubator/vector/"
29 JAVA="${JAVA_HOME}/bin/java"
30 JAVAC="${JAVA_HOME}/bin/javac"
31 BUILDLOG_FILE="./build.log"
32 SPP_CLASSNAME="build.tools.spp.Spp"
33 # Windows: Classpath Separator is ';'
34 # Linux: ':'
35 SEPARATOR=":"
36 TYPEPREFIX=""
37 TEMPLATE_FILE="unit_tests.template"
38 TESTNG_JAR="${TESTNG_PLUGIN}/plugins/org.testng.source_6.13.1.r201712040515.jar"
39 TESTNG_RUN_JAR="${TESTNG_PLUGIN}/plugins/org.testng_6.13.1.r201712040515.jar"
40 JCOMMANDER_JAR="${TESTNG_PLUGIN}/plugins/com.beust.jcommander_1.72.0.jar"

41 
42 PERF_TEMPLATE_FILE="perf_tests.template"
43 PERF_SCALAR_TEMPLATE_FILE="perf_scalar_tests.template"
44 PERF_DEST="$JDK_SRC_HOME/test/micro/org/openjdk/bench/jdk/incubator/vector/operation"
45 
46 
47 function Log () {
48   if [ $1 == true ]; then
49     echo "$2"
50   fi
51   echo "$2" >> $BUILDLOG_FILE
52 }
53 
54 function LogRun () {
55   if [ $1 == true ]; then
56     echo -ne "$2"
57   fi
58   echo -ne "$2" >> $BUILDLOG_FILE
59 }
60 
61 # Determine which delimiter to use based on the OS.
62 # Windows uses ";", while Unix-based OSes use ":"
63 uname_s=$(uname -s)
64 VECTORTESTS_HOME_CP=$VECTORTESTS_HOME
65 if [ "x${VAR_OS_ENV}" == "xwindows.cygwin" ]; then
< prev index next >