diff options
author | Gil <mcg@google.com> | 2018-02-22 08:26:22 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 08:26:22 -0800 |
commit | 4dc63f8d7cbf60417b88c6a77839ea32656627b9 (patch) | |
tree | 9e06e7c40b71caea3a89813a506c9aebccdf1401 /Firestore/test.sh | |
parent | 935f3ca7d749f96c7207236a39c57f32a02c05d3 (diff) |
Fix Firestore tests for M22 (#834)
* Add FIRFirestoreTests to the Firestore Xcode project
* Avoid waitForExpectations:timeout:
This API was added in Xcode 8.3, but we still build production releases
with Xcode 8.2. waitForExpectationsWithTimeout:handler: is available
from Xcode 7.2.
* Add AppForUnitTesting
Add a utility for constructing a Firebase App for testing.
* Handle the nil UID from FIRAuth
* Avoid running CMake tests twice
* Only build app_testing on Apple platforms
* Revise test.sh messages
Diffstat (limited to 'Firestore/test.sh')
-rwxr-xr-x | Firestore/test.sh | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Firestore/test.sh b/Firestore/test.sh index b211f46..7be70d0 100755 --- a/Firestore/test.sh +++ b/Firestore/test.sh @@ -40,19 +40,15 @@ test_iOS() { test_CMake() { echo "cpu core: $(sysctl -n hw.ncpu)" - echo "set cmake build" && \ - mkdir build && \ + echo "prepare cmake build" && \ + mkdir -p build && \ cd build && \ cmake .. || \ exit 1 - echo "initial cmake build" && \ + echo "cmake build and test" && \ make -j $(sysctl -n hw.ncpu) all || \ exit 2 - - echo "test Firestore cmake build" && \ - cd Firestore && \ - make test } test_iOS; RESULT=$? |