Skip to content
Snippets Groups Projects
Commit a1b37222 authored by Niels Möller's avatar Niels Möller
Browse files

(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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment