root/trunk/ProjectFortress/test @ 3780

Revision 3780, 1.6 KB (checked in by dr2chase, 6 months ago)

Added ability to specify the test; fixed paths

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3################################################################################
4#    Copyright 2008 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
20TP=third_party
21SCALAVER=2.7.4
22
23if (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"
25else
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"
27fi
28echo classpath=$CP
29
30TEST=com.sun.fortress.tests.unit_tests.SystemJUTest
31
32if [ $# -ge 1 ] ; then
33  TEST="$1"
34  TEST=`echo "$TEST" | sed -e '1,\$s?/?.?g'`
35  echo Testing "$TEST"
36  java -cp "$CP" -Xmx800m -Xms400m \
37  junit.swingui.TestRunner "$TEST" >& test.log
38
39else
40  java -cp "$CP" -Xmx800m -Xms400m \
41  junit.swingui.TestRunner "$TEST" >& test.log
42fi
Note: See TracBrowser for help on using the browser.