User:Armenzg/Auto-Tools

From MozillaWiki
Jump to: navigation, search

I'm writing all of this documentation focused on Linux 64-bit.

Builds

Firefox for Desktop

  • How to create a Firefox build
  • How to create tests.zip

Firefox for Mobile

  • How to create a Firefox for Android build
  • How to create tests.zip

FirefoxOS

Tests

Setup

The following will make things easier when you want to run things similar to mozharness on production.

sudo mkdir /builds
sudo chown `whomai` /builds
mkdir -p /builds/slave/test

Run locally with mozharness

cd /builds/slave/test
hg clone http://hg.mozilla.org/build/mozharness scripts

Then append:

  • The developer config (_dev.py)
  • --installer-url
  • --tests-url

You can read more in here: How to run tests as a developer

Tips & tricks

If you want to *only* run tests under a directory:

  • Let the run-tests action start and cancel it
  • Look for the "Copy/Paste" line
  • Change to the directory where the runner is (e.g. runtestsb2g.py)
  • Add --test-path and remove --quiet


Run only the run-tests action

  • Run once mozharness with --no-run-tests (all actions except run-tests)
  • Run mozharness again with --run-tests (run-tests is the only action being run)

Use local binaries instead of downloading them from FTP (--installer-url and --tests-url)

  • If you have an objdir you can run "make package-tests" to generate these files
  • TBD (--test-path)

Run on a loaner

Read this: Running mozharness on a loaner machine

Firefox OS

Flashing

Use the B2G-flash-tool with ./flash.sh -w.

On a second run, you can do so without downloading again, e.g. (see the end of the output of flash.sh):

./shallow_flash.sh -y -gpvt/mozilla-b2g30_v1_4-flame-eng/latest/gaia.zip -Gpvt/mozilla-b2g30_v1_4-flame-eng/latest/b2g-30.0.en-US.android-arm.tar.gz

Cert suite

Trouble shooting

If your phone gets stuck on the "flaming tail Firefox" screen.

  • I fix it by flashing but there might be another way