/[pdpsoft]/branches/nl.nikhef.jgridstart-flyingsaucer/nl.nikhef.jgridstart/jgridstart.sh
ViewVC logotype

Contents of /branches/nl.nikhef.jgridstart-flyingsaucer/nl.nikhef.jgridstart/jgridstart.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 985 - (show annotations) (download) (as text)
Fri Oct 23 12:16:35 2009 UTC (12 years, 1 month ago) by wvengen
File MIME type: application/x-shellscript
File size: 1375 byte(s)
run gui tests from shellscript instead of test runner
1 #!/bin/sh
2 JAVA=java
3 BASE=`dirname $0`
4 LIB="$BASE/thirdparty"
5 CLASSPATH="$LIB/bouncycastle/bcprov-jdk14-143.jar:$LIB/bouncycastle/bcmail-jdk14-143.jar:$LIB/bouncycastle/mail-1.4.1.jar:$LIB/commons/commons-lang-2.4.jar:$LIB/commons/commons-cli-1.2.jar:$LIB/flyingsaucer/core-renderer-minimal.jar:$LIB/flyingsaucer/iText-2.0.8.jar:$LIB/swingworker/swing-worker-1.2.jar:$BASE/bin"
6 INVOKED_PROGRAM="$0"
7 export BASE CLASSPATH INVOKED_PROGRAM
8
9 # undocumented behaviour: first parameter can be "test" to run unit tests,
10 # "cli" to force the command-line version, or "gui" to force the gui version
11 # to be run.
12 # By default, the gui version will be run when DISPLAY is set, or else the
13 # command-line version.
14 if [ "$1" = "test" ]; then
15 echo
16 echo "Running jGridstart tests"
17 echo
18 CLASSPATH="$CLASSPATH:$LIB/junit/junit-4.5.jar:$LIB/junit/abbot.jar"
19 export CLASSPATH
20 #$JAVA org.junit.runner.JUnitCore nl.nikhef.jgridstart.AllTests
21 $JAVA nl.nikhef.jgridstart.AllTests
22 elif [ "$1" = "cli" ]; then
23 shift
24 $JAVA nl.nikhef.jgridstart.cli.Main $@
25 elif [ "$1" = "gui" ]; then
26 shift
27 $JAVA nl.nikhef.jgridstart.gui.Main $@
28 elif [ "$1" = "check" ]; then
29 INVOKED_PROGRAM="$INVOKED_PROGRAM $1"
30 export INVOKED_PROGRAM
31 shift
32 $JAVA nl.nikhef.jgridstart.CertificateCheck $@
33 elif [ "$DISPLAY" ]; then
34 $JAVA nl.nikhef.jgridstart.gui.Main $@
35 else
36 $JAVA nl.nikhef.jgridstart.cli.Main $@
37 fi

Properties

Name Value
svn:executable *

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28