Show
Ignore:
Timestamp:
05/29/09 13:21:26 (6 months ago)
Author:
dr2chase
Message:

Added ability to specify the test; fixed paths

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/test

    r2570 r3780  
    1818################################################################################ 
    1919 
     20TP=third_party 
     21SCALAVER=2.7.4 
     22 
    2023if (uname | egrep -q CYGWIN) ; then  
    21   CP="build;third_party/junit/junit.jar;third_party/unsigned/unsigned.jar;third_party/asm/asm-3.1.jar;third_party/xtc/xtc.jar;third_party/jsr166y/jsr166y.jar;third_party/plt/plt.jar;third_party/astgen/astgen.jar" 
     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" 
    2225else 
    23   CP="build:third_party/junit/junit.jar:third_party/unsigned/unsigned.jar:third_party/asm/asm-3.1.jar:third_party/xtc/xtc.jar:third_party/jsr166y/jsr166y.jar:third_party/plt/plt.jar:third_party/astgen/astgen.jar" 
     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" 
    2427fi 
     28echo classpath=$CP 
    2529 
     30TEST=com.sun.fortress.tests.unit_tests.SystemJUTest 
    2631 
     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 
    2738 
    28 java -cp "$CP" -Xmx800m -Xms400m \ 
    29 junit.swingui.TestRunner \ 
    30 com.sun.fortress.tests.unit_tests.SystemJUTest >& test.log 
     39else 
     40  java -cp "$CP" -Xmx800m -Xms400m \ 
     41  junit.swingui.TestRunner "$TEST" >& test.log 
     42fi