premake/Xcode/build-scripts/build.all.xcode4.i386.command
author Ryan C. Gordon
Sun, 03 Jan 2016 20:52:44 -0500
changeset 10004 8f2f519d1e61
parent 7925 f090a47eb7f7
permissions -rwxr-xr-x
CMake: Don't make a libSDL2.so symlink on Mac OS X (do .dylib instead).
     1 #!/bin/sh
     2 
     3 testsTotal=0
     4 testsPassed=0
     5 testsFailed=0
     6 testsSkipped=0
     7 
     8 function build() {
     9 	testsTotal=$(($testsTotal + 1))
    10 	if [ -d "tests/$1" ]; then
    11 		"xcodebuild" ARCHS=i386 ONLY_ACTIVE_ARCH=NO -workspace ./SDL.xcworkspace/ -scheme "$1"
    12 		if [ $? -ne 0 ]; then
    13 			testsFailed=$(($testsFailed + 1))
    14 		else
    15 			testsPassed=$(($testsPassed + 1))
    16 		fi
    17 		echo "\033]0;Building: $1\007"
    18 	else
    19 		testsSkipped=$(($testsSkipped + 1))
    20 	fi
    21 }
    22 
    23 # change to directory above command file
    24 cd `dirname $0`/..
    25 
    26 # build all of the tests
    27 for d in ./tests/*; do
    28 	build `basename $d`
    29 done
    30 
    31 echo "Build Summary: Total=$testsTotal Passed=$testsPassed Failed=$testsFailed Skipped=$testsSkipped"
    32 
    33 cd ..