cat << EOF > run.sh
#!/bin/bash
cd \`dirname \$0\`
-STARTED=\`pgrep $1 2>/dev/null\`
+STARTED=\`pgrep $1$ 2>/dev/null\`
[ \$? -eq 0 ] && { echo "Already started!"; echo "\$STARTED" ; exit 1 ; }
0> launcher.trace
-rm -f counters/*
+rm -f counters/* test-reports/*
# Execution line:
./$@ --services services.xml &
echo \$! > .pid
ln -sf services/${tol}.xml services.xml
# Tracing
-DEBUG="--cntDir counters"
+DEBUG="--cntDir counters --tmDir test-reports"
echo
echo "Enable debug traces ? (y/n) [n]:"
read enable
fi
# Run script:
-EXE_LINK=ADML-$tol
+EXE_LINK=`basename $PWD`
ln -sf $EXE_BN $EXE_LINK
case $tol in