build.all.xcode3.x86_64.command 684 B

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