3
# $Id: runtest 1983 2007-01-25 02:51:44Z ovidiu $
5
# Script that runs a single unit test case and allows to easily attach a debugger to it.
7
# Usage: runtest [-debug|-clientdebug|-serverdebug]
9
# where: -debug starts this VM in debug mode
10
# -clientdebug starts the JRUnit client VM in debug mode (see ServerLockupTestDriver.java)
11
# -serverddbug starts the JRUnit server VM in debug mode (see ServerLockupTestDriver.java)
13
TARGET_CLASS=org.jboss.test.remoting.callback.exception.CallbackTestCase
22
if [ $cygwin = true ]; then
28
while [ "$1" != "" ]; do
29
if [ "$1" = "-debug" ]; then
30
if [ $cygwin = false ]; then
31
JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=12348"
33
JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=client"
35
elif [ "$1" = "-clientdebug" ]; then
36
JAVA_OPTS="$JAVA_OPTS -Dclientdebug=true"
37
elif [ "$1" = "-serverdebug" ]; then
38
JAVA_OPTS="$JAVA_OPTS -Dserverdebug=true"
46
$reldir/../../output/classes${SEP}\
47
$reldir/../../output/tests/classes${SEP}\
48
$reldir/../../lib/junit/lib/junit.jar${SEP}\
49
$reldir/../../lib/jboss/jboss-j2se.jar${SEP}\
50
$reldir/../../lib/jboss/jboss-common.jar${SEP}\
51
$reldir/../../lib/jboss/jrunit.jar${SEP}\
52
$reldir/../../lib/jboss/jboss-jmx.jar${SEP}\
53
$reldir/../../lib/jboss/jboss-serialization.jar${SEP}\
54
$reldir/../../lib/apache-log4j/lib/log4j.jar${SEP}\
55
$reldir/../../lib/sun-servlet/lib/servlet-api.jar${SEP}\
56
$reldir/../../lib/apache-commons/lib/commons-httpclient.jar${SEP}\
57
$reldir/../../lib/oswego-concurrent/lib/concurrent.jar${SEP}\
58
$reldir/../../lib/jgroups/lib/jgroups.jar${SEP}\
59
$reldir/../../lib/apache-commons/lib/commons-logging-api.jar${SEP}\
60
$reldir/../../lib/trove/lib/trove.jar${SEP}\
61
junit.textui.TestRunner $TARGET_CLASS