#!/bin/bash ################################################################################ # Copyright 2009 Sun Microsystems, Inc., # 4150 Network Circle, Santa Clara, California 95054, U.S.A. # All rights reserved. # # U.S. Government Rights - Commercial software. # Government users are subject to the Sun Microsystems, Inc. standard # license agreement and applicable provisions of the FAR and its supplements. # # Use is subject to license terms. # # This distribution may include materials developed by third parties. # # Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered # trademarks of Sun Microsystems, Inc. in the U.S. and other countries. ################################################################################ TP=third_party SCALAVER=2.7.4 if (uname | egrep -q CYGWIN) ; then CP="build;$TP/junit/junit.jar;$TP/unsigned/unsigned.jar;$TP/asm/asm-all-3.1.jar;$TP/xtc/xtc.jar;$TP/jsr166y/jsr166y.jar;$TP/plt/plt.jar;$TP/astgen/astgen.jar;$TP/scala/scala-library-$SCALAVER.jar" else CP="build:$TP/junit/junit.jar:$TP/unsigned/unsigned.jar:$TP/asm/asm-all-3.1.jar:$TP/xtc/xtc.jar:$TP/jsr166y/jsr166y.jar:$TP/plt/plt.jar:$TP/astgen/astgen.jar:$TP/scala/scala-library-$SCALAVER.jar" fi echo classpath=$CP TEST=com.sun.fortress.tests.unit_tests.SystemJUTest if [ $# -ge 1 ] ; then TEST="$1" TEST=`echo "$TEST" | sed -e '1,\$s?/?.?g'` echo Testing "$TEST" java -cp "$CP" -Xmx800m -Xms400m \ junit.swingui.TestRunner "$TEST" >& test.log else java -cp "$CP" -Xmx800m -Xms400m \ junit.swingui.TestRunner "$TEST" >& test.log fi