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

2539 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge e8fbb7f0a6 [tests][mtouch] There's no need to delete a temporary directory we create ourselves. (#1711)
Deleting the directory when the test completes just makes it harder to copy-
paste the failing command.

Any directories created by Cache.CreateTemporaryDirectory will automatically
be deleted at the next test run, so this won't use up disk space.
2017-02-17 16:01:05 +01:00
Rolf Bjarne Kvinge cf14456cd5 [mtouch] Add docs and improve MT4146 to be an error if we can detect the generated code won't compile. Fixes #52530. (#1712)
https://bugzilla.xamarin.com/show_bug.cgi?id=52530
2017-02-17 16:00:53 +01:00
Sebastien Pouliot eb415136d0 [gamecontroller] Change some handlers to properties (#1710)
In the old days we could only set them (but not read them back) so we
used methods. Today it's possible to expose them as nicer properties.

Even nicer Alex's PR#1707 makes it possible to do those changes without
needing any manual code (outside of the binding file).

reference:
!missing-selector! GCControllerButtonInput::pressedChangedHandler not bound
!missing-selector! GCControllerButtonInput::valueChangedHandler not bound
!missing-selector! GCMotion::valueChangedHandler not bound
2017-02-17 08:37:39 -05:00
Rolf Bjarne Kvinge 6e90f92773 [mtouch] Rename a few variables to make them clearer. 2017-02-17 10:20:30 +01:00
Rolf Bjarne Kvinge cdb2e386e4 [docs] Improve code sharing documentation. 2017-02-17 10:17:00 +01:00
Rolf Bjarne Kvinge 9518477412 [mtouch] Remove duplicated code. 2017-02-17 10:16:59 +01:00
Rolf Bjarne Kvinge 07127a76ca [mtouch] Make code sharing failures real warnings. 2017-02-17 10:16:51 +01:00
Rolf Bjarne Kvinge c1f87393ae Merge remote-tracking branch 'origin/master' into framework-sdk 2017-02-17 10:16:41 +01:00
Alex Soto a021c0cd3c [generator] Have WrapAttribute generate virtual members (#1707)
* [generator] Have WrapAttribute generate virtual members

WrapAttribute now has a boolean optional parameter named isVirtual,
this instructs the generator to add the virtual keyword to generated
members.

This is useful when fixing breaking changes so we can keep the wrong
signature generated instead of having manual code files.

* [docs] Add docs about virtual to WrapAttribute
2017-02-16 17:24:40 -06:00
Alex Soto 61c72afd78 Fix Bug 51514 - [generator] Missing [Wrap] from protocol/interface when parent has a [Wrap] itself (#1708)
https://bugzilla.xamarin.com/show_bug.cgi?id=51514

The generator used a list of strings (selector names) to determine
what methods are needed to be generated. Unfortunately this info
is not available (null) when looking for it on [Wrap] decorated members
so it would only generate the first [Bind] it would find. Now it uses
a HashSet of MemberInformation objects to compare.

The removal of SCNView.HitTest inside scenekit.cs was done because
this is now correctly generated from SCNSceneRenderer interface
2017-02-16 17:19:40 -06:00
Sebastien Pouliot a4af7e5878 [mono] Bump mono for: [jit] Disable llvm for overly complex methods, to avoid compilation slowdowns. Fixes #52475. (#1698)
https://bugzilla.xamarin.com/show_bug.cgi?id=52475
2017-02-15 19:05:42 -05:00
Rolf Bjarne Kvinge 72ec3ad168 [mtouch/mmp] Add support for --nowarn and --warnaserror. (#1689)
Besides the obvious reasons, this is also useful when testing warnings, since
by making warnings errors, mtouch/mmp will exit a lot faster (and the tests
will finish faster).
2017-02-14 17:46:26 +01:00
Alex Soto 80e0620155 [AVFoundation] Add BindAs to fix bug 44015 & 48235 (#1683)
https://bugzilla.xamarin.com/show_bug.cgi?id=48235
https://bugzilla.xamarin.com/show_bug.cgi?id=44015

* Adding BindAs to AVCaptureVideoDataOutput.AvailableVideoCVPixelFormatTypes
* Adding BindAs to AVCapturePhotoOutput.SupportedFlashModes

Both only if XAMCORE_4_0 ever happens
2017-02-13 19:36:07 -06:00
Rolf Bjarne Kvinge a1245c8db6 [generator] Generate the list of frameworks in each platform based on the information in the makefiles. (#1687)
Generate the list of frameworks in each platform based on the information in
the makefiles and use that information to remove the remaining framework-
specific ifdefs in the generator.

There are still platform-specific checks when determining the UINamespaces and
ImplicitNamespaces, to make sure the generated code doesn't change. Ideally
we'll remove the platform-specific logic at some point, but that's not the
goal with this commit.

Generator diff: https://gist.github.com/rolfbjarne/6803740e37a5976e139afb28e16b4ccf
The generated generator-frameworks.cs: https://gist.github.com/rolfbjarne/6d1a3452db4cecb8f163c4d91d622082
2017-02-13 18:01:16 +01:00
Rolf Bjarne Kvinge 916a29accd [mtouch] Copy libprofiler-log.dylib to watch extensions.
Currently we don't put anything in the container watch app, which means we
need to put libprofiler-log.dylib in the watch extension itself.
2017-02-13 17:20:14 +01:00
Rolf Bjarne Kvinge 75c038fcd3 [mtouch] Disallow code sharing if bitcode options are different. 2017-02-13 15:51:10 +01:00
Rolf Bjarne Kvinge 68fe70f317 [tests][msbuild] Enable bitcode for tvOS/Release builds. 2017-02-13 15:42:14 +01:00
Zoltan Varga 884c86befd [mmp] Apply the changes in dea2dde259 to the mscorlib.xml descriptor in mmp as well. Fixes #52186. (#1685) 2017-02-13 10:16:42 +01:00
Rolf Bjarne Kvinge db34d0969a [xharness] Cache log parsing.
Cache the result of log parsing. This avoids re-reading gigabytes of log files
every second when the web page requests an updated version of the report.
2017-02-13 08:49:01 +01:00
Rolf Bjarne Kvinge 6079a013d2 [xharness] Clean better.
Clean better by cleaning project references as well.
2017-02-13 08:48:19 +01:00
Rolf Bjarne Kvinge 4a0ffa3110 [mtouch tests] Refactor registrar tests a little bit to not cause trouble in Xamarin Studio. (#1679)
Change how the registrar calls mtouch a bit, so that we don't use API that
throws an exception with the entire output in the exception message.

The problem is that if the process has a lot of output, XS slows down to a
crawl when showing the exception message in the test result pad.

Instead print the output to the terminal.
2017-02-10 18:24:37 +01:00
Rolf Bjarne Kvinge d3137d0b95 [tests/link sdk] Fix watchOS version check. (#1678)
* [tests/link sdk] Remove defines that are set by default.

And these defines varies by platform, which means they're not correct for tvOS/watchOS.

* [tests/link sdk] Fix watchOS version check.
2017-02-10 18:22:46 +01:00
Rolf Bjarne Kvinge abc138a3da [generator] Explicitly load NSNumber from the api assembly for core builds. (#1676)
* [generator] Explicitly load NSNumber from the api assembly for core builds.

This fixes an issue where we'd run into a type comparison failure otherwise,
when using the `BindAs` attribute in the api definition for our platform
assemblies, because we end up with NSNumber loaded from two different
assemblies:

Foundation.NSNumber, **temp**, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null

Foundation.NSNumber, **core**, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null

* [generator] Explicitly load NSValue too from the api assembly for core builds.
2017-02-10 17:32:46 +01:00
Rolf Bjarne Kvinge 4917950327 [mtouch tests] Refactor registrar tests a little bit to not cause trouble in Xamarin Studio.
Change how the registrar calls mtouch a bit, so that we don't use API that
throws an exception with the entire output in the exception message.

The problem is that if the process has a lot of output, XS slows down to a
crawl when showing the exception message in the test result pad.

Instead print the output to the terminal.
2017-02-10 16:39:39 +01:00
Rolf Bjarne Kvinge b28899d89f [tests] Explicitly state the resource name for resources.
This makes it easier for our project-file processing/duplication to get it
right.
2017-02-10 16:39:38 +01:00
Rolf Bjarne Kvinge fd721e05a9 [xharness] Protect against null reference exceptions. 2017-02-10 16:39:38 +01:00
Rolf Bjarne Kvinge fcb0d18cc7 [msbuild tests] Make the MyTVServicesExtension project actually work. 2017-02-10 16:39:38 +01:00
Rolf Bjarne Kvinge 23a1bd0a13 [msbuild tests] Make it possible for MyTVApp and MyTVServicesExtension to share code. 2017-02-10 16:39:37 +01:00
Rolf Bjarne Kvinge d725d5fb63 [msbuild] Add the MyTVServicesExtension project to the solution where it's needed. 2017-02-10 16:39:37 +01:00
Rolf Bjarne Kvinge c3c6f5cbeb [msbuild tests] Add more potential directories where assemblies might be. 2017-02-10 16:39:37 +01:00
Rolf Bjarne Kvinge 0df7211b95 [tests/link sdk] Remove defines that are set by default.
And these defines varies by platform, which means they're not correct for tvOS/watchOS.
2017-02-10 16:39:37 +01:00
Rolf Bjarne Kvinge 83cbd20c3c [xharness] Can't select/deselect started tests. 2017-02-10 16:39:36 +01:00
Rolf Bjarne Kvinge 93ff19dcf8 [tests] Port today extension test template to F#. 2017-02-10 16:39:36 +01:00
Rolf Bjarne Kvinge d550328f3f [tests/link sdk] Fix watchOS version check. 2017-02-10 16:39:36 +01:00
Rolf Bjarne Kvinge 9c745aa148 [tests] Add extra linker defs for the link sdk today extension tests. 2017-02-10 16:39:35 +01:00
Rolf Bjarne Kvinge fb8a1ca37f [xharness] Improve html report a little bit. 2017-02-10 16:39:35 +01:00
Rolf Bjarne Kvinge f62a3ec0cd [xharness] Remove code duplication. 2017-02-10 16:39:35 +01:00
Rolf Bjarne Kvinge c4a3f695b0 [xharness] Rename extension logs to say they're extension logs. 2017-02-10 16:39:35 +01:00
Rolf Bjarne Kvinge 8cf456cd0e [xharness] Encode links better. 2017-02-10 16:39:34 +01:00
Rolf Bjarne Kvinge 3f7f1354f2 [xharness] Tweak html report a little bit. 2017-02-10 16:39:34 +01:00
Rolf Bjarne Kvinge 789beb9a3e [xharness] Clean device projects after running them.
Device projects can take up *a lot* of disk space.
2017-02-10 16:39:34 +01:00
Rolf Bjarne Kvinge ff4db020e6 [xharness] Parse crash logs to determine crash reason and report it accordingly. 2017-02-10 16:39:33 +01:00
Rolf Bjarne Kvinge 9d8ce86e4c [tests] Ignore tests correctly in today extensions. 2017-02-10 16:39:33 +01:00
Rolf Bjarne Kvinge 9d3f4da6f2 [xharness] Process "$(ProjectDir)" in mtouch extra args when cloning project files. 2017-02-10 16:39:33 +01:00
Rolf Bjarne Kvinge 90d8b0b29c [xharness] Resolve HintPaths to their real location when cloning project files. 2017-02-10 16:39:32 +01:00
Rolf Bjarne Kvinge 816a62a64b [mtouch] A fat container app with a non-fat appex is allowed and not a problem. 2017-02-10 16:39:32 +01:00
Rolf Bjarne Kvinge fd8c09ecb8 [mtouch] Remove the Application.FastDev property, it's never set anymore. 2017-02-10 16:39:32 +01:00
Rolf Bjarne Kvinge 751bc53a27 [xharness] Add web ui to select/deselect/run specific sets of tests. 2017-02-10 16:39:31 +01:00
Rolf Bjarne Kvinge 4f92eb1365 [xharness] Remove duplicated code. 2017-02-10 16:39:31 +01:00
Rolf Bjarne Kvinge 9d672e86ce [xharness] Make the top-level test names identical between iOS and Mac.
Make the top-level test name for equivalent tests between iOS and Mac have the
same name, so that these tests are grouped together.

For instance: we used to have a System-Mac tests and System tests (the latter
being iOS tests), now there are just System tests, and nested inside are both
the Mac and iOS System tests.
2017-02-10 16:39:31 +01:00