#!/bin/bash -xe CWD=`pwd` CWD=`cygpath -m $CWD` JAVA_HOME=$CWD/windows-x64/fastdebug TEST_SRC=$CWD/jdk9/jdk/test/tools/pack200 TEST_CLASSES=$CWD/classes $JAVA_HOME/bin/java -version || exit 1 $JAVA_HOME/bin/javac -d classes jdk9/jdk/test/tools/pack200/*.java || exit 1 dodirect() { pushd workdir $JAVA_HOME/bin/java \ -cp "$TEST_CLASSES;." \ -Dtest.java=$JAVA_HOME \ -Dtest.src=$TEST_SRC \ -Dtest.classes=$TEST_CLASSES \ -esa \ -Xmx1280m -Xshare:off Pack200Test > run.log 2>&1 popd } i=0 while true; do echo $i dodirect i=`expr $i + 1` done