Summary: When xctest is bootstrapped from command line testmanagerd "hangs up" XPC connection, probobaly because of protocol differences.
Reviewed By: lawrencelomax
Differential Revision: D3144335
fb-gh-sync-id: 7a740fab46d045f516e49ba11b47e83442895db6
fbshipit-source-id: 7a740fab46d045f516e49ba11b47e83442895db6
Summary: `XCTestBootstrap` has to load a whole bunch of Private Frameworks. Instead of requiring every time that `FBSimulatorControl` is used the Frameworks are loaded, we can load the frameworks when the `XCTestBootstrap` interaction is used. This will save on Framework loading time for invocations of `FBSimulatorControl` that don't use the `XCTestBootstrap` methods.
Reviewed By: marekcirkos
Differential Revision: D3139023
fb-gh-sync-id: e91fe2ce7b4d03a49441b42659a7fd7a39613dc3
fbshipit-source-id: e91fe2ce7b4d03a49441b42659a7fd7a39613dc3
Summary:I noticed that on xcode 7.3 tests hang on semaphore during "DTXConnection" deallocation and happens pretty often.
Probably there is race condition, during simulator termination and socket handling.
This diff disconnects testmanagerd before simulator is terminated.
Reviewed By: lawrencelomax
Differential Revision: D3115134
fb-gh-sync-id: 36c4d848a5a7ba9c16df873a2a6721c52f6fd999
fbshipit-source-id: 36c4d848a5a7ba9c16df873a2a6721c52f6fd999
Summary:We can kick off test bundle from any application so instead of forcing creating own application for that added posiibility to start test with any bundle id (our own app, or existing apple apps).
Unfortunately devices are more tricky so, this is simulator solution for now.
Reviewed By: lawrencelomax
Differential Revision: D3120820
fb-gh-sync-id: 712197ea41624947b50527c9b4db8aa8703418d0
fbshipit-source-id: 712197ea41624947b50527c9b4db8aa8703418d0
Summary:Added support for linking frameworks that requires other frameworks to link beforehand.
This is required to link 'IDEiOSSupportCore.plugin' (used by XCTestBootstrap).
Also added check for multiple classes to confirm successful framework load.
Reviewed By: lawrencelomax
Differential Revision: D3120290
fb-gh-sync-id: 95f1c064406a6965d583c85d4b16b674e68f543b
fbshipit-source-id: 95f1c064406a6965d583c85d4b16b674e68f543b
Summary: With the inclusion of `XCTBoostrap` the `LD_RUNPATH_SEARCH_PATHS` was getting burned in with the current xcode version to the framework binaries, this meant that the executables were loaded before the dynamic framework loading. This is problematic as a different `DEVELOPER_DIR` or `xcode-select` default for a previously built binary could result in Frameworks failing to load at runtime as there is an xcode version conflict.
Reviewed By: marekcirkos
Differential Revision: D3092735
fb-gh-sync-id: 0724b46a3de0635170154707af3106844df6d786
shipit-source-id: 0724b46a3de0635170154707af3106844df6d786
Summary: Removing these for now until there is a better solution
Reviewed By: asm89
Differential Revision: D3048109
fb-gh-sync-id: fce12f59bcd4a4af738e568de22b8d5edce37cd3
shipit-source-id: fce12f59bcd4a4af738e568de22b8d5edce37cd3
Summary: This will provide some debug information.
Reviewed By: lawrencelomax
Differential Revision: D3047338
fb-gh-sync-id: 0a7a53e482ce5144cf10f8563c91feb3ded25c6b
shipit-source-id: 0a7a53e482ce5144cf10f8563c91feb3ded25c6b
Summary: It generates operations that don't need to be always executed.
Reviewed By: lawrencelomax
Differential Revision: D3047227
fb-gh-sync-id: 7c15284894d5c413ef583e8fef6612442da98e6b
shipit-source-id: 7c15284894d5c413ef583e8fef6612442da98e6b
Summary: Initialazer is needed in order to locate & use any DVTDevice class
Reviewed By: lawrencelomax
Differential Revision: D3047154
fb-gh-sync-id: 1a2c67c4d11e7e56f5695151fca2c139cba50afd
shipit-source-id: 1a2c67c4d11e7e56f5695151fca2c139cba50afd
Summary: It generates operations that don't need to be always executed.
Reviewed By: sigmix
Differential Revision: D3041737
fb-gh-sync-id: d045d79c5b62b103618bc7eef46af2bc5153f4bb
shipit-source-id: d045d79c5b62b103618bc7eef46af2bc5153f4bb
Summary: Renamed the because it better reflects its content
Reviewed By: mmmulani, lawrencelomax
Differential Revision: D3041487
fb-gh-sync-id: 60e435eb14b95226e5c9b890a535f490209c36e5
shipit-source-id: 60e435eb14b95226e5c9b890a535f490209c36e5
Summary:It handles mediator and is exposed via strategy to keep connection to test manager daemon alive.
Keeping strategy alive, didn't make much sense
Reviewed By: mmmulani
Differential Revision: D3041458
fb-gh-sync-id: 268cdcc5d79f79d145628a5556a1d0710110398d
shipit-source-id: 268cdcc5d79f79d145628a5556a1d0710110398d