run-all-unit-tests [plain text]
#!/bin/sh
cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
CRSTATE=`defaults read com.apple.CrashReporter DialogType`
defaults write com.apple.CrashReporter DialogType basic
echo ""
echo " * * * Running all unit tests for 32-bits * * *"
../bin/make-recursive.pl clean > /dev/null
../bin/make-recursive.pl | ../bin/result-filter.pl
if [ `machine` = "ppc970" ]
then
echo ""
echo " * * * Running all unit tests for 64-bits * * *"
../bin/make-recursive.pl clean > /dev/null
../bin/make-recursive.pl ARCH="ppc64" | ../bin/result-filter.pl
fi
if [ "`sysctl -n hw.machine`" = "i386" ]
then
if [ -x /usr/libexec/oah/translate ]
then
echo ""
echo " * * * Running all unit tests for emulated 32-bits * * *"
../bin/make-recursive.pl clean > /dev/null
../bin/make-recursive.pl ARCH="ppc" | ../bin/result-filter.pl
fi
if [ `sysctl -n hw.optional.x86_64` = "1" ]
then
echo ""
echo " * * * Running all unit tests for 64-bits * * *"
../bin/make-recursive.pl clean > /dev/null
../bin/make-recursive.pl ARCH="x86_64" | ../bin/result-filter.pl
fi
fi
defaults write com.apple.CrashReporter DialogType ${CRSTATE}