premake/Xcode/build-scripts/build.all.xcode3.i386.command
changeset 7925 f090a47eb7f7
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/premake/Xcode/build-scripts/build.all.xcode3.i386.command	Sun Nov 10 00:38:37 2013 -0500
     1.3 @@ -0,0 +1,35 @@
     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 +		cd tests/$1
    1.15 +		"xcodebuild" ARCHS=i386 ONLY_ACTIVE_ARCH=NO -project "$1.xcodeproj/"
    1.16 +		if [ $? -ne 0 ]; then
    1.17 +			testsFailed=$(($testsFailed + 1))
    1.18 +		else
    1.19 +			testsPassed=$(($testsPassed + 1))
    1.20 +		fi
    1.21 +		cd ../..
    1.22 +		echo "\033]0;Building: $1\007"
    1.23 +	else
    1.24 +		testsSkipped=$(($testsSkipped + 1))
    1.25 +	fi
    1.26 +}
    1.27 +
    1.28 +# change to directory above command file
    1.29 +cd `dirname $0`/..
    1.30 +
    1.31 +# build all of the tests
    1.32 +for d in ./tests/*; do
    1.33 +	build `basename $d`
    1.34 +done
    1.35 +
    1.36 +echo "Build Summary: Total=$testsTotal Passed=$testsPassed Failed=$testsFailed Skipped=$testsSkipped"
    1.37 +
    1.38 +cd ..
    1.39 \ No newline at end of file