premake/Xcode/build-scripts/build.all.xcode3.x86_64.command
author Philipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 27 Jul 2016 20:47:31 +0200
changeset 10212 af95dd343a25
parent 7925 f090a47eb7f7
permissions -rwxr-xr-x
Fixed information in touch README and changed identifiers so doxygen links them.

#!/bin/sh

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

function build() {
	testsTotal=$(($testsTotal + 1))
	if [ -d "tests/$1" ]; then
		cd tests/$1
		"xcodebuild" ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO -project "$1.xcodeproj/"
		if [ $? -ne 0 ]; then
			testsFailed=$(($testsFailed + 1))
		else
			testsPassed=$(($testsPassed + 1))
		fi
		cd ../..
		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 ..