46 Commits
Author SHA1 Message Date
joshaber 483eb38d73 Resource rules were deprecated. 2015-10-26 16:55:30 -04:00
joshaber f924fc3023 Make sure we don't use automatic termination. 2015-10-26 13:58:19 -04:00
joshaber 19dc11c735 Fix the tests. 2015-10-23 16:52:50 -04:00
joshaber 27f7777ba5 Hi Xcode 7. 2015-10-22 16:17:57 -04:00
joshaber 5f96d1e565 Allow tests to specify the number of update requests. 2015-09-21 00:14:08 +01:00
Keith Duncan 538e6a3cc7 Add constants file for the test app notification and key 2014-02-05 16:32:32 +00:00
Keith Duncan f84f75ed8b Style++ 2014-02-05 16:24:52 +00:00
Keith Duncan 0370434afa Move the status tests to use the remote updater and distributed notifications 2014-01-27 23:48:20 +00:00
Justin Spahr-Summers c293971730 Test preservation of custom JSON keys 2013-10-09 02:33:03 -07:00
Justin Spahr-Summers 2e3d30978a SQRLDownloadedUpdate has-a SQRLUpdate, not is-a 2013-10-09 02:01:04 -07:00
Justin Spahr-Summers 98f62431f6 WIP migrating to SQRLShipItState 2013-10-08 19:34:33 -07:00
Justin Spahr-Summers 75785adf07 Make state clearing method private 2013-10-07 14:57:31 -07:00
Justin Spahr-Summers e4251a4758 Clear ShipIt state when TestApplication launches too 2013-10-04 23:02:23 -07:00
Justin Spahr-Summers 750cd6d84b Move waiting test into SQRLUpdaterSpec
Since ShipIt will watch the PID of the remote connection, it's just
easier to do it from the TestApplication
2013-10-04 14:48:22 -07:00
Justin Spahr-Summers a8670802a8 Log each state 2013-10-03 02:14:06 -07:00
Justin Spahr-Summers db2dab135e Clearer TestApplication output 2013-10-02 15:10:10 -07:00
Justin Spahr-Summers f18b7b79cf Skip more test updates, make logging clearer 2013-10-02 01:11:35 -07:00
Justin Spahr-Summers 3b116b8440 Only take the first update, timeout after 10 seconds 2013-10-02 01:01:18 -07:00
Justin Spahr-Summers f85767d5e0 Test installing only the latest enqueued update 2013-10-02 00:56:59 -07:00
Justin Spahr-Summers fdf52d1253 I love the smell of napalm in the morning 2013-10-02 00:11:01 -07:00
Justin Spahr-Summers caa0430032 Replace -installUpdateIfNeeded: with a signal method 2013-09-29 22:06:13 -07:00
Justin Spahr-Summers b0d3594c9b Replace +sharedUpdater with -initWithUpdateRequest:
This ensures that it's impossible to check for updates without going
through the proper configuration steps.
2013-09-16 23:48:08 -07:00
Justin Spahr-Summers 3d27daa671 Rename TestApplication delegate to avoid confusion 2013-08-12 23:06:47 -07:00
Justin Spahr-Summers df78799585 Add proper NSErrors to -installUpdateIfNeeded: 2013-08-12 17:14:45 -07:00
Justin Spahr-Summers da74ad4fbe Remove handling of signals/exceptions in TestApp/ShipIt 2013-08-10 00:40:16 -07:00
Justin Spahr-Summers 489de3f630 Try installing a corrupt update 2013-08-10 00:26:51 -07:00
Justin Spahr-Summers 8744556ecd fuck it all, let's do it live 2013-08-10 00:12:24 -07:00
Justin Spahr-Summers 01a81ab720 Add basic signal and exception handling to TestApplication 2013-08-09 23:52:53 -07:00
Justin Spahr-Summers 9cab27d334 Fix TestApplication delegate not being created 2013-08-09 23:46:06 -07:00
Justin Spahr-Summers 2f41ffdc5f Replace janky MainMenu.xib with Xcode 4 version 2013-08-09 23:38:55 -07:00
Justin Spahr-Summers 51b42946fa Log when the TestApplication quits 2013-08-09 23:07:35 -07:00
Justin Spahr-Summers fde824cd19 Refactor -installUpdateIfNeeded for a completion handler 2013-08-09 22:16:56 -07:00
Justin Spahr-Summers 5d9d63ad5a Don't move shipit around anymore, try running it in-place 2013-08-09 20:49:08 -07:00
Justin Spahr-Summers ae1b7e505b Fix zipping, add more logging 2013-08-09 19:59:57 -07:00
Justin Spahr-Summers 377d84d54c Check for updates in TestApplication when a URL is set 2013-08-09 15:20:16 -07:00
Justin Spahr-Summers 0c6cb6549d Codesign all TestApplication resources 2013-08-09 14:02:18 -07:00
Justin Spahr-Summers 786cbba7ac Suuuuper janky setup for capturing ShipIt/TestApp logging 2013-08-08 20:18:19 -07:00
Justin Spahr-Summers 8788bcc1d1 Add helper tool to TestApp, re-enable codesign tests 2013-08-08 19:19:04 -07:00
Justin Spahr-Summers e7698ba486 Move MainMenu.xib to Xcode 4.6 format 2013-08-08 15:48:10 -07:00
Justin Spahr-Summers 1a68021086 Use ShipIt directly from tests, don't sandbox
Also add back a TestApplication target.
2013-08-08 15:45:07 -07:00
Justin Spahr-Summers ff87dc2f1b Replace TestApplication with an intermediate XPC service 2013-08-08 13:30:28 -07:00
Justin Spahr-Summers b095164a1f More logging and GCD queues and shit 2013-08-08 12:21:54 -07:00
Justin Spahr-Summers 3f2b7f2329 Factor out XPC error handling 2013-08-08 12:16:15 -07:00
Justin Spahr-Summers 4b82db1724 Log all the things, build TestApplication in Test 2013-08-08 12:11:33 -07:00
Justin Spahr-Summers 4abd4d6c04 Pass an endpoint from the unit test to TestApplication
Then use that to communicate with shipit.
2013-08-08 12:07:46 -07:00
Justin Spahr-Summers 7d0e7642a3 Create app target for testing updates 2013-08-06 13:22:26 -07:00