1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/premake/Xcode/build-scripts/build.all.xcode4.i386.command Sun Nov 10 00:38:37 2013 -0500
1.3 @@ -0,0 +1,33 @@
1.4 +#!/bin/sh
1.5 +
1.6 +testsTotal=0
1.7 +testsPassed=0
1.8 +testsFailed=0
1.9 +testsSkipped=0
1.10 +
1.11 +function build() {
1.12 + testsTotal=$(($testsTotal + 1))
1.13 + if [ -d "tests/$1" ]; then
1.14 + "xcodebuild" ARCHS=i386 ONLY_ACTIVE_ARCH=NO -workspace ./SDL.xcworkspace/ -scheme "$1"
1.15 + if [ $? -ne 0 ]; then
1.16 + testsFailed=$(($testsFailed + 1))
1.17 + else
1.18 + testsPassed=$(($testsPassed + 1))
1.19 + fi
1.20 + echo "\033]0;Building: $1\007"
1.21 + else
1.22 + testsSkipped=$(($testsSkipped + 1))
1.23 + fi
1.24 +}
1.25 +
1.26 +# change to directory above command file
1.27 +cd `dirname $0`/..
1.28 +
1.29 +# build all of the tests
1.30 +for d in ./tests/*; do
1.31 + build `basename $d`
1.32 +done
1.33 +
1.34 +echo "Build Summary: Total=$testsTotal Passed=$testsPassed Failed=$testsFailed Skipped=$testsSkipped"
1.35 +
1.36 +cd ..
1.37 \ No newline at end of file