| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | ################################################################################ |
|---|
| 4 | # Copyright 2009 Sun Microsystems, Inc., |
|---|
| 5 | # 4150 Network Circle, Santa Clara, California 95054, U.S.A. |
|---|
| 6 | # All rights reserved. |
|---|
| 7 | # |
|---|
| 8 | # U.S. Government Rights - Commercial software. |
|---|
| 9 | # Government users are subject to the Sun Microsystems, Inc. standard |
|---|
| 10 | # license agreement and applicable provisions of the FAR and its supplements. |
|---|
| 11 | # |
|---|
| 12 | # Use is subject to license terms. |
|---|
| 13 | # |
|---|
| 14 | # This distribution may include materials developed by third parties. |
|---|
| 15 | # |
|---|
| 16 | # Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered |
|---|
| 17 | # trademarks of Sun Microsystems, Inc. in the U.S. and other countries. |
|---|
| 18 | ################################################################################ |
|---|
| 19 | |
|---|
| 20 | TP=third_party |
|---|
| 21 | SCALAVER=2.7.4 |
|---|
| 22 | |
|---|
| 23 | if (uname | egrep -q CYGWIN) ; then |
|---|
| 24 | 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" |
|---|
| 25 | else |
|---|
| 26 | 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" |
|---|
| 27 | fi |
|---|
| 28 | echo classpath=$CP |
|---|
| 29 | |
|---|
| 30 | TEST=com.sun.fortress.tests.unit_tests.SystemJUTest |
|---|
| 31 | |
|---|
| 32 | if [ $# -ge 1 ] ; then |
|---|
| 33 | TEST="$1" |
|---|
| 34 | shift |
|---|
| 35 | TEST=`echo "$TEST" | sed -e '1,\$s?/?.?g'` |
|---|
| 36 | echo Testing "$TEST" |
|---|
| 37 | java -cp "$CP" -Xmx800m -Xms400m \ |
|---|
| 38 | junit.textui.TestRunner "$TEST" |
|---|
| 39 | |
|---|
| 40 | else |
|---|
| 41 | java -cp "$CP" -Xmx800m -Xms400m \ |
|---|
| 42 | junit.textui.TestRunner "$TEST" |
|---|
| 43 | fi |
|---|