cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

build.all.xcode4.x86_64.command (677B)


      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		"xcodebuild" ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO -workspace ./SDL.xcworkspace/ -scheme "$1"
     12		if [ $? -ne 0 ]; then
     13			testsFailed=$(($testsFailed + 1))
     14		else
     15			testsPassed=$(($testsPassed + 1))
     16		fi
     17		echo "\033]0;Building: $1\007"
     18	else
     19		testsSkipped=$(($testsSkipped + 1))
     20	fi
     21}
     22
     23# change to directory above command file
     24cd `dirname $0`/..
     25
     26# build all of the tests
     27for d in ./tests/*; do
     28	build `basename $d`
     29done
     30
     31echo "Build Summary: Total=$testsTotal Passed=$testsPassed Failed=$testsFailed Skipped=$testsSkipped"
     32
     33cd ..