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