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

209 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 10890b020c Bump to a mlaunch that hopefully fixes #50419. (#1424)
https://bugzilla.xamarin.com/show_bug.cgi?id=50419
2017-02-17 16:03:40 +01:00
Chris Hamons 2c835c5294 [XM] Add hybrid/standard AOT option and improve AOT code (#1650)
* [XM] Seperate parsing from compilation in AOT code

- Parsing command line options was too entangled with actually compiling
- Refactor test code to centralize Compile, reducing some complexity of tests
- Groundwork for hybrid vs non-hybrid AOT work

* Add hybrid/standard AOT support

* Add xammac_tests to makefile/jenkins

* Add flag to force AOT

* Disable MonoTouchFixtures.Contacts.ContactStoreTest.GetUnifiedContacts on XM due to prompts on Jenkins
2017-02-08 13:40:48 -06:00
Chris Hamons 1db1ce5a40 [XM] Add BCL tests (#1447) 2017-02-01 11:05:08 -05:00
Rolf Bjarne Kvinge 76587376e9 [xharness] Fix code to compile with csc. (#1586) 2017-01-30 10:04:59 +01:00
Rolf Bjarne Kvinge 8b17770d36 [xharness] Make 'IncludeMac' an general switch for all macOS tests. (#1582) 2017-01-27 18:24:10 +01:00
Rolf Bjarne Kvinge 71e61b4b04 [xharness] Always add the mmp test to the list of tests, but mark it as ignored when it shouldn't be executed. (#1580) 2017-01-27 17:02:21 +01:00
Rolf Bjarne Kvinge c0c1136d70 [xharness] Get the INCLUDE_ make variables and disable tests accordingly. (#1578) 2017-01-27 10:52:49 +01:00
Rolf Bjarne Kvinge 92659752df [xharness] No need to run the mac binding projects twice. (#1577) 2017-01-27 10:36:09 +01:00
Rolf Bjarne Kvinge 72080fb320 [xharness] Lines containing 'ghprbPull' are probably not build errors. (#1537) 2017-01-20 10:43:49 +01:00
Rolf Bjarne Kvinge da690aff81 [xharness] Show test xml files in the html report. (#1535)
* [xharness] Show test xml files in the html report.

* [xharness] Force links to xml files to show up in a new top-level window.

Jenkins shows the html report in an iframe, and links will load in that
iframe. This means that the browser renders the contents of the link as if it
was html, and rendering xml as html results in a blank page.

So set the target attribute on links to xml files, so that those xml files
open as top-level pages, and then the browser will rendering the xml like xml.
2017-01-20 10:42:55 +01:00
Rolf Bjarne Kvinge 38261db8ae [xharness] Don't autorefresh the html report if not in server mode. (#1538) 2017-01-20 10:39:24 +01:00
Rolf Bjarne Kvinge 6fe1c9feab [tests] Use a different bundle id for different apps that can be installed on the same device. (#1509)
* [tests] Use a different bundle id for different apps that can be installed on the same device.

* [xharness] Add workaround for radar #29847128.
2017-01-16 18:34:57 +01:00
Rolf Bjarne Kvinge 787c63766e [xharness] Fix generation of today extension projects to work from Xamarin Studio. (#1502)
Minor tweaks to make the solutions/project files usable from the IDE, and not
only the command line.
2017-01-16 16:23:49 +01:00
Rolf Bjarne Kvinge 6a780e76f0 [xharness] Fix today extension's project references. (#1504) 2017-01-16 16:18:53 +01:00
Rolf Bjarne Kvinge 65111d9e83 [xharness] Fix the name of referenced projects in derived projects. (#1503)
System.IO.Path expects unix-style directory separators, but MSBuild expects
window-style directory separators, so make sure to not confuse those.
2017-01-16 16:18:48 +01:00
Rolf Bjarne Kvinge 5f26772e1b [xharness] Add button to hide/show debug log in web page (and default to hidden). (#1490) 2017-01-16 07:32:28 +01:00
Rolf Bjarne Kvinge a02fb1d62e [xharness] Fix log stream handling. (#1494)
Don't create multiple writer streams for the same underlying file, instead
store the writer stream on the log instance, and return it whenever needed.

This fixes an issue where there would be multiple writer streams, which could
cause exceptions when creating more writer streams (access defined errors
because the file is already open).
2017-01-16 07:30:57 +01:00
Rolf Bjarne Kvinge 9f02c44613 [xharness] Add support for using the system's Xamarin.iOS/Xamarin.Mac instead of a locally build one. (#1498)
* [tests] Use the target directory from the loaded configuration.

* [xharness] Find the root directory based on xharness.exe's location (unless specified).

* [tests] Add makefile target to generate test config using the system XI.
2017-01-16 07:24:14 +01:00
Rolf Bjarne Kvinge 0e322fc87c [xharness] Fix test resets, to avoid logs showing up after re-running a test. (#1493) 2017-01-13 18:48:25 +01:00
Rolf Bjarne Kvinge ab997e0a30 [xharness] Remove debug spew. (#1489) 2017-01-13 17:44:57 +01:00
Rolf Bjarne Kvinge a0ac4a8915 [xharness] Improve html formatting of harness exceptions a bit by indenting multi-line messages. (#1491) 2017-01-13 17:44:24 +01:00
Rolf Bjarne Kvinge 660a2fad27 [xharness] Calculate aggregate in the class a field is declared. (#1492) 2017-01-13 16:36:08 +01:00
Rolf Bjarne Kvinge 54bfe2c98a [xharness] Provide better failure message for failing mac tests. (#1482)
* [xharness] Don't copy a ExecutionResult before executing.

The source might be an ignored test, even though the cloned task isn't, so if
we copy the ExecutionResult we might unexpectedly ignore the cloned task.

* [xharness] Provide better failure message for failing mac tests.
2017-01-12 16:32:45 -05:00
Rolf Bjarne Kvinge cf169d43ac [xharness] Improve handling and reporting of unexpected exceptions. (#1480)
Unexpected exceptions are now caught in a more central location
(TestTask.RunInternalAsync), which means it's not necessary to catch
unexpected exceptions in other places (so those catch handlers have been
removed).

Additionally we now set the failure message when such an exception occurs, in
addition to writing the full exception details to a custom log file.
2017-01-12 20:08:42 +01:00
Rolf Bjarne Kvinge 483e067a3e [xharness] Improve a bit how logs are parsed and the results shown. (#1481)
Also find '[FAIL]'s in execution logs (which some mac tests produce) as well.
2017-01-12 19:40:14 +01:00
Rolf Bjarne Kvinge 3693700e17 [xharness] Update where we look for mlaunch. (#1479)
We're shipping mlaunch now, which means we have other file system locations
where it might be.

Also don't look in Xamarin Studio anymore, it will always be an old version,
instead check the system's Xamarin.iOS version.
2017-01-12 15:12:16 +01:00
Rolf Bjarne Kvinge c9d8c0af67 [jenkins] Automatically expand failed tests. 2017-01-09 20:30:11 +01:00
Rolf Bjarne Kvinge c1f4639025 [jenkins] List ignored tests in the list of test states. 2017-01-09 20:28:43 +01:00
Rolf Bjarne Kvinge be129af6da [jenkins] Rework javascript a bit to avoid eval.
`eval` isn't allowed in Jenkin's HTML publisher because of security concerns,
so try to avoid it.
2017-01-09 20:27:52 +01:00
Rolf Bjarne Kvinge fcf98d4d3e [jenkins] Only show the running status if we're in server mode. 2017-01-09 17:03:24 +01:00
Rolf Bjarne Kvinge 697481bda5 [jenkins] Put failed tests at the top of the html report. 2017-01-09 17:03:24 +01:00
Rolf Bjarne Kvinge 8391a3ca39 [xharness] Major rewrite (add server mode, add device support, add today extension support).
* Add a server mode, which launches a web server (and a web page) that can be
  used to interactively run tests and view their results.

* Add support for running test assemblies in a today extension (generating a
  new set of projects, similar to how we generate tvOS/watchOS projects based
  on the iOS project, we now generate a today extension project in addition to
  the tvOS and watchOS projects).

* Load all the different tests (and show them in the html report, although
  they show up as 'ignored'), even for disabled/ignored tests. This makes
  disabled/ignored tests more visible, and also makes it possible to actually
  run them using the embedded web server.

* Add support for running tests on device. Tests will be executed on multiple
  devices simulatenously (any connected devices will be used).
2017-01-05 13:08:48 +01:00
Rolf Bjarne Kvinge 321ac19918 [tests] Move a few template test files around. 2017-01-05 10:42:36 +01:00
Rolf Bjarne Kvinge c30614cd67 [xharness] Find config files based on the given root directory, and not the current directory. (#1441)
Xamarin Studio does funny things with the current directory sometimes when
launching executables, so this makes the behavior more consistent.
2017-01-04 17:05:04 -05:00
Rolf Bjarne Kvinge 4b82398c62 [xharness] Add Jenkins support for mmp regression tests. (#1426) 2017-01-02 19:36:21 +01:00
Rolf Bjarne Kvinge 9e8b43a594 [jenkins] Make jenkins non-parallel to see if it fixes #46097. (#1324)
* [jenkins] Make jenkins non-parellel to see if it fixes #46097.

* [jenkins] Limit serialization to watchos builds.

* [jenkins] Only allow Mac builds to be paralellized.
2017-01-02 16:39:43 +01:00
Rolf Bjarne Kvinge ab21da1b85 [xharness] Add support for uninstalling apps from device. (#1413)
The new error message / number is used in mlaunch.
2017-01-02 08:58:46 +01:00
Rolf Bjarne Kvinge 0d0a1f59eb [xharness] Don't hit the network to load xml files. (#1415) 2017-01-02 08:58:14 +01:00
Rolf Bjarne Kvinge 281f1bbe07 [xharness] Clear XCODE_DEVELOPER_DIR_PATH from the environment. (#1417) 2016-12-24 10:55:51 -05:00
Rolf Bjarne Kvinge 9ffade2b16 [xharness] When a device from a list of multiple device candidates, order them first to make sure we select consistently. (#1401) 2016-12-22 18:55:25 +01:00
Rolf Bjarne Kvinge fe8b6916f0 [xharness] Show better info in process list. (#1365) 2016-12-19 15:18:07 +01:00
Chris Hamons 5ba09748a0 Merge pull request #1344 from xamarin/xcode82-master-hamons
Merge Xcode82 support into master
2016-12-16 13:56:37 -06:00
Chris Hamons ad8c904da8 Bump jenkins test timeout to 20 minutes
- MMP tests were taking consistently longer than 10
2016-12-16 10:57:48 -06:00
Rolf Bjarne Kvinge 1f81e38a1f [jenkins] Try to show a backtrace for processes that time out. (#1358) 2016-12-16 12:24:08 +01:00
Rolf Bjarne Kvinge 27541f055b [xharness] Add Jenkins support for mac binding project tests. (#1320)
* [xharness] Add Jenkins support for mac binding project tests.

* [jenkins] Rework how mac binding projects are tested.

Facts:

* The wrench-mac-binding-project target will clean itself when done: [1]
* The mac-msbuild tests depend on mac-binding-project build artifacts (but
  will build those artifacts automatically if they don't exist when the mac-
  msbuild tests are built).
* Jenkins runs tests in parallel.

Result:

* The mac-msbuild tests may fail if the mac-binding-project tests are run
  concurrently and delete its build artifacts.

Fix:

* Don't call the wrench-mac-binding-project target (which will clean itself),
  instead just run the tests (without cleaning).

[1]: d99212a712/tests/Makefile (L280-L282)
2016-12-08 19:12:52 +01:00
Rolf Bjarne Kvinge 7cc039cd13 [xharness] Add support for running btouch tests. (#1314) 2016-12-08 15:47:36 +01:00
Rolf Bjarne Kvinge 39d903ab66 [tests] Fix framework-test to actually work. (#1297)
* [tests] Fix framework-test to actually work.

* [xharness] Properly replace 'ios' with corresponding platform for paths to our test frameworks as well.

* [framework-test] Fix watchOS build.
2016-12-05 18:35:53 +01:00
Rolf Bjarne Kvinge 33e778bd66 Bump maccore to get new mlaunch. (#1296)
* Bump maccore to get new mlaunch.

A new mlaunch that:

* Should have fewer random failures when launching watchOS apps.
* Supports launching extensions on device.
* Supports uninstalling apps from devices.
2016-12-03 01:53:36 +01:00
Rolf Bjarne Kvinge a4dde7de39 [jenkins] Automatically detect mono bumps and enable device build. (#1298)
* [jenkins] Automatically detect mono bumps and enable device build.

And do this before fetching labels, so that we can skip fetching labels if we
know we're already enabling the device build.

* [tests] Bumping LLVM merits enabling device build and running mtouch + BCL tests.
2016-12-03 01:52:24 +01:00
Sebastien Pouliot 08e8233f39 [test][harness] Fix exception when running tests more than once (#1299)
e.g. running twice

> make run-ios-sim32-introspection

results in

Unhandled Exception:
System.AggregateException: One or more errors occurred. ---> System.IO.IOException: /Users/poupou/git/master/xamarin-macios/tests/logs/exec-ios-sim32-introspection/iPhone 5.log already exists
  at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x001bd] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/File.cs:109
  at System.IO.File.Copy (System.String sourceFileName, System.String destFileName) [0x00000] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/File.cs:69
  at xharness.CaptureLog.StopCapture () [0x00019] in /Users/poupou/git/master/xamarin-macios/tests/xharness/Log.cs:252
2016-12-03 01:51:00 +01:00