Skip to content

Latest commit

 

History

History
executable file
·
33 lines (27 loc) · 675 Bytes

build.all.xcode4.i386.command

File metadata and controls

executable file
·
33 lines (27 loc) · 675 Bytes
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
testsTotal=0
testsPassed=0
testsFailed=0
testsSkipped=0
function build() {
testsTotal=$(($testsTotal + 1))
if [ -d "tests/$1" ]; then
"xcodebuild" ARCHS=i386 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 ..