Skip to content
Permalink
Browse files

Added Ben Henning's GSoC2013 work: premake build system.

  • Loading branch information
icculus committed Nov 10, 2013
1 parent 5206975 commit 92b12812ac7ef74bc4e76ffc464e0c61c0f69230

File 392 of 473 in 92b1281

@@ -0,0 +1,33 @@
#!/bin/sh

testsTotal=0
testsPassed=0
testsFailed=0
testsSkipped=0

function build() {
testsTotal=$(($testsTotal + 1))
if [ -d "tests/$1" ]; then
"xcodebuild" ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO -workspace ./SDL.xcworkspace/ -scheme "$1"
if [ $? -ne 0 ]; then
testsFailed=$(($testsFailed + 1))
else
testsPassed=$(($testsPassed + 1))
fi
echo "\033]0;Building: $1\007"
else
testsSkipped=$(($testsSkipped + 1))
fi
}

# change to directory above command file
cd `dirname $0`/..

# build all of the tests
for d in ./tests/*; do
build `basename $d`
done

echo "Build Summary: Total=$testsTotal Passed=$testsPassed Failed=$testsFailed Skipped=$testsSkipped"

cd ..

0 comments on commit 92b1281

Please sign in to comment.