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

5606 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 4e3dec7894 Merge remote-tracking branch 'origin/master' into mono-2018-08 2018-11-27 19:10:48 +01:00
Rolf Bjarne Kvinge e8d780229b
[mmp] Set DEVELOPER_DIR to our Xcode. (#5187)
This makes it possible to build mmp (the partial static registrar code) with
the wrong system Xcode (which is not supported, but that doesn't mean we can't
try to make it mostly work to ease our lives).

I tried this in the xcode9 branch (PR #2588), and it didn't stick after the
xcode9 branch was merged to master.

I tried again a year later with the xcode10 branch (PR #4691), and once again
the commit didn't stick after the xcode10 branch was merged to master.

So now I'm trying to get this directly into master instead.

Let's see if it's still there when we branch for xcode11 next year...
2018-11-27 18:09:17 +01:00
Rolf Bjarne Kvinge 8618db251c
[xharness] Show device/simulator loading in progress in the web UI. (#5186) 2018-11-27 17:02:39 +01:00
Rolf Bjarne Kvinge 943e7eafd5
[xharness] Add support for stopping queued tasks in the web UI. (#5185) 2018-11-27 14:59:44 +01:00
Sebastien Pouliot acf8357ece [macos] Fix Constants.mac.cs.in for backward compatibility (#5181)
On macOS the path changes are forward but not backward compatible.

This means we need to keep older values, as they will work on newer OS,
while the new path won't work (on older OS).

The test are updated to add exceptions for such cases - in order to
give us a better chance to spot typos (since they were some).

This should fix
https://github.com/xamarin/maccore/issues/1174
https://github.com/xamarin/maccore/issues/1175
https://github.com/xamarin/maccore/issues/1176
https://github.com/xamarin/maccore/issues/1177
2018-11-27 14:34:47 +01:00
Rolf Bjarne Kvinge 428310c181 [mtouch] Clear the MONO_THREADS_SUSPEND environment variable before calling the AOT compiler. Works around mono/mono#11765.
Visual Studio for Mac may set MONO_THREADS_SUSPEND, and this ends up confusing
the AOT compiler when compiling for watchOS.

So unset the environment variable before calling the AOT compiler.

Works around https://github.com/mono/mono/issues/11765.
2018-11-27 12:06:12 +01:00
Sebastien Pouliot eb8b4f0db7
Bump mono to head of 2018-06 (#5177)
Commit list for mono/mono:

* mono/mono@b63e5378e3 [2018-06][ios] fix path for llvm invocation (#11737)

Diff: bb3ae37d71...b63e5378e3
2018-11-26 15:21:01 -05:00
Rolf Bjarne Kvinge 23b7847066 Merge remote-tracking branch 'origin/master' into mono-2018-08 2018-11-26 08:05:36 +01:00
Sebastien Pouliot 930e37232f
[tests][intro] Fix CoreImage location check for older macOS versions (#5176)
addendum to https://github.com/xamarin/xamarin-macios/pull/5159

failure on internal bots 4f1c39a00f (commitcomment-31401007)
2018-11-23 18:25:31 -05:00
Sebastien Pouliot db4e24e99f
Revert "Mono 5.16.0.87+ breaks us, so make sure we don't use it for now. (#5088)" (#5175)
This reverts commit 1ca7da537d.

This is fixed so the restriction is not needed anymore.
2018-11-23 15:19:15 -05:00
Rolf Bjarne Kvinge ecb1081e23
[jenkins] Fix path to api diff in commit comment. (#5173) 2018-11-23 16:23:03 +01:00
Rolf Bjarne Kvinge 2e754a2f70
[xibuild] Build the expected configuration. (#5172) 2018-11-23 16:22:14 +01:00
Manuel de la Pena 61b2038b3d
[Xharness] Add a workaround to not build the xunit tests when not needed. (#5156)
* [Xharness] Add a workaround to not build the xunit tests when not needed.

This is a workaround that does not use reflection to build the bcl test
projects. We need this until we have complete support of using mono as
an SDK.
2018-11-23 16:02:15 +01:00
Sebastien Pouliot 4f1c39a00f
[tests] Add introspection tests for Constants.*.cs.in. Fixes #5047 (#5159)
* Fix mac classic build
* Fix mac 32 bits (can't load 64bits only libraries)
* Check paths too leading to fixes to old (now incorrect) paths and typo
* apitest (Mac) has a similar test - but assumed that a file that did not exists was fine (missing typos and changes);
* tvOS simulator does not (unlike iOS) support loading the MetalPerformanceShaders.framework

reference: https://github.com/xamarin/xamarin-macios/issues/5047
2018-11-22 13:24:55 -05:00
Rolf Bjarne Kvinge b059252473
[jenkins] If provisioning fails with error 56, try again a few more times. Fixes maccore#1098. (#5168)
It seems curl can randomly fail with error 56, so if that happens, try again a
few more times before giving up.

Fixes https://github.com/xamarin/maccore/issues/1098.
2018-11-22 10:42:24 -05:00
Rolf Bjarne Kvinge 94d87ddba6
[jenkins] Don't execute the packaged XM tests on the main macOS version. (#5165)
* [jenkins] Don't execute the packaged XM tests on the main macOS version.

Don't execute the packaged XM tests on the main macOS version, since it's redundant.

It also prevents a potential test deadlock if all main bots are busy.

* Rework to make it show better in the Jenkins UI.
2018-11-21 12:21:57 -05:00
Rolf Bjarne Kvinge 02fe5339a4
[runtime] Clean up public symbols. Fixes #5124. (#5155)
* [runtime] Clean up public symbols. Fixes #5124.

Clean up public symbols, by:

* Symbols that don't need to be public (most of them), can be private.
* Prefix all public symbols with `xamarin_`.
* Add a test to ensure we don't introduce new public symbols.
* Use C symbols instead of mangled C++ symbols, since those are easier to
  handle in the test.

This minimizes the chance of getting into a symbol clash with another native library.

Fixes https://github.com/xamarin/xamarin-macios/issues/5124.

* Some test fixes.
2018-11-21 11:48:15 -05:00
Rolf Bjarne Kvinge 6f54cb7c28
Bump maccore to get fix for test-docs. (#5163)
* Bump maccore to get fix for test-docs.

Commit list for xamarin/maccore:

* xamarin/maccore@6e9b63e537 Merge pull request #1162 from rolfbjarne/docfixer-fixes
* xamarin/maccore@4cf1d63b7b [docfixer] Create project files and fix a few issues. Fixes #1118.
* xamarin/maccore@714bd73a55 [docfixer] Avoid declaring the same target twice.
* xamarin/maccore@34f4bfa339 [populate] Directories need to call Directory.Exists for existence checks.
* xamarin/maccore@341333db88 [docs] Remove truly ancient and outdated targets to publish updated docs.

Diff: 7ba9c5a962...6e9b63e537

* [jenkins] Make it possible to force docs testing by applying a label to pull requests.
2018-11-21 10:11:55 -05:00
Rolf Bjarne Kvinge 37cd57219c
[tests] Use xibuild when building packaged XM tests. Fixes maccore#1169. (#5164)
Fixes https://github.com/xamarin/maccore/issues/1169.
2018-11-21 09:59:10 -05:00
Manuel de la Pena 3618cefc5a
[Harness] Reduce the noise in the make files. Fixes xamarin/maccore#1156 (#5154)
* [Harness] Reduce the noise in the make files.

The Makefile.cs code generates a lot of noise becuase it tries to build
a make rule for the new BCL tests, these rules do not work and can be
ignored.

Fixes issue: https://github.com/xamarin/maccore/issues/1156
2018-11-21 13:28:06 +01:00
Rolf Bjarne Kvinge abbc4698d6
[jenkins] Improve failure reporting slightly by listing 'Test docs' and 'Test run' as failing stages in the commit comment. (#5150) 2018-11-21 01:45:39 -05:00
Rolf Bjarne Kvinge 6289d941d2
Bump maccore to get provisioning profile fix. (#5160)
Commit diff for xamarin/maccore:

Diff: 278d0e0c98...7ba9c5a962
2018-11-21 01:09:18 -05:00
Rolf Bjarne Kvinge f91e8fb811
Use a full path to xibuild. (#5140)
* Use a full path to xibuild.

Use a full path to xibuild everywhere, since it's easier than making sure PATH
is correct every time we want to invoke xibuild.

Also remove the xbuild-in-place script, it's not used anymore.

* Fix xibuild path lookup.

* [xammac_tests] Remove unneeded csproj changes.
2018-11-20 12:14:16 -05:00
Rolf Bjarne Kvinge 74b966e403 Merge remote-tracking branch 'origin/master' into mono-2018-08 2018-11-20 13:08:41 +01:00
Rolf Bjarne Kvinge 50bb4912e1
Revert "[xharness] Only build the BCL tests when we need them. (#5139)" (#5149)
This reverts commit 7277bbcd2b, it breaks building & running the new BCL tests.
2018-11-20 07:06:37 -05:00
Rolf Bjarne Kvinge 5761691c21
[jenkins] Fix slack reporting, and make it more resilient against failures. Fixes maccore#1160. (#5142)
* [jenkins] Fix getting author name+email for Slack reporting.

* [jenkins] Make slack reporting more resilient against failures. Fixes maccore#1160.

Fixes https://github.com/xamarin/maccore/issues/1160.
2018-11-20 02:55:57 -05:00
Aaron Bockover 9c028036b4 The NSBackingStore enum is not deprecated (#5144) 2018-11-20 02:54:19 -05:00
Rolf Bjarne Kvinge 5c71a9fe25 [ImageCaptureCore] Remove redundant availability attribute. 2018-11-20 08:41:36 +01:00
Rolf Bjarne Kvinge e6035b26b4 Merge remote-tracking branch 'origin/master' into mono-2018-08 2018-11-20 08:39:53 +01:00
Chris Hamons dd75eedacf [codeowners] Add chamons to a few areas (#5147) 2018-11-19 22:20:40 -05:00
Rolf Bjarne Kvinge 163059c19b Build xibuild before mlaunch, since mlaunch needs xibuild to build. (#5143) 2018-11-19 14:28:16 -05:00
Rolf Bjarne Kvinge ee347845ef Merge remote-tracking branch 'origin/master' into mono-2018-08 2018-11-19 17:46:10 +01:00
Rolf Bjarne Kvinge ecfe54a814
Bump maccore to get mlaunch build fix. (#5141)
Commit list for xamarin/maccore:

* xamarin/maccore@278d0e0c98 [mlaunch] Fix mlaunch build by using xibuild. (#1159)

Diff: e73094e632...278d0e0c98
2018-11-19 11:45:32 -05:00
Marek Safar ece0324f35 Merge remote-tracking branch 'origin/master' into mono-2018-08 2018-11-19 16:57:18 +01:00
Marek Safar 3ef12240ce Fixes building mono tests 2018-11-19 16:53:46 +01:00
Rolf Bjarne Kvinge 7277bbcd2b
[xharness] Only build the BCL tests when we need them. (#5139)
Only build the BCL tests when we need them, because we can't build them when
we're running the device tests (because we don't have a built source tree in
that case).

Since the test assemblies are required when generating the BCL projects, this
means we also delay creating the BCL projects until we need them.
2018-11-19 09:07:35 -05:00
Marek Safar e94ac22ba1 Merge remote-tracking branch 'origin/master' into mono-2018-08 2018-11-19 14:04:38 +01:00
Bernhard Urban f15233f3db [tests] enable msorlib with interpreter (#5122) 2018-11-19 07:18:12 -05:00
Marek Safar 8578b9d2c8 Merge remote-tracking branch 'origin/master' into mono-2018-08 2018-11-19 10:11:17 +01:00
Jeffrey Stedfast 530f848ac9 [msbuild] Fixed compilation of SceneKit assets in library projects (#5130)
The problem is that AppBundleDir never gets defined for library projects.

Luckily, _AppBundleName and AppBundleExtension are always defined and
all we need is the directory name (i.e. MyApp.app), so this will work
just fine.

Fixes issue #5129
2018-11-18 16:35:02 -05:00
Bernhard Urban 74b3233be3 Bump to mono:2018-06 (#5136)
Commit list for mono/mono:

* mono/mono@bb3ae37d71 [interp] attempt to intrinsify again after a method is resolved regarding generics (#11715)
* mono/mono@78eb5303e8 [2018-06] [aot] image is usable without debug flag when interpreter is used (#11711)
* mono/mono@54cc205dd9 [2018-06] [crash] Remove duplicated il_offset (#11703)
* mono/mono@279ac406e7 [2018-06] [runtime] Fix the size calculation in mono_debug_add_method (). (#11686)
* mono/mono@1ac52d1827 [2018-06] [llvm] bump for armhf callingconv fix (#11610)

Diff: eee1d634e8...bb3ae37d71
2018-11-18 16:34:06 -05:00
Alex Soto 265c46b91b
[QuickLook] Add [ThreadSafe] to `QLThumbnailReply` and `QLFileThumbnailRequest` (#5119)
`QLThumbnailReply` and `QLFileThumbnailRequest`  members are called
from a background thread within `QLThumbnailProvider` extension
so our check on `UIApplication.EnsureUIThread ()` is not needed.

Fixes xamarin/xamarin-macios#5117
2018-11-17 23:08:09 -05:00
Rolf Bjarne Kvinge f8a254d628 Merge remote-tracking branch 'origin/master' into mono-2018-08 2018-11-16 14:26:50 -05:00
Ankit Jain f865694f86 Move tests to use new tool xibuild and thus fix msbuild tests (#5128)
* xibuild: New wrapper tool to run msbuild or managed executables

MSBuild supports fallback paths for projects imported using
`$(MSBuildExtensionsPath)`, but these must be specified explicitly in
the app.config of the main executable. There was a PR to allow use of
properties for this in the app.config, but that was not accepted
upstream.

This is required for being able to:

1. build projects with msbuild against the in-tree XI/XM build output
2. and to run nunit tests against the same.

For this we introduce a new tool, `xibuild`, based on XA's `xabuild`.
This supports the fallback paths to be specified via the environment variable
`MSBuildExtensionsPathFallbackPathsOverride`[1].
It essentially operates in 3 modes:

1. `xibuild -c /path/to/foo.exe`
	Generates /path/to/foo.exe.config with the fallback paths inserted into that.

2. `xibuild -- /v:diag /path/to/project.csproj`
	Runs msbuild with the arguments after `--` with a custom app.config based on
	`MSBuild.dll.config`, with the fallback paths correctly inserted.
	This is in a temporary file and the original config file is not touched.

3. `xibuild -t -- /path/to/managed_tool.exe args`
	Generates `/path/to/managed_tool.exe.config` based on `MSBuild.dll.config` with
	the fallback paths inserted, and runs `managed_tool.exe` with the arguments.
	The default is to overwrite the config file.
	But there is also a switch to merge it with an existing config file.

--
1. Value of the environment variable $MSBuildExtensionsPathFallbackPathsOverride
is prepended to any existing list of search paths in `MSBuild.dll.config`, IOW,
it takes precedence. So, the order of lookup becomes:

  - Value of the property `$(MSBuildExtensionsPath)`
  - Value of the environment variable `$MSBuildExtensionsPathFallbackPathsOverride`
  - /Library/Frameworks/Mono.framework/External/xbuild on macOS

* Integrate use of `xibuild` with the tests

Update all uses of `msbuild` and invocations of tools like nunit that
might depend on using the in-tree builds to use `xibuild`.

* xibuild: Move help descriptions to OptionSet itself.
2018-11-16 14:24:35 -05:00
Manuel de la Pena 505006952c
[Tests] Add a new iOS app to run the xunit and nunit tests (#4914)
Mono know provides a set of testing assemblies that contain the tests to be ran in each of the supported platforms. This commit adds the following:

1. Two different runners that can be used to execute NUnit and xUnit tests.
2. The necessary  glue to get xharness to run the new tests and report the results.
3. A new test that will ensure that if mono adds new tests, xharness will report failures if the tests are not run or not ignored.
2018-11-16 13:31:40 -05:00
Jeffrey Stedfast 6ebf136073
[msbuild] Pass ProjectGuid and ProjectTypeGuids to Archive task (#5118)
This is part of https://devdiv.visualstudio.com/DevDiv/_workitems/edit/705977
2018-11-15 17:13:27 -05:00
Chris Hamons e91ba9f93a
[mmp] Fix typo (#5123)
- https://github.com/xamarin/xamarin-macios/issues/5121
2018-11-13 17:56:05 -05:00
Chris Hamons d248cb6007
Remove some [Sealed] in XAMCORE_4_0 where not necessary (#5108)
- Added in 7d88592 but in XAMCORE_4_0 we don't need it since the "bad" binding won't be there.
2018-11-12 14:51:35 -06:00
Chris Hamons bacfa4e05c
[mac] Remove unnecessary PostSnippet and backing fields (#5101)
- https://github.com/xamarin/xamarin-macios/issues/3543
2018-11-09 16:01:15 -06:00
Bernhard Urban b53086fd0b Bump to mono:2018-06 (#5115)
Commit list for mono/mono:

* mono/mono@eee1d634e8 [ios] remove DISABLE_POLICY_EVIDENCE (#11580)

Diff: 4d7b7ab375...eee1d634e8
2018-11-09 16:54:29 -05:00