Add ocmock to iOS unit tests xcode project (flutter/engine#18396)
This commit is contained in:
@@ -447,6 +447,7 @@
|
||||
"$(PROJECT_DIR)/Tests",
|
||||
../../../../out/$FLUTTER_ENGINE,
|
||||
../../../../out/$FLUTTER_ENGINE/obj/flutter/shell/platform/darwin/ios/,
|
||||
../../../../out/$FLUTTER_ENGINE/obj/third_party/ocmock/,
|
||||
);
|
||||
OTHER_LDFLAGS = (
|
||||
"-locmock",
|
||||
@@ -488,6 +489,7 @@
|
||||
"$(PROJECT_DIR)/Tests",
|
||||
../../../../out/$FLUTTER_ENGINE,
|
||||
../../../../out/$FLUTTER_ENGINE/obj/flutter/shell/platform/darwin/ios/,
|
||||
../../../../out/$FLUTTER_ENGINE/obj/third_party/ocmock/,
|
||||
);
|
||||
OTHER_LDFLAGS = (
|
||||
"-locmock",
|
||||
|
||||
@@ -2,13 +2,15 @@
|
||||
|
||||
set -e
|
||||
|
||||
TESTING_DIR=$(dirname "$0")
|
||||
pushd $TESTING_DIR
|
||||
|
||||
FLUTTER_ENGINE=ios_debug_sim_unopt
|
||||
|
||||
if [ $# -eq 1 ]; then
|
||||
FLUTTER_ENGINE=$1
|
||||
fi
|
||||
|
||||
pushd $PWD
|
||||
cd ../../../..
|
||||
|
||||
if [ ! -d "out/$FLUTTER_ENGINE" ]; then
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
#!/bin/sh
|
||||
FLUTTER_ENGINE=ios_debug_sim_unopt
|
||||
|
||||
TESTING_DIR=$(dirname "$0")
|
||||
pushd $TESTING_DIR
|
||||
|
||||
if [ $# -eq 1 ]; then
|
||||
FLUTTER_ENGINE=$1
|
||||
fi
|
||||
@@ -15,3 +18,5 @@ set -o pipefail && xcodebuild -sdk iphonesimulator \
|
||||
-destination 'platform=iOS Simulator,name=iPhone 8,OS=13.0' \
|
||||
test \
|
||||
FLUTTER_ENGINE=$FLUTTER_ENGINE | $PRETTY
|
||||
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user