build.all.xcode3.x86_64.command (684B)
1#!/bin/sh 2 3testsTotal=0 4testsPassed=0 5testsFailed=0 6testsSkipped=0 7 8function 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 26cd `dirname $0`/.. 27 28# build all of the tests 29for d in ./tests/*; do 30 build `basename $d` 31done 32 33echo "Build Summary: Total=$testsTotal Passed=$testsPassed Failed=$testsFailed Skipped=$testsSkipped" 34 35cd ..