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

54 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge cf2d43e85c [xharness] Create a file if it doesn't exist when creating a writer for a log file. (#332) 2016-06-30 02:39:33 -07:00
Rolf Bjarne Kvinge 74312ec77c [xharness] Collect and report crash reports for Xamarin.Mac tests. (#316) 2016-06-29 09:21:03 -07:00
Rolf Bjarne Kvinge 610ef84d37 [xharness] Fix result propagation. (#321) 2016-06-29 07:50:02 -07:00
Rolf Bjarne Kvinge 1080164506 [jenkins] Fail if test run fails. (#245)
* [jenkins] Fail if test run fails.

* [xharness] Fix success check.
2016-06-29 03:23:26 -07:00
Rolf Bjarne Kvinge 0636832673 [xharness] Run watchOS tests on jenkins. (#313) 2016-06-29 01:48:53 -07:00
Rolf Bjarne Kvinge dff594bb5a [xharness] Add the XI MSBuild tests to the jenkins test run. 2016-06-29 00:06:35 +02:00
Rolf Bjarne Kvinge d91258fb32 [xharness] Simplify non-grouped tasks in the html report a little bit. 2016-06-29 00:06:31 +02:00
Rolf Bjarne Kvinge fb607bef03 [xharness] Rename variable to fix compiler warning. (#308)
Fixes this warning:

    SimpleHttpListener.cs(12,8): warning CS0108: `xharness.SimpleHttpListener.connected' hides inherited member `xharness.SimpleListener.connected'. Use the new keyword if hiding was intended
2016-06-28 17:13:36 -04:00
Rolf Bjarne Kvinge cc8a1bd07b [xharness] Fix boolean logic for skipping simulator setup. (#305) 2016-06-28 13:34:29 -04:00
Rolf Bjarne Kvinge d32b7746c5 [xharness] Protect against duplicated connected/finished notifications. (#301) 2016-06-28 08:20:07 -07:00
Rolf Bjarne Kvinge 3bf7b92d88 [xharness] Give permissions to watchkit apps as well. (#296)
* [xharness] Only execute sqlite3 once.

* [xharness] Give permissions to watchkit apps as well.
2016-06-28 07:04:10 -07:00
Rolf Bjarne Kvinge 0d2d6e36b1 [xharness] Don't prepare simulator for tests that didn't build. (#297) 2016-06-28 07:03:40 -07:00
Rolf Bjarne Kvinge 613fb2118c [jenkins] Skip mmptest to see if it'll speed up the test run on jenkins. (#248) 2016-06-28 13:05:00 +02:00
Rolf Bjarne Kvinge 455c741820 [xharness] Try to bump the launch timeout to 3 minutes. 2016-06-28 13:04:56 +02:00
Rolf Bjarne Kvinge 85d94face2 [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-28 13:04:52 +02:00
Rolf Bjarne Kvinge c355cf91be [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-28 13:04:47 +02:00
Rolf Bjarne Kvinge 61485522d4 [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-28 13:04:41 +02:00
Rolf Bjarne Kvinge a59a762e84 [xharness] Download mlaunch if we don't have a local copy. 2016-06-28 13:04:10 +02:00
Rolf Bjarne Kvinge 1e6be7f547 [xharness] Add a few more variables to control what to include in a test run. 2016-06-28 13:02:21 +02:00
Rolf Bjarne Kvinge c98cc1dc19 [xharness] Ignore ignored tests when deciding which color to use for a group of tests. 2016-06-28 13:02:16 +02:00
Rolf Bjarne Kvinge 1a48c36efd [xharness] When capturing the system log for simulator runs, don't capture contents of the log from before our test run starts. 2016-06-28 13:02:12 +02:00
Rolf Bjarne Kvinge fa33176ba8 [xharness] Cleanup must be done by the last test, not the first test. 2016-06-28 13:02:09 +02:00
Rolf Bjarne Kvinge 93f0b92eac [xharness] iPhone 4s doesn't exist anymore, use iPhone 5 instead. 2016-06-28 13:02:03 +02:00
Rolf Bjarne Kvinge c09c74dba5 [xharness] Improve html report a bit when some tests are ignored. 2016-06-28 12:59:54 +02:00
Rolf Bjarne Kvinge ab7bd56e63 [xharness] Add a few variables to control if to include iOS/Mac tests in jenkins test mode. 2016-06-28 12:59:50 +02:00
Rolf Bjarne Kvinge a7b20c1a43 [xharness] Fix emptyness check. 2016-06-28 12:59:42 +02:00
Rolf Bjarne Kvinge 3a825fc5e0 [xharness] Improve watching objects in the debugger. 2016-06-28 12:59:36 +02:00
Sebastien Pouliot ddc3a56e68 [tests][harness] Add kTCCServiceMediaLibrary to avoid privacy popup (#230)
Running some API without permission can crash some tests.
2016-06-28 12:59:25 +02:00
Rolf Bjarne Kvinge 833ea3fc8b [xharness] Fix name of referenced projects. 2016-06-27 13:07:37 +02:00
Rolf Bjarne Kvinge 278550795e [xharness] Fix simulator validation check to not fail when it shouldn't. (#265) 2016-06-24 01:03:36 -07:00
Rolf Bjarne Kvinge 70747b3317 [xharness] Fix logdirectory path to use correct directory separator. (#210) 2016-06-15 22:05:12 -07:00
Rolf Bjarne Kvinge 64bc391669 [xharness] Fix NRE when running from the command line. (#207)
* [xharness] Log simulator loading and handle any exceptions.

* [xharness] Add missing tests.

* [xharness] Throw a helpful exception instead of NRE when a simulator can't be found.

* [xharness] Fix null reference exception.
2016-06-15 18:57:47 -07:00
Rolf Bjarne Kvinge 15a5af3342 [xharness] Exclude bcl tests by default. 2016-06-15 10:51:14 -07:00
Rolf Bjarne Kvinge a5f5a76cc0 [xharness] Try and fix some strange file sharing exceptions. 2016-06-15 10:51:14 -07:00
Rolf Bjarne Kvinge 126de6836a [xharness] Use full path to mdtool. 2016-06-15 10:51:14 -07:00
Rolf Bjarne Kvinge 0910cacf51 [xharness] Fix processing of ignored tasks. 2016-06-15 10:51:14 -07:00
Rolf Bjarne Kvinge dcc605ed22 [xharness] Build XM/Classic projects using mdtool. 2016-06-15 10:51:14 -07:00
Rolf Bjarne Kvinge af4a93a181 [xharness] Pass the right environment variables when invoking xbuild. 2016-06-15 10:51:14 -07:00
Rolf Bjarne Kvinge ae1bf7fb5f [xharness] Add support for ignoring tests.
And use it to ignore framework-test (never run on wrench) and
watchOS tests (currently ignored on wrench).
2016-06-15 10:51:14 -07:00
Rolf Bjarne Kvinge d9bf0e1728 [xharness] Add support for building and running mac tests on jenkins. 2016-06-15 10:51:14 -07:00
Rolf Bjarne Kvinge 9a20b42bd6 [xharness] No need to prepare the simulator more than once. 2016-06-15 10:51:14 -07:00
Rolf Bjarne Kvinge 0c1f235800 [xharness] Fix simulator configuration to do all configuration before first launch. 2016-06-15 10:51:14 -07:00
Rolf Bjarne Kvinge 2d3001cd25 [xharness] Don't fail a machine has never seen a crash report. 2016-06-15 10:51:14 -07:00
Rolf Bjarne Kvinge d135612f59 [tests] Implement support in xharness for running the simulator tests grouped by simulator, and write out an html report. 2016-06-15 10:51:14 -07:00
Rolf Bjarne Kvinge 8af0326105 [xharness] Clean targets are named 'Clean', not 'clean'. (#162)
At least according to mdtool.

Fixes this:

    [...]
    Target 'clean not supported
    make[4]: *** [clean-mac-classic-introspection] Error 1
2016-06-09 14:23:58 -04:00
Rolf Bjarne Kvinge e3cc7c31bc [xharness] Write relative paths in the makefiles. (#160)
Fixes the packaged mac tests when they're executed on a different
machine with a different path.
2016-06-09 17:36:32 +02:00
Rolf Bjarne Kvinge 9c01fe6c9d [tests] Use the right sources for dontlink, linksdk and linkall tests. (#152) 2016-06-08 23:39:47 +02:00
Rolf Bjarne Kvinge e450dae136 [xharness] Add support for the introspection tests. (#151)
* [xharness] Add support for the introspection tests.

* [tests] Add support for mac introspection tests to xharness.
2016-06-08 19:45:31 +02:00
Rolf Bjarne Kvinge aaae585d52 [xharness] Xcode 7.3 ships symbolicatecrash in a new place, so look there as well. (#134) 2016-06-06 15:32:09 +02:00
Rolf Bjarne Kvinge 4a714f3c43 Make logic not depend on the checkout directory being named 'xamarin-macios'. (#129) 2016-06-06 12:18:52 +02:00