Auto-tools/Projects/Android Parts Bucket: Difference between revisions
< Auto-tools | Projects
Jump to navigation
Jump to search
| Line 29: | Line 29: | ||
# Take the agent from <objdir>/build/mobile/sutagent/android/sutAgentAndroid.apk and install it on the device using adb. | # Take the agent from <objdir>/build/mobile/sutagent/android/sutAgentAndroid.apk and install it on the device using adb. | ||
# Use the agent to install your fennec build onto the device. (bear's code, in a bug that I can't find at the moment). | # Use the agent to install your fennec build onto the device. (bear's code, in a bug that I can't find at the moment). | ||
# | # Download a Firefox Linux trunk build and drop it into a "firefox" dir at the same level as your unpacked test packages. | ||
# Unpack a | # Unpack a Firefox Linux trunk test build and copy the bin/ directory onto the firefox directory you unpacked (steps 4 and 5 allow you to run the httpd.js webserver for the tests) | ||
# Run the tests setting --deviceIP to your device, --remote-webserver to the IP address of your | # Run the tests setting --deviceIP to your device, --remote-webserver to the IP address of your Linux machine --xre-path to the firefox directory and whatever other parameters you want per test type (logging, chunking, etc). | ||
Revision as of 05:05, 20 July 2010
Welcome to the Android parts bucket. Here you can find all the pieces of the automation that you need to wire together in order to establish a walking talking test dummy.
SUTAgent
- Android sutagent checked in to m-c
- Will be available in packaged tests under bin/ directory once bug 563095 is fixed (currently in review).
Devicemanager.py
- Available in m-c AND in talos (currently, talos is not up to date, use the one in m-c).
- For unittests, the devicemanager will be packaged into the test packages
Heartbeatmonitor/heartbeatdaemon
- These are in the remote-testing repo with their assorted scripts. You need everything from the buildbotscripts directory at the moment.
- Status: undergoing final testing
Mochitest Plain
- All changes in, ready to go
Mochitest Other
Reftest, JSReftest, Crashtest
- bug 573694 - about to go into review eta in review July 20.
XPCShell
- Work not begun. These have not proved to be important tests to the mobile developers so they have been prioritized last. ETA: 1-2 weeks once work begins. Status: we have the code used to run these on winmo, we need to update it to work on Android. Since Android is more "unix-y" it will be much easier to make these run than it was to get them to run on winmo.
To put an android unit test together
- Build Android in m-c
- Take the agent from <objdir>/build/mobile/sutagent/android/sutAgentAndroid.apk and install it on the device using adb.
- Use the agent to install your fennec build onto the device. (bear's code, in a bug that I can't find at the moment).
- Download a Firefox Linux trunk build and drop it into a "firefox" dir at the same level as your unpacked test packages.
- Unpack a Firefox Linux trunk test build and copy the bin/ directory onto the firefox directory you unpacked (steps 4 and 5 allow you to run the httpd.js webserver for the tests)
- Run the tests setting --deviceIP to your device, --remote-webserver to the IP address of your Linux machine --xre-path to the firefox directory and whatever other parameters you want per test type (logging, chunking, etc).