Commit a1b37222 authored by Niels Möller's avatar Niels Möller

(test_program): If EMULATOR is set in the environment, and the

testprogram is not a script, use EMULATOR to run it. Typical use is
EMULATUR=wine.

Rev: misc/run-tests:1.6
parent 7c0362fa
......@@ -41,7 +41,11 @@ env_program () {
test_program () {
testname=`basename "$1" .exe`
testname=`basename "$testname" -test`
"$1" $testflags
if [ -z "$EMULATOR" ] || head -1 "$1" | grep '^#!' > /dev/null; then
"$1" $testflags
else
"$EMULATOR" "$1" $testflags
fi
case "$?" in
0)
echo PASS: $testname
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment