Macadamian/titanium_mobile — pull request #59 by dlifshitz-maca (2012-05-22 18:05:29+00:00)
Title: TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts

Reviewers:David C, Harut

[Issues Fixed]
TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts
(partial) TIMOB-8944: BlackBerry: Connect drillbit to BB simulator or device

[Added]
devicemanagement.py

[Changes]
blackberry.js
- function BlackBerrySimulator
- added member blackberryDeviceManagement
- added function createDeviceManagementProcess
- removed unused function getTestHarnessPID, testHarnessNeedsBuild
- implemented functions isTestHarnessRunning, fillTestTemplateData, pushTestJS, stageSDK, killTestHarness
- function run
- create a placeholder process for logs and uncomment the code that uses it
- functions launchTestHarness, runTestHarness
- removed unused variable

blackberryndk.py
- function package
- added parameter type and use it to package using devMode

builder.py
- remember and pass along the type

[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 drillbit and repeat Step 2
6) Verify the test_harness app is closed when drillbit starts