mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
b48e54aafe
Jonas Kulla The configure script didn't differentiate between Linux and Android, unconditionally compiling in the unix implementation of SDL_sysfilesystem.c. I'm probably one of the very few people building SDL for android using classic configure + standalone toolchain, so this has gone undetected all along.
33 lines
675 B
Bash
Executable File
33 lines
675 B
Bash
Executable File
#!/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 .. |