To setup mtbf environment for lab testing. It will help to pull dependencies, flashing and/or executing tests
For MTBF specific problem, please refer to mtbf driver repo
Dependencies:
- MTBF-Driver
- combo-runner
- B2G-flash-tool (for flashing)
- b2g utilities
- gaia (optional)
- lockfile (python library for file lock)
Recommend to use flame
=== Quick start ===
- Clone this repo
- Run "make vmaster"
- Run "source mtbf-env/bin/activate" to enable virtual env
- Run "mtbf_job_runner.py --testvars={TESTVARS} --settings=task_template.json"
Parameters:
- --settings: Specify a json file to define which task should be enabled/disabled
- FLASH_bASEDIR : System virable. To specify directory for flashing; will only search for archives the same as files in pvt.
- FLASH_BUILDID : In FLASH_BASEDIR, if directory structure is the same as pvtbuild, using build id for retrieving target build artifact.
- output_directory: Setting output folder so all logging information including logcat, memory report, process info, and so on.
Download build from pvt
- Using B2G-flash-tool repo to do auth, downloading, flashing.
- Donwloaded build is set "pvt/" by default.
- If you only want to download builds, using b2g_downloader.py in flash_tool, it will run downloading but not flashing.
Customization:
- To install gaia-ui-test from different path, change by gaiatest={gaiatest_path}, e.g., "make vmaster gaiatest=/gaia/tests/python/gaia-ui-tests/"
- Install virtual environment to a specific path, use mtbf-env={venv_path}, same as #1
- After mtbf installed, conf and runlist folders are brought to root folder automatically.