All pastes #738107 Raw Edit

Mine

public text v1 · immutable
·published 2007-10-16 00:34 UTC
rendered paste body
#!/bin/sh
set -e

SELENIUM=selenium-server.jar

# this needs to run in its own thread, or be executed separately, can we decide that it is running?
(
    LD_LIBRARY_PATH=/usr/lib/iceweasel
    java -jar $SELENIUM
) &
PID_SELENIUM=$!

echo "PID of selenium server is" $PID_SELENIUM

( /home/shae/usr/bin/Main --http-port=8000 ) &
PID_HAPPS=$!

echo "PID of HAppS is" $PID_HAPPS

sleep 30

./happstest

echo "Tests completed, killing Selenium and HAppS"

kill PID_HAPPS
kill PID_SELENIUM

echo "All done!"