premake/Xcode/build-scripts/build.all.xcode3.x86_64.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 		cd tests/$1
    12 		"xcodebuild" ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO -project "$1.xcodeproj/"
    13 		if [ $? -ne 0 ]; then
    14 			testsFailed=$(($testsFailed + 1))
    15 		else
    16 			testsPassed=$(($testsPassed + 1))
    17 		fi
    18 		cd ../..
    19 		echo "\033]0;Building: $1\007"
    20 	else
    21 		testsSkipped=$(($testsSkipped + 1))
    22 	fi
    23 }
    24 
    25 # change to directory above command file
    26 cd `dirname $0`/..
    27 
    28 # build all of the tests
    29 for d in ./tests/*; do
    30 	build `basename $d`
    31 done
    32 
    33 echo "Build Summary: Total=$testsTotal Passed=$testsPassed Failed=$testsFailed Skipped=$testsSkipped"
    34 
    35 cd ..