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

1633 Коммитов

Автор SHA1 Сообщение Дата
Christian Resma Helle cf07825667 Improve UIScreen Capture() support for complex views (#1235)
Use DrawViewHierarchy to capture a snapshot of the current screen
2016-11-24 16:30:33 +01:00
Rolf Bjarne Kvinge 77d4769f54 [xharness] Make sure DownloadMlaunch isn't run multiple times simultaneously. (#1236) 2016-11-24 15:12:51 +01:00
Rolf Bjarne Kvinge 6d8421e966 Bump mono to get fix for #45140. (#1228)
https://bugzilla.xamarin.com/show_bug.cgi?id=45140
2016-11-23 16:31:10 +01:00
Zoltan Varga f0640443a9 Bump llvm to the tip of the 'master' branch. (#1225) 2016-11-23 07:30:31 -05:00
Rolf Bjarne Kvinge 30cf039f63 [src] Add makefile targets to calculate a diff of generated source code. (#1230) 2016-11-23 12:29:44 +01:00
Rolf Bjarne Kvinge 3a771eaf09 Add and ship file that lists the SDK versions XI/XM supports. (#1162)
* Add and ship file that lists the SDK versions XI supports.

Add and ship a file that lists the SDK versions of the various SDKs XI supports.

Also list the minimum SDK version for each extension.

And add a script that verifies that the current SDK version is in this file,
which should ensure every SDK version bump ends up in the file.

* [mtouch] Remove generated file from source control.

* [SdkVersions] Remove versions not in master yet.

* [SdkVersions] Improve detection script to verify that versions are between min and max, and that both min and max are in the list.

* Move things around a bit and add macOS support.

* Update Versions-mac.plist.in with extension info
2016-11-22 14:41:50 +01:00
Timothy Risi 23221f92f3 Fix test failure (#1223) 2016-11-21 16:38:01 -05:00
Timothy Risi 2dcace0c7a [Mac] Add ApiTypoTest (#1190) 2016-11-21 16:35:57 -05:00
Vincent Dondain 42775bac58 Update reference to maccore
Includes xamarin-analysis bump with rule XIA0003.
2016-11-21 16:14:09 +01:00
Rolf Bjarne Kvinge c00dbbb30c [runtime] Assert instead of exiting with a printf. (#1222)
Asserting produces a potentially useful crash report, while just exiting doesn't.
2016-11-21 14:39:16 +01:00
Rolf Bjarne Kvinge ea24c1d3b4 [runtime] Remove unused variable. (#1221) 2016-11-21 14:38:14 +01:00
Manuel de la Pena 576563fa0a Revert "[tests] Disable the docs tests until the documentation process is fixed. (#965)" (#1220)
Test have been fixed in
maccore/master/7284688c05cd1420274858a57b7c7616dfbe1d0b

This reverts commit 0a0503a6e9.
2016-11-21 13:09:54 +01:00
iain 94e47a09b4 [CoreMidi] Make FindByUniqueId public (#1218) 2016-11-21 10:30:56 +01:00
Rolf Bjarne Kvinge 657d603b03 [runtime] Fix signature for mono_thread_detach_if_exiting. (#1217) 2016-11-18 20:42:31 +01:00
Rolf Bjarne Kvinge 3cf0eb89d1 [builds] Rely on the mono repo automatically cloning the binaries for the offset tool. (#1215) 2016-11-18 12:32:51 +01:00
Rolf Bjarne Kvinge 3ac54f01a4 Bump mono to get fix for #45369. (#1212) 2016-11-18 10:17:10 +01:00
Rolf Bjarne Kvinge db00a33848 [xharness] Add support for [skip|run]-all-tests labels. (#1208) 2016-11-18 07:11:14 +01:00
Zoltan Varga 4c8898f3ee [mtouch] Convert .file directives containing backslashes correctly. Fixes #44733. (#1211) 2016-11-18 07:02:41 +01:00
Rolf Bjarne Kvinge fad320462c [apitest] Skip IKPictureTaker. Fixes #46624. (#1209)
https://bugzilla.xamarin.com/show_bug.cgi?id=46624
2016-11-17 19:23:13 +01:00
Rolf Bjarne Kvinge 077b0d3343 [tests] Update README. (#1207) 2016-11-17 14:18:39 +01:00
Rolf Bjarne Kvinge 66f82d1f94 [jenkins] Add support for enabling device builds using labels. (#1184)
* [jenkins] Add support for enabling device builds using labels.

* [xharness] Give the iOS MSBuild tests 30 minutes to finish.

* [mtouch tests] Give the BuildTestProject 10 minutes to compile each test case.

Wrench bots build the dontlink test in ~3m40, but that's apparently not enough
for the Jenkins bots (slower bots?), which time out the test after 5 minutes.

So double the timeout to 10 minutes, which will hopefully give the Jenkins
bots enough time to run the test to completion.
2016-11-17 10:22:26 +01:00
Rolf Bjarne Kvinge 89757e6f60 [xharness] Capture entire log files on wrench. (#1206) 2016-11-17 08:07:09 +01:00
Martin Baulig 80fb556c30 [AppleTls]: Fix AppleTlsContext.PeerDomainName and include it in MonoTlsConnectionInfo.PeerDomainName. (#1205)
SSLGetPeerDomainName() may sometimes include a trailing \0 character,
which we need to remove.

We now also set MonoTlsConnectionInfo.PeerDomainName.
2016-11-17 07:36:51 +01:00
Vincent Dondain 011bb14212 [msbuild/tests] Add watch-companion test (#1187) 2016-11-16 16:51:33 -05:00
Jeffrey Stedfast 19ae097f79 [msbuild] Log warnings and errors for the ibtool --link stage as well (#1188)
* [msbuild] Log warnings and errors for the ibtool --link stage as well

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=44674

* [msbuild] Only need to log warnings and errors when ibtool returns error in --link phase

* [msbuild] Don't log empty errors from ibtool

* [msbuild] Moved LogWarningsAndErrors() logic into XcodeCompilerToolTask.Compile()

* [msbuild] Tweak minor glitches

- rc is not needed anymore since we don't *yet* do anything with the error code.
- copy&paste issue on the LogError.
2016-11-16 16:20:51 -05:00
Rolf Bjarne Kvinge c83fa8a9bb [xharness] Fix target selection for simulators on wrench. (#1204) 2016-11-16 19:06:26 +01:00
Rolf Bjarne Kvinge 15b1204874 [xharness] Unify simulator selection code between Jenkins and Wrench and automatically create device pairs if none applicable is found. (#1202)
* [xharness] Don't crash if we can't find a simulator.

* [xharness] Create a device pair if none applicable is found.

* [xharness] Use an enum instead of string values for the target.

* [xharness] Unify the simulator selection code between Jenkins and Wrench.
2016-11-16 15:23:11 +01:00
Rolf Bjarne Kvinge a2570c6b84 [xharness] Improve cleaning by removing saved simulator state and the CoreSimulatorService. (#1203)
Also do this at the very start, to make sure no stale CoreSimulatorService is
around at build time. This will hopefully fix bug #[46097][1].

[1]: https://bugzilla.xamarin.com/show_bug.cgi?id=46097
2016-11-16 15:21:20 +01:00
Rolf Bjarne Kvinge d646d522f3 [xharness] When finding watchos device types, only find the ones that are in available device pairs. (#1198) 2016-11-15 20:20:36 +01:00
Manuel de la Pena aa38ab68ac [Jenkins] Add nuint xml logs (#883)
* [Jenkins] Make test to write output as an xml file so that it can be parsed by the jenkins bot.

* Point to the correct Touvh.Unit repo.

* Use the available property to determine if we are being ran in Jenkins.

* Log where are test results stored.

* Add @MonkeyWrench: prefix.

* Ensure that we do set the build env in jenkins/run-tests.sh

* Do not mix Wrench with Jenkins. The reports in jenkins can be Xml, in Wrench we prefer the old style.

* Ensure that the main node of the unit tests does contain the target, that will improve the tests results reporting.

* Revert "Fix binding project LinkWithAttributes generation to prevent rebuilds" (#1018)

* Added xslt to be used to keep the old Test Reports until we move to only Jenkins reports.

* Add an extra log for the xslt transformation.

* Point to the correcto dir in jenkins.

* Deal with the xslt once we have finished rather than in a batch.

* Remove noise.

* Readd case removed in rebase.

* Fix indentation.

* Skip lock keychain.
2016-11-15 19:04:37 +01:00
Rolf Bjarne Kvinge 7233468538 Bump maccore to get license update. (#1194) 2016-11-15 11:19:47 +01:00
Chris Hamons 441ae8c4ec Merge pull request #1178 from xamarin/xm_fix_touchbar_mess
Re-add touchbar APIs to master, this time with the correct StaticRegistar fix...
2016-11-14 10:59:51 -06:00
Chris Hamons 7004944a6b Fix mmp rebuild logic to detect mmp failures and rebuild (#1149)
- https://bugzilla.xamarin.com/show_bug.cgi?id=46508

Since we were previously looking for the .exe instead of the launcher, mmp
failures would come back as good and we wouldn't rebuild. What we want
to do is look for the native launcher, which we perviously were doing wrong.
2016-11-14 10:58:50 -06:00
Rolf Bjarne Kvinge af08a229e9 [xharness] Show better log names. (#1185) 2016-11-14 16:29:46 +01:00
Rolf Bjarne Kvinge 9979cb1b82 [mtouch] Don't copy mdb files if they haven't changed. (#1182)
This fixes an mtouch test:

```
1) Failed : Xamarin.MTouch.RebuildTest("debug","-sdkroot {2} -v -v -v -v --dev {0} -sdk {3} --targetver 6.0 {1} -r:{4} --cache={5}/cache --debug")
  debug-rebuilt
/var/folders/9t/bhhqghxd4131b5k43v0yk7yc0000gn/T/tmp3fef2cc4.tmp/testApp.app/.monotouch-32/System.dll.mdb is modified, timestamp: 11/12/2016 1:17:59 AM
/var/folders/9t/bhhqghxd4131b5k43v0yk7yc0000gn/T/tmp3fef2cc4.tmp/testApp.app/.monotouch-32/Xamarin.iOS.dll.mdb is modified, timestamp: 11/12/2016 1:17:59 AM
/var/folders/9t/bhhqghxd4131b5k43v0yk7yc0000gn/T/tmp3fef2cc4.tmp/testApp.app/.monotouch-32/mscorlib.dll.mdb is modified, timestamp: 11/12/2016 1:17:59 AM
```
2016-11-14 14:50:08 +01:00
Rolf Bjarne Kvinge 37e0ff839e Merge pull request #1181 from rolfbjarne/mtouch-rebuild-typo
[mtouch] Fix typo in PreBuild directory name.
2016-11-14 14:49:03 +01:00
Rolf Bjarne Kvinge 816fca0fa1 [xharness] Show better log names. 2016-11-14 14:47:23 +01:00
Rolf Bjarne Kvinge cfe8bd5d3a [CoreFoundation] Use ArgumentNullException for argument null exceptions. (#1180) 2016-11-14 13:57:18 +01:00
Rolf Bjarne Kvinge 1f8149ad44 [mtouch] Fix typo in PreBuild directory name. 2016-11-14 13:34:56 +01:00
Rolf Bjarne Kvinge 15b25359c6 [xharness] Determine additional tests to run based on the modified files in a pull request. (#1166)
Example log output when bumping mono:

> Found 1 modified file(s) in the pull request #1161.
>     external/mono
> Enabled 'mtouch' tests because the modified file 'external/mono' matches prefix 'external/mono'
> Enabled 'mmp' tests because the modified file 'external/mono' matches prefix 'external/mono'
> Enabled 'bcl' tests because the modified file 'external/mono' matches prefix 'external/mono'
> Found 1 label(s) in the pull request #1161: cla-already-signed

Or when changing the static registrar:

> Found 1 modified file(s) in the pull request #1164.
>     tools/common/StaticRegistrar.cs
> Enabled 'mtouch' tests because the modified file 'tools/common/StaticRegistrar.cs' matches prefix 'tools/common'
> Enabled 'mmp' tests because the modified file 'tools/common/StaticRegistrar.cs' matches prefix 'tools/common'
> Found 2 label(s) in the pull request #1164: cla-already-signed, run-mmp-tests
> Enabled 'mmp' tests because the label 'run-mmp-tests' is set.
2016-11-14 10:43:35 +01:00
Rolf Bjarne Kvinge 4c7bffc37f [Foundation] Fix compiler warning. (#1169) 2016-11-14 07:29:24 +01:00
Vincent Dondain c76fd77ac0 [msbuild] Don't replace * by bundle id in entitlements (#1147)
- Fixes bug #46298: Xamarin seems to replace asterisk with bundle id in Entitlements.plist file
  https://bugzilla.xamarin.com/show_bug.cgi?id=46298

The CompileEntitlementsTaskBase logic is still good wrt TeamIdentifierPrefix, AppIdentifierPrefix and CFBundleIdentifier
replacements but asterisks that represent wildcards shouldn't be replaced. Note that Apple doesn't do it in Xcode either.

* [msbuild/test] Add CompileEntitlementsTaskTests

Makes sure that for a given Entitlement.xcent and provisioning profile in input and output the right thing.

These tests also cover the changes made in e32efb0310
in response to bug #46298 (https://bugzilla.xamarin.com/show_bug.cgi?id=46298).
2016-11-11 20:18:14 -05:00
Chris Hamons a7126f67aa Revert "Revert "Add support for new TouchBar APIs (#1086)" (#1172)"
This reverts commit abb0449b6c.

_Seriously_ this time. Here's the story:

- TouchBar support was breaking tests in master, even after my static
 registrar fix in 6422000c27
- However, the fix wasn't broad enough, because the TouchBar APIs were
 in Xcode 8.1 as well.
- Confusion on my end (You need latest macOS but not latest Xcode) and
 confusion on others (since there were changes in Xcode 8.2 to touchbar,
 but they were subtractive, caused us to think this needed to go in
 Xcode 8.2
2016-11-11 14:03:03 -06:00
Chris Hamons cc9a99f996 [XM] 10.12.1 APIs are in Xcode 8.1 not 8.2 2016-11-11 14:02:55 -06:00
João Matos ab5cf5cafd [cross] Bump Mono and update the AOT cross offsets generation paths. (#1176)
Following https://github.com/mono/mono/pull/3927 this needs to be updated to work with latest Mono revisions.
2016-11-11 14:24:47 -05:00
Chris Hamons 6422000c27 [XM] Fix static registrar under Xcode 8.2 with another hack (#1164)
- Generalized the hack a bit. If we continue to need them
we can make it more data driven
2016-11-11 13:19:26 -06:00
Rolf Bjarne Kvinge bdd33382c3 [generator] Improve warning about missing [CCallback]/[BlockCallback] attribute. (#1174) 2016-11-11 19:03:17 +01:00
Rolf Bjarne Kvinge 37e59b8457 [mtouch tests] Convert MT1016 and MT1017 tests to use new test syntax and link them. (#1173)
Convert MT1016 and MT1017 to newer test syntax, and at the same time change
them to not disable the managed linker.

For these tests it doesn't matter if they're linked or not, but linking is
much faster (20s vs 82s for both tests).
2016-11-11 19:01:24 +01:00
Chris Hamons abb0449b6c Revert "Add support for new TouchBar APIs (#1086)" (#1172)
This reverts commit 273ab61229.

This should have gone into xcode 8.2 branch and not master.
2016-11-11 11:39:32 -06:00
Rolf Bjarne Kvinge 878f2c527a [tests] Update MT1017 test after 7c6d04f1. (#1170)
In 7c6d04f1 the code to create the NOTICE file was simplified, and the new
implementation is writing to a temporary file and then replacing the existing
file.

This makes the scenario that MT1017 was testing (failure if a readonly NOTICE
file already exists) go away, since we don't write to the existing file
anymore (so the build succeeds).
2016-11-11 17:49:41 +01:00