diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-02-18 13:26:44 +0100 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-03-22 11:56:01 -0700 |
commit | c587eefbb1290cc01e3e14a0ae18a2d316a498fd (patch) | |
tree | 85f3ba7e5997fa1d9d1a0305ce563741cb772d5d /test/src | |
parent | db5ac4785fdc02b4e233201bb3c6f55270e3c65d (diff) | |
download | qtlocation-mapboxgl-c587eefbb1290cc01e3e14a0ae18a2d316a498fd.tar.gz |
[ios] make unit tests work on iOS and iOS Simulator
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/app-info.plist | 53 | ||||
-rw-r--r-- | test/src/main.mm | 10 |
2 files changed, 63 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>en</string> + <key>CFBundleDisplayName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundleExecutable</key> + <string>${EXECUTABLE_NAME}</string> + <key>CFBundleIdentifier</key> + <string>com.mapbox.MapboxGLUnitTest</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundlePackageType</key> + <string>APPL</string> + <key>CFBundleShortVersionString</key> + <string>0.0.1</string> + <key>CFBundleSignature</key> + <string>MBGL</string> + <key>CFBundleVersion</key> + <string>1</string> + <key>LSRequiresIPhoneOS</key> + <true/> + <key>NSHumanReadableCopyright</key> + <string>© 2014–2016 Mapbox</string> + <key>NSLocationAlwaysUsageDescription</key> + <string>The map will ALWAYS display the user's location.</string> + <key>NSLocationWhenInUseUsageDescription</key> + <string>The map will display the user's location.</string> + <key>UILaunchStoryboardName</key> + <string>Default</string> + <key>UIRequiredDeviceCapabilities</key> + <array> + <string>armv7</string> + </array> + <key>UISupportedInterfaceOrientations</key> + <array> + <string>UIInterfaceOrientationPortrait</string> + <string>UIInterfaceOrientationLandscapeLeft</string> + <string>UIInterfaceOrientationLandscapeRight</string> + </array> + <key>UISupportedInterfaceOrientations~ipad</key> + <array> + <string>UIInterfaceOrientationPortrait</string> + <string>UIInterfaceOrientationPortraitUpsideDown</string> + <string>UIInterfaceOrientationLandscapeLeft</string> + <string>UIInterfaceOrientationLandscapeRight</string> + </array> +</dict> +</plist> 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 <Foundation/Foundation.h> + +#include <mbgl/test/util.hpp> + +int main(int argc, char* argv[]) { + [[NSFileManager defaultManager] changeCurrentDirectoryPath:[[NSBundle mainBundle] bundlePath]]; + + testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +} |