unit_tests.sh 253 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh

QMAKE="${QMAKE:-qmake}"
QMAKEPARAMS="${QMAKESPEC:+ -spec $QMAKESPEC}"

set -e
find . -mindepth 1 -type d -name unit_tests | while read directory
do
	echo "===> Running tests in $directory"
	(cd $directory && $QMAKE $QMAKEPARAMS && "$@")
done