Files
secondo/bin/TestRunnerCS

37 lines
589 B
Plaintext
Raw Normal View History

2026-01-23 17:03:45 +08:00
#!/bin/bash
#
# TestRunnerCS Startup Script
#
# 31.01.2006, M. Spiekermann
if [ "$1" != "--no-tmp" ]; then
dateStr=$(date +%Y_%m%d_%H%M%S)
tempDir="/tmp/$USER/TestRunnerCS_$dateStr"
mkdir -p $tempDir
export SECONDO_PARAM_SecondoHome="$tempDir"
else
shift
fi
# start up SecondoListener in background
SecondoListener "SecondoConfig.ini"&
lpid=$!
echo -e "SecondoListener running with pid=$lpid"
sleep 5
# check if nice command is present
ncmd=$(which nice)
if [ $? -ne 0 ]; then
SecondoCS -test $*
else
nice -n 19 SecondoCS -test $*
fi
rc=$?
rm -rf $tempDir
kill $lpid
exit $rc