root/trunk/ProjectFortress/testText

Revision 3781, 1.6 KB (checked in by dr2chase, 5 months ago)

Updated testText with new path and option

  • Property svn:executable set to *
Line 
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
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  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
40else
41  java -cp "$CP" -Xmx800m -Xms400m \
42  junit.textui.TestRunner "$TEST"
43fi
Note: See TracBrowser for help on using the browser.