Macadamian/titanium_mobile — pull request #64 by dlifshitz-maca (2012-05-24 20:48:19+00:00)
Title: TIMOB-8944: BlackBerry: BlackBerry: Connect drillbit to BB simulator or device

Reviewers: Alex, David C
Note: only review from 6f2d4fa8

[Issues Fixed]
TIMOB-8944: BlackBerry: BlackBerry: Connect drillbit to BB simulator or device

[Changes]
blackberry.js
- function run
- removed useless blackberrySimulatorProcess
- remember readLineCb
- function launchTestHarness
- when finished starting up the test harness, capture the logs and check the exit code
- added stub function handleCompleteBlackBerryEvent

blackberryndk.py
- added functions printExitCode, _isAppRunning, _printAppLog, appLog

devicemanagement.py
- added commands and functions printExitCode, appLog

[Tests]
Test 1: Run drillbit
1) Run scons to build the mobile sdk
2) Run the following command:
drillbit\drillbit.py --platforms=blackberry
3) Click "run tests"
4) Verify the test_harness app is built, deployed, and run
5) Close the app on the simulator
6) Verify the logs are printed
Note: The test will not finish because the app was closed manually (not what should happen) and the framework doesn't yet output the Ti logging.
If you want to see the test fail when the app crashes, put a return -1; in tibbapp/main.cpp.