Граф коммитов

444 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Pouliot 004fe2f8d8 [tests][monotouch] More adjustments for iOS10 related failures/changes (#239)
* [tests][monotouch] More adjustments for iOS10 related failures/changes

- some might be Apple bugs and need to be reverted later

* Fix more failures on monotouch-tests wrt iOS 10

* MutableContactTest.cs: Wrong assert was changed (which is why each one
  needs it's own unique string)

* TrustTest.cs: Fixed as results vary on < iOS9, iOS9 and iOS10

* NetworkReachabilityTest.cs: Fixed as results vary on < iOS9, iOS9 and iOS10

Those

[FAIL] UserDefaultsTest.Ctor_UserName : System.NullReferenceException : Object reference not set to an instance of an object
[FAIL] UserDefaultsTest.SetString : StringForKey-2

are due to

http://stackoverflow.com/questions/37840288/ios-10-nsuserdefaults-does-not-work

and should disappear once the bots are rebooted.
2016-06-22 16:28:27 -04:00
Rolf Bjarne Kvinge d62295f0bd [jenkins] Skip mmptest to see if it'll speed up the test run on jenkins. (#248) 2016-06-22 07:12:51 -07:00
Rolf Bjarne Kvinge 6521817ec0 Merge pull request #253 from rolfbjarne/jenkins-tests-xcode8
[xharness] More improvements to the jenkins code.
2016-06-22 03:29:05 -07:00
Rolf Bjarne Kvinge fdccb019a5 [xharness] Try to bump the launch timeout to 3 minutes. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge fb37a21ef9 [xharness] Improve logging.
Make sure as much as possible is written to the logs, and not stdout.

Also copy an extra 1024 bytes when fetching the system log (and continue
capturing a while after stopped, since there may be unflushed system log
data in memory).
2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge dfd0fbe81a [xharness] Refactor how we do simulator configuration.
Split out the code to prepare the simulator from the AppRunner class,
which is now just handling the logic required for each test run.

This way it's easier to handle simulator preparation for multiple
test runs with the same simulator.

Also revamp logging to avoid printing directly to the console, but
instead use the logging classes that permit redirecting logging
to a file. This makes the html report show better logging.
2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge 755a0622bd [xharness] Always setup/cleanup tvOS test runs.
Something strange is going on on the bots where only the first tvOS
test run actually launches the test app successfully.
2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge 6b5a394244 [xharness] Add a few more variables to control what to include in a test run. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge 0a39ec940f [xharness] Ignore ignored tests when deciding which color to use for a group of tests. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge 1e1bbec8a3 [xharness] When capturing the system log for simulator runs, don't capture contents of the log from before our test run starts. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge bd993fbe0d [xharness] Cleanup must be done by the last test, not the first test. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge cf060f4611 [xharness] iPhone 4s doesn't exist anymore, use iPhone 5 instead. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge d6f27c2e65 [xharness] Improve html report a bit when some tests are ignored. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge ade84d6397 [xharness] Add a few variables to control if to include iOS/Mac tests in jenkins test mode. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge 64bf75c533 [xharness] Fix emptyness check. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge b2431898b0 [xharness] Improve watching objects in the debugger. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge 5a9c9003fa [xharness] Use Xcode 8 when debugging. 2016-06-22 10:42:22 +02:00
Sebastien Pouliot 45cfe49763 [uikit] Fix UIGraphicsPdfRenderer* type names (#251)
The native name use `PDF` but this was not provided to the generator.

This also explains why `init` returned `nil` - it was not the common
unavailability of the selector, but the incorrect type name used.

references:
!unknown-type! UIGraphicsPdfRenderer bound
!unknown-type! UIGraphicsPdfRendererContext bound
!unknown-type! UIGraphicsPdfRendererFormat bound
2016-06-21 17:14:54 -04:00
Vincent Dondain aae5a73543 [messages] New framework in iOS 10.0 beta1 (#190) 2016-06-21 08:56:38 -04:00
Sebastien Pouliot 1659e121f0 Merge branch 'master' into xcode8 2016-06-20 20:48:14 -04:00
Timothy Risi c1a877e4e8 Mac bug fixes (#175)
* [Bug 30500] Add NSUrl.Port binding

* [Bug 39945] Add NSImageName.ShareTemplate binding and enum

* [Bug 41713] Disable NDon't allow expanding AccessibilityNotifiesWhenDestroyed in debugger

* Style fixes
2016-06-20 15:49:35 -04:00
Chris Hamons 3fcb2ed89e [XM] - XM Mobile should not resolve from the GAC either (#242)
- Centralize fix I made for XM 4.5 to apply to both and write larger test
- https://bugzilla.xamarin.com/show_bug.cgi?id=42001
2016-06-20 15:26:33 -04:00
Jeffrey Stedfast f3199064d4 [msbuild] Properly locate .nib files produced for iOS 5.x (#241)
iOS 5.x uses .nib files and not directories.
2016-06-20 14:11:39 -04:00
Chris Hamons 75fcf376d3 [XM] Fix mmp test failure
- On some machines/mono versions it appears that printing System.Windows.DependencyObject requires System.Xaml for some reason.
- Since the test is testing our resolution from the GAC and we don't care about the specifics, I'm just adding that reference. Which we also get from the GAC.
2016-06-20 12:52:29 -05:00
Sebastien Pouliot 4995f58459 [tests][link sdk] Exclude CFNetwork test from watchOS (#238)
- framework not supported on watchOS
- fix build of "link sdk" under watchOS
2016-06-20 09:37:06 -04:00
Sebastien Pouliot ebbc8addcc [tests] Some fix for monotouch-test needed wrt iOS 10 (#236)
* Adjust ever changing AddressFormatingTest for iOS 10, which does
  not output the country;

* Adjust Contact's ICNKeyDescriptor internal check;

* CLBeaconRegion.ProximityUuid does not return the original instance
  anymore, but a different one with the same uuid;

* Add a small delta for Vector3 comparison in ModelIO tests;

* Adjust MapKit tests for pin color change and MapRect corner case;

* SecKeyTest with corner cases now pass (they failed before);

* SecPolicyIdentifier.AppleIDValidation does not report the OID it's
  created from (migration?)

Note: some might be bugs that Apple will fix in later seeds
2016-06-19 09:32:01 -07:00
Alex Soto 377a16c40f Merge pull request #205 from dalexsoto/videosubscriberaccount
[VideoSubscriberAccount] Add VideoSubscriberAccount from xcode8 beta1
2016-06-18 14:44:16 -05:00
Alex Soto 5225450521 [VideoSubscriberAccount] Add VideoSubscriberAccount from xcode8 beta1
* Added VideoSubscriberAccount binding
* Ensured we link against VideoSubscriberAccount
* Ensured introspection tests pass
2016-06-18 14:38:02 -05:00
Alex Soto 4f3caa69ad Merge pull request #203 from dalexsoto/speech
[Speech] Add Speech Framework from Xcode 8 Beta 1
2016-06-18 14:30:28 -05:00
Alex Soto 29b47a8c7d [Speech] Add Speech Framework from Xcode 8 Beta 1
* Added Speech Framework bindings
* Ensured introspection test pass
* Ensured we link against Speech framework
* FIXME: SFSpeechRecordingRecognitionRequest is not in the public api
  filled radar://26799291 https://trello.com/c/s6s6YKua
2016-06-18 14:22:06 -05:00
Sebastien Pouliot 7c279d9f9f [tests][introspection] Fix protocol tests for SafariServices
The types are not _publicly_ conforming to the protocols (i.e. the header
files don't mention them). However they do conform at runtime, which is
what the test check (so we must ignore them)
2016-06-18 10:41:18 -04:00
Sebastien Pouliot 3381f7ca1e [tests][introspection] Ignore Sublocality as a typo (#234)
Fix test for a previous commit. This is what Apple use as the API name
even if it's not perfect English.
2016-06-18 07:34:03 -07:00
Sebastien Pouliot 8d4f9ce66d [gameplaykit] Remove default ctor for GKQuadTreeNode (#233)
That was committed, commented, in f2105210, likely a mistake for testing
something :| and it's not working when called in iOS 10

reference:
[FAIL] GameplayKit.GKQuadTreeNode : Handle
2016-06-18 07:32:48 -07:00
Sebastien Pouliot 7c688482e8 [uikit] Remove [BaseType] from type are that only [Protocol] (#231)
and not a [Model] as it's not required and also cause failures,
which we need to investigate (and report an error or fix).

* UIRefreshControlHosting
* UITableViewDataSourcePrefetching

reference:
[FAIL] iOSApiProtocolTest.ApiProtocolTest.GeneralCase : 2 types do not really conform to the protocol interfaces
2016-06-18 06:42:12 -07:00
Sebastien Pouliot 1d483f1979 [avfoundation] Remove default ctor from AVAudioChannelLayout and AVAudioConnectionPoint (#232)
* [avfoundation] Remove default ctor from AVAudioChannelLayout and AVAudioConnectionPoint

They return invalid (nil) instances in iOS 10.

references:
[FAIL] AVFoundation.AVAudioChannelLayout : Handle
[FAIL] AVFoundation.AVAudioConnectionPoint : Handle
2016-06-18 06:40:48 -07:00
Sebastien Pouliot d9fb8dc937 [tests][harness] Add kTCCServiceMediaLibrary to avoid privacy popup (#230)
Running some API without permission can crash some tests.
2016-06-18 06:36:59 -07:00
Alex Soto 7c66cbf736 [CallKit] Add CallKit framework binding from xcode 10 beta1 (#189)
* Added CallKit Bindings
* Ensure CallKit.framework is linked
* Ensure CallKit passes introspection tests
* FIXME: https://trello.com/c/afWXDZ3A
  Headers says CallKit is available on macOS 10.12
  but uses AVAudioSession and it is iOS only
  Opened Radar awaiting response.
2016-06-18 06:20:38 -07:00
Sebastien Pouliot 9e67e4674e [tests][introspection] Fix protocol tests for SafariServices
The types are not _publicly_ conforming to the protocols (i.e. the header
files don't mention them). However they do conform at runtime, which is
what the test check (so we must ignore them)
2016-06-18 08:53:21 -04:00
Sebastien Pouliot 0835b59bc3 [tests][introspection] Allow subclass to satisfy the designated initializer requirement on subclasses (#229)
Fix a false positive when a .ctor is exposed with paramaters using a
subclass of what the designated initializer is exposing.

reference:
[FAIL] UIKit.UIGraphicsPdfRenderer should re-expose UIGraphicsRenderer::.ctor(CGRect, UIGraphicsRendererFormat)
2016-06-18 05:40:22 -07:00
Sebastien Pouliot f173119361 [coreimage] Add bindings for the new CoreImage filters (#228)
New filters are:

* CIClamp;
* CIHueSaturationValueGradient;
* CINinePartStretched;
* CINinePartTiled;
* CIThermal; and
* CIXRay

note: Definitions are not part of Apple's API diff, nor headers diff,
but semi-correct bindings can be generated from iOSCoreImageFiltersTest
commented code.

references:
[FAIL] iOSCoreImageFiltersTest.ApiCoreImageFiltersTest.CheckManagedFilters : Managed filters not found for CIClamp, CIHueSaturationValueGradient, CINinePartStretched, CINinePartTiled, CIThermal, CIXRay
[FAIL] iOSCoreImageFiltersTest.ApiCoreImageFiltersTest.CheckNativeFilters : 6 native filters missing: CIClamp, CIHueSaturationValueGradient, CINinePartStretched, CINinePartTiled, CIThermal, CIXRay
2016-06-17 22:01:44 -07:00
Timothy Risi beb72152b1 SafariServices bindings for iOS 10 and macOS 10.12 (#217)
* SafariServices bindings for iOS 10 and macOS 10.12

* [SafariServices] Add Async for multiple methods, minor other fixes
2016-06-17 15:56:09 -07:00
Aleksey Kliger (λgeek) a46d86948c [linker] Adjust RemoveCode.cs not to remove MonoMethodMessage (#226)
Fixes Bug5354 in linker-ios/dont link/AotBugs.cs when compiled with Mono master.
2016-06-17 15:51:19 -07:00
Zoltan Varga e8819a17fb Bump mono/watch-mono to pick up the fix for #41947. (#227) 2016-06-17 18:28:28 -04:00
Miguel de Icaza 10e744e4de Merge pull request #204 from migueldeicaza/xcode8-uikit
[Review][iOS10,UIKit] Small API introductions.
2016-06-17 11:21:38 -07:00
Rolf Bjarne Kvinge 6877ef44d7 [Security] Apple removed SSLSetSessionStrengthPolicy, which means we can't have the P/Invoke anymore either. (#216)
* [Security] Apple removed SSLSetSessionStrengthPolicy, which means we can't have the P/Invoke anymore either.

Since it causes native linker failures when not using dlsym
(which we've enabled by default now).

* [Security] Don't throw in SslContext.SetSessionStrengthPolicy.

Instead just write a debug message. This way it won't break
any existing code using this API.
2016-06-17 10:53:28 -07:00
Rolf Bjarne Kvinge 1e62987a29 [CoreGraphics] Fix CGRect.Inflate to work correctly, and add tests. Fixes #41684. (#225)
https://bugzilla.xamarin.com/show_bug.cgi?id=41684
2016-06-17 10:45:58 -07:00
Miguel de Icaza ad7f24e969 [iOS10,UIKit] Small API introductions.
Of note: NSLayoutConstraints.cs provides the generic methods, as the
generator currently does not know how to either annotate generic
return types (necesary to build), nor does it have "where" support.

UITraitCollection - re-indented to follow the tab convention.
2016-06-17 10:46:57 -04:00
Sebastien Pouliot 0b6ac445ce [modelio] All properties for MDLVertexAttributeData were turned read-only in iOS10 (#222)
The iOS 10 beta API diff (over 9.3 SDK) shows:

-@property (nonatomic, retain) MDLMeshBufferMap *map;
-@property (nonatomic) void *dataStart;
-@property (nonatomic) NSUInteger stride;
-@property (nonatomic) MDLVertexFormat format;
+@property (nonatomic, retain, readonly) MDLMeshBufferMap *map;
+@property (nonatomic, readonly) void *dataStart;
+@property (nonatomic, readonly) NSUInteger stride;
+@property (nonatomic, readonly) MDLVertexFormat format;

The commit fix this without introducing a API incompatibility.

references:
[FAIL] Selector not found for ModelIO.MDLVertexAttributeData : setDataStart:
[FAIL] Selector not found for ModelIO.MDLVertexAttributeData : setFormat:
[FAIL] Selector not found for ModelIO.MDLVertexAttributeData : setMap:
[FAIL] Selector not found for ModelIO.MDLVertexAttributeData : setStride:
2016-06-17 07:26:18 -07:00
Sebastien Pouliot a633b79684 [uikit] Fix issues found with introspection tests (#221)
Some types can't call `init` and return valid instances, some returns
nil and gives an invalid handle and one fails (throws) [1]

references:
[FAIL] UIKit.UIGraphicsPdfRenderer : Handle
[FAIL] UIKit.UIGraphicsPdfRendererContext : Handle
[FAIL] UIKit.UIGraphicsPdfRendererFormat : Handle
[FAIL] Default constructor not allowed for UIKit.UIPresentationController : Objective-C exception thrown. Name: NSInvalidArgumentException Reason: Don't call -[UIPresentationController init].
2016-06-17 07:10:43 -07:00
Manuel de la Pena 35be8c62a0 Merge pull request #224 from mandel-macaque/bug-41562
[Fix] Ensure that tests do not fail on iOS 8.
2016-06-17 14:51:10 +02:00