build.all.xcode4.i386.command 675 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. testsTotal=0
  3. testsPassed=0
  4. testsFailed=0
  5. testsSkipped=0
  6. function build() {
  7. testsTotal=$(($testsTotal + 1))
  8. if [ -d "tests/$1" ]; then
  9. "xcodebuild" ARCHS=i386 ONLY_ACTIVE_ARCH=NO -workspace ./SDL.xcworkspace/ -scheme "$1"
  10. if [ $? -ne 0 ]; then
  11. testsFailed=$(($testsFailed + 1))
  12. else
  13. testsPassed=$(($testsPassed + 1))
  14. fi
  15. echo "\033]0;Building: $1\007"
  16. else
  17. testsSkipped=$(($testsSkipped + 1))
  18. fi
  19. }
  20. # change to directory above command file
  21. cd `dirname $0`/..
  22. # build all of the tests
  23. for d in ./tests/*; do
  24. build `basename $d`
  25. done
  26. echo "Build Summary: Total=$testsTotal Passed=$testsPassed Failed=$testsFailed Skipped=$testsSkipped"
  27. cd ..