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

157 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge fdccb019a5 [xharness] Try to bump the launch timeout to 3 minutes. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge fb37a21ef9 [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-22 10:42:22 +02:00
Rolf Bjarne Kvinge dfd0fbe81a [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-22 10:42:22 +02:00
Rolf Bjarne Kvinge 755a0622bd [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-22 10:42:22 +02:00
Rolf Bjarne Kvinge 6b5a394244 [xharness] Add a few more variables to control what to include in a test run. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge 0a39ec940f [xharness] Ignore ignored tests when deciding which color to use for a group of tests. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge 1e1bbec8a3 [xharness] When capturing the system log for simulator runs, don't capture contents of the log from before our test run starts. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge bd993fbe0d [xharness] Cleanup must be done by the last test, not the first test. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge cf060f4611 [xharness] iPhone 4s doesn't exist anymore, use iPhone 5 instead. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge d6f27c2e65 [xharness] Improve html report a bit when some tests are ignored. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge ade84d6397 [xharness] Add a few variables to control if to include iOS/Mac tests in jenkins test mode. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge 64bf75c533 [xharness] Fix emptyness check. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge b2431898b0 [xharness] Improve watching objects in the debugger. 2016-06-22 10:42:22 +02:00
Rolf Bjarne Kvinge 5a9c9003fa [xharness] Use Xcode 8 when debugging. 2016-06-22 10:42:22 +02:00
Sebastien Pouliot d9fb8dc937 [tests][harness] Add kTCCServiceMediaLibrary to avoid privacy popup (#230)
Running some API without permission can crash some tests.
2016-06-18 06:36:59 -07:00
Rolf Bjarne Kvinge b8ceeeb044 [xharness] Fix logdirectory path to use correct directory separator. (#212) 2016-06-16 00:03:04 -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 8a164bc8d0 [xharness] Download mlaunch if we don't have a local copy. 2016-06-15 17:00:09 -07:00
Rolf Bjarne Kvinge f17241e6e3 [xharness] Fix null reference exception. 2016-06-15 16:52:45 -07:00
Rolf Bjarne Kvinge df326a1d59 [xharness] Throw a helpful exception instead of NRE when a simulator can't be found. 2016-06-15 16:52:24 -07:00
Rolf Bjarne Kvinge ed1cbe003e [xharness] Add missing tests. 2016-06-15 16:51:42 -07:00
Rolf Bjarne Kvinge 73b3a9b53e [xharness] Log simulator loading and handle any exceptions. 2016-06-15 13:32:09 -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 adde200556 [xharness] Exclude bcl tests by default. 2016-06-15 09:57:24 -07:00
Rolf Bjarne Kvinge fdf2bd5d7b [xharness] Try and fix some strange file sharing exceptions. 2016-06-15 09:57:24 -07:00
Rolf Bjarne Kvinge 4bad2c1485 [xharness] Use full path to mdtool. 2016-06-15 09:57:24 -07:00
Rolf Bjarne Kvinge 266606528b [xharness] Fix processing of ignored tasks. 2016-06-15 09:57:24 -07:00
Rolf Bjarne Kvinge eec56fefc6 [xharness] Build XM/Classic projects using mdtool. 2016-06-15 09:57:24 -07:00
Rolf Bjarne Kvinge f6948f8183 [xharness] Pass the right environment variables when invoking xbuild. 2016-06-15 09:57:24 -07:00
Rolf Bjarne Kvinge 39a0873403 [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 09:57:24 -07:00
Rolf Bjarne Kvinge ad229cef71 [xharness] Add support for building and running mac tests on jenkins. 2016-06-15 09:57:24 -07:00
Rolf Bjarne Kvinge 969f2d7ca1 [xharness] No need to prepare the simulator more than once. 2016-06-15 09:57:24 -07:00
Rolf Bjarne Kvinge 3d5455b54c [xharness] Fix simulator configuration to do all configuration before first launch. 2016-06-15 09:57:24 -07:00
Rolf Bjarne Kvinge 646bd59c85 [xharness] Don't fail a machine has never seen a crash report. 2016-06-15 09:57:24 -07:00
Rolf Bjarne Kvinge d087ba2d5a [tests] Implement support in xharness for running the simulator tests grouped by simulator, and write out an html report. 2016-06-15 09:57:24 -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
Rolf Bjarne Kvinge 715c2fa5d4 [xharness] Add separate solution to make it load faster in the IDE. (#124) 2016-06-02 12:17:52 +02:00
Zoltan Varga 7fad8dfb40 [tests] Build the bitcode configuration on arm64 only, armv7 doesn't seem to link:
Undefined symbols for architecture armv7:
	      		  "___gxx_personality_v0", referenced from:
2016-05-27 21:54:49 -04:00
Rolf Bjarne Kvinge c8b35f9b6a [xharness] Fix mlaunch lookup. 2016-05-26 15:15:08 +02:00
Rolf Bjarne Kvinge ecfdea9508 [tests] Import 2016-05-26 15:06:52 +02:00