From c587eefbb1290cc01e3e14a0ae18a2d316a498fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Thu, 18 Feb 2016 13:26:44 +0100 Subject: [ios] make unit tests work on iOS and iOS Simulator --- test/src/app-info.plist | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ test/src/main.mm | 10 ++++++++++ 2 files changed, 63 insertions(+) create mode 100644 test/src/app-info.plist create mode 100644 test/src/main.mm (limited to 'test/src') diff --git a/test/src/app-info.plist b/test/src/app-info.plist new file mode 100644 index 0000000000..7a5b9f51d0 --- /dev/null +++ b/test/src/app-info.plist @@ -0,0 +1,53 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.mapbox.MapboxGLUnitTest + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 0.0.1 + CFBundleSignature + MBGL + CFBundleVersion + 1 + LSRequiresIPhoneOS + + NSHumanReadableCopyright + © 2014–2016 Mapbox + NSLocationAlwaysUsageDescription + The map will ALWAYS display the user's location. + NSLocationWhenInUseUsageDescription + The map will display the user's location. + UILaunchStoryboardName + Default + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/test/src/main.mm b/test/src/main.mm new file mode 100644 index 0000000000..abfa62972b --- /dev/null +++ b/test/src/main.mm @@ -0,0 +1,10 @@ +#import + +#include + +int main(int argc, char* argv[]) { + [[NSFileManager defaultManager] changeCurrentDirectoryPath:[[NSBundle mainBundle] bundlePath]]; + + testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +} -- cgit v1.2.1