Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 32 lines (26 sloc) 585 Bytes
#!/bin/sh
if [ x"$1" = x--build ]; then
shift
mvn -P package
fi
rm -rf tmp/img tmp/xml tmp/html logs/run.log
mkdir -p tmp/img/all tmp/img/failed tmp/xml tmp/html logs
log_file=run-`date +'%Y%m%d_%H%M%S'`.log
( cd logs
touch $log_file
ln -s $log_file run.log )
do_script() {
local file="$1"; shift
set -x
case "$OSTYPE" in
linux*|cygwin*)
script -c "$*" "$file"
;;
darwin*|*bsd*)
script "$file" "$@"
;;
esac
}
do_script logs/$log_file java -Dsrj.log.level=DEBUG -jar target/selenese-runner.jar \
--config tools/run.config \
"$@"