root/trunk/deployment/testsuite/shellscr/resources/bwruntest.sh

Revision 1539 (checked in by douglm, 6 years ago)

Discovered it was possible to manufacture a url that updated an event we did not have access to. Turned out to be a small change but changed other uses of the access routines to avoid similar problems.

NOTE: we may need to ensure rollbacks with hibernate. Some db updates take place as we modify the entity.

Line 
1 #!/bin/sh
2
3 # Run the bedework caldav test program
4
5 # JAVA_HOME needs to be defined
6
7 cp=.:./classes:./resources
8
9 for i in lib/*
10   do
11     cp=$cp:$i
12 done
13
14 RUNCMDPREFIX="$JAVA_HOME/bin/java -cp $cp "
15
16 APPNAME=@BW-APP-NAME@
17
18 function runit() {
19   echo $RUNCMDPREFIX "org.junit.runner.JUnitCore org.bedework.testsuite.$1"
20   $RUNCMDPREFIX "org.junit.runner.JUnitCore" "org.bedework.testsuite.$1"
21 }
22
23 case "$1" in
24   apitest)
25     runit "apitests.AllApiTests"
26     ;;
27   *)
28 esac
Note: See TracBrowser for help on using the browser.