jlaskey@3: rem jlaskey@7: rem Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. jlaskey@3: rem DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jlaskey@3: rem jlaskey@3: rem This code is free software; you can redistribute it and/or modify it jlaskey@3: rem under the terms of the GNU General Public License version 2 only, as jlaskey@3: rem published by the Free Software Foundation. jlaskey@3: rem jlaskey@3: rem This code is distributed in the hope that it will be useful, but WITHOUT jlaskey@3: rem ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jlaskey@3: rem FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jlaskey@3: rem version 2 for more details (a copy is included in the LICENSE file that jlaskey@3: rem accompanied this code). jlaskey@3: rem jlaskey@3: rem You should have received a copy of the GNU General Public License version jlaskey@3: rem 2 along with this work; if not, write to the Free Software Foundation, jlaskey@3: rem Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jlaskey@3: rem jlaskey@3: rem Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jlaskey@3: rem or visit www.oracle.com if you need additional information or have any jlaskey@3: rem questions. jlaskey@3: rem jlaskey@3: @echo off jlaskey@3: jlaskey@3: if "%JAVA_HOME%" neq "" ( jlaskey@3: call :run "%JAVA_HOME%/bin/java" jlaskey@3: ) else ( jlaskey@3: call :run java jlaskey@3: ) jlaskey@3: goto :EOF jlaskey@3: jlaskey@3: :run jlaskey@3: setlocal jlaskey@3: set NASHORN_JAR=dist/nashorn.jar jlaskey@3: set JVM_FLAGS=-Xms2G -Xmx2G -XX:-TieredCompilation -server -esa -ea -jar %NASHORN_JAR% jlaskey@3: set JVM_FLAGS7=-Xbootclasspath/p:%NASHORN_JAR% %JVM_FLAGS% jlaskey@3: set OCTANE_ARGS=--verbose --iterations 7 jlaskey@3: jlaskey@3: %1 -fullversion 2>&1 | findstr /L /C:"version ""1.7" jlaskey@3: if %errorlevel% equ 0 ( jlaskey@3: set CMD=%1 %JVM_FLAGS7% jlaskey@3: ) else ( jlaskey@3: %1 -fullversion jlaskey@3: set CMD=%1 %JVM_FLAGS% jlaskey@3: ) jlaskey@3: sundar@19: %CMD% test/script/basic/run-octane.js -- test/script/external/octane/box2d.js %OCTANE_ARGS% sundar@19: %CMD% test/script/basic/run-octane.js -- test/script/external/octane/code-load.js %OCTANE_ARGS% sundar@19: %CMD% test/script/basic/run-octane.js -- test/script/external/octane/crypto.js %OCTANE_ARGS% sundar@19: %CMD% test/script/basic/run-octane.js -- test/script/external/octane/deltablue.js %OCTANE_ARGS% sundar@19: %CMD% test/script/basic/run-octane.js -- test/script/external/octane/gbemu.js %OCTANE_ARGS% sundar@19: %CMD% test/script/basic/run-octane.js -- test/script/external/octane/navier-stokes.js %OCTANE_ARGS% sundar@19: %CMD% test/script/basic/run-octane.js -- test/script/external/octane/pdfjs.js %OCTANE_ARGS% sundar@19: %CMD% test/script/basic/run-octane.js -- test/script/external/octane/raytrace.js %OCTANE_ARGS% sundar@19: %CMD% test/script/basic/run-octane.js -- test/script/external/octane/regexp.js %OCTANE_ARGS% sundar@19: %CMD% test/script/basic/run-octane.js -- test/script/external/octane/richards.js %OCTANE_ARGS% sundar@19: %CMD% test/script/basic/run-octane.js -- test/script/external/octane/splay.js %OCTANE_ARGS% jlaskey@3: endlocal jlaskey@3: goto :EOF