mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-15 01:19:29 +02:00
applied patch per SF bug 3302219
"unit tests are badly portable"
This commit is contained in:
+7
-8
@@ -1,12 +1,11 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
action=$@
|
||||
QMAKE="${QMAKE:-qmake}"
|
||||
QMAKEPARAMS="${QMAKESPEC:+ -spec $QMAKESPEC}"
|
||||
|
||||
for directory in $(find . -name unit_tests)
|
||||
set -e
|
||||
find . -mindepth 1 -type d -name unit_tests | while read directory
|
||||
do
|
||||
home=`pwd`
|
||||
cd $directory
|
||||
[ -z $QMAKESPEC ] && { qmake || exit 1; } || { qmake -spec $QMAKESPEC || exit 1; }
|
||||
$action || exit 1
|
||||
cd $home
|
||||
echo "===> Running tests in $directory"
|
||||
(cd $directory && $QMAKE $QMAKEPARAMS && "$@")
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user