Commit Graph

1237 Commits

Author SHA1 Message Date
Jae Yong Sung
f34d3e617b Functionality to separate dictionary by set size
Change-Id: Idb0e79e0dc79563a7043c245bcd80ebf5f02dc65
2010-08-10 15:36:34 -07:00
Thomas Tuttle
60a7ddf27e elftree: Recursively display ELF dependencies in a tree
Change-Id: Ifec17edf90796d0f810341cf62c9e5dfdee083c2
2010-08-02 16:53:33 -07:00
Brett Chabot
3a5897a4fe am d53cf3ba: am 8ddb2873: Change hosttestlib to use ddm-prebuilt.
Merge commit 'd53cf3ba04f48d234200e8418876db62cb0b6b56'

* commit 'd53cf3ba04f48d234200e8418876db62cb0b6b56':
  Change hosttestlib to use ddm-prebuilt.
2010-07-28 11:46:55 -07:00
Brett Chabot
d53cf3ba04 am 8ddb2873: Change hosttestlib to use ddm-prebuilt.
Merge commit '8ddb2873df96c7181c9358f5c9286e273648bf89' into gingerbread-plus-aosp

* commit '8ddb2873df96c7181c9358f5c9286e273648bf89':
  Change hosttestlib to use ddm-prebuilt.
2010-07-28 11:37:12 -07:00
Brett Chabot
8ddb2873df Change hosttestlib to use ddm-prebuilt.
Change-Id: Ibd1c44096893bc8804a4d7644fc83d2edd443bb2
2010-07-27 17:57:38 -07:00
Bill Napier
4a8359add3 Remove the rest of the monkeyrunner files.
Change-Id: I2336e5342c2dcd495ca3ecb981f2200a549097ba
2010-07-27 17:28:42 -07:00
Bill Napier
255ee00edc am 32553f52: Remove monkeyrunner so it can move to the SDK project.
Merge commit '32553f5291b1e0c5363db8bd7f280037f4f600e2' into gingerbread-plus-aosp

* commit '32553f5291b1e0c5363db8bd7f280037f4f600e2':
  Remove monkeyrunner so it can move to the SDK project.
2010-07-27 17:12:57 -07:00
Bill Napier
2e163ac649 Move MonkeyRunner from development to sdk.
Change-Id: I87ac348a48d64706aee2e66cf833944b15b70dd8
2010-07-27 17:07:58 -07:00
Eric Fischer
fa4a0311ae am b5ebc485: am cc7fc9e8: Update time zone data to the new version 2010k.
Merge commit 'b5ebc48565ceb23feba21cc12fbbb2cc34802209'

* commit 'b5ebc48565ceb23feba21cc12fbbb2cc34802209':
  Update time zone data to the new version 2010k.
2010-07-27 16:59:26 -07:00
Eric Fischer
b5ebc48565 am cc7fc9e8: Update time zone data to the new version 2010k.
Merge commit 'cc7fc9e839cee6c33d099a94c5bdb655bd83ccd9' into gingerbread-plus-aosp

* commit 'cc7fc9e839cee6c33d099a94c5bdb655bd83ccd9':
  Update time zone data to the new version 2010k.
2010-07-27 16:35:22 -07:00
Bill Napier
f00f7e42c3 Fix multi-line parsing issue from running instrumentations. This fix means that monkeyrunner can now get back the "stream" from an InstrumentationTestCase.
Change-Id: Ie93b70bd5ccd8155e76006a6b968c8ef183710d7
2010-07-27 16:10:16 -07:00
Bill Napier
32553f5291 Remove monkeyrunner so it can move to the SDK project.
Change-Id: Ibedfae41cf8a71d66f25267cd3a360de222e2644
2010-07-27 16:08:06 -07:00
Eric Fischer
cc7fc9e839 Update time zone data to the new version 2010k.
Change-Id: Ifaadb0c75343bf271232dcd72f53fd34bb33aca1
2010-07-26 15:54:28 -07:00
Xavier Ducrohet
9eca9eb6ce Fix Monkeyrunner to use new ddmlib API.
Change-Id: Iaa042e53bf645ec574faabb2f8b62693836afc7a
2010-07-26 12:09:01 -07:00
Xavier Ducrohet
235a95ae49 Update the monkeyrunner to use the new DDMlib API.
Change-Id: I0c1e17b450e264ca1e7d98523bde4ddfe1d97252
2010-07-26 10:53:14 -07:00
Amith Yamasani
5618ef3b82 Merge "Generate English Dictionary (version : 200 - may contain bigrams) - created separate class for bigram" 2010-07-16 17:42:40 -07:00
Xavier Ducrohet
b8f2aa9ff1 Fix MonkeyRunner to use the changed ddmlib API.
Change-Id: Ia56612bf700e360f77dd9e13c0bc74eac59e30ea
2010-07-15 17:46:26 -07:00
Jae Yong Sung
80059e63a7 Generate English Dictionary (version : 200 - may contain bigrams)
- created separate class for bigram

Change-Id: Iaee544c6e62dcd0a90730d20d5c955280e5cf0ae
2010-07-14 10:40:44 -07:00
Bill Napier
1fb098a088 Update help text templates to include "Returns" information.
Change-Id: Id310a2a5b550c307c68444b0ca950c7b61bc514c
2010-07-12 13:13:45 -07:00
Bruce Gay
a961b1c069 Merge "Labpretest.sh script is designed to emulate a typical automated test lab session. It puts a device into bootloader mode, reboots into bootloader mode, determines device type, erases user cache, flashes a generic userdata image, updates the boot image, updates the radio image, updates the system image and reboots, sets up for a monkey run and finally runs a random monkey test. It will repeat this based on an optional parameter(-i) or default to 100 times. It will detect if it is in a low battery situation and wait for it to charge again." 2010-07-02 16:55:37 -07:00
Bruce Gay
39229d4a62 Labpretest.sh script is designed to emulate a typical automated
test lab session.  It puts a device into bootloader mode,
reboots into bootloader mode, determines device type, erases
user cache, flashes a generic userdata image, updates the boot
image, updates the radio image, updates the system image and
reboots, sets up for a monkey run and finally runs a random
monkey test. It will repeat this based on an optional
parameter(-i) or default to 100 times. It will detect if it is
in a low battery situation and wait for it to charge
again.

Adding custom flash files for use with nexusone and sholes.
Updating files with review changes

Removing some trailing spaces and fixing a few typos.

Fixed some additional items and changed some of the naming

Fixed a comparison that wasn't correct

removed a default bootpart name, now needs to be added
custom_flash.sh

missing exit added

edited README for typos and wordage.

Change-Id: Ie7dc2139823304ce11b10b6fd65997cf311a2e9c
2010-07-02 16:30:56 -07:00
Bill Napier
8fa0d4ef97 Merge "Change help test generation to use clearsilver templates just like the rest of the system. This should more easily allow customization of the generated output." 2010-06-14 13:37:35 -07:00
Bill Napier
44ab7d8406 Change help test generation to use clearsilver templates just like the rest of the system. This should more easily allow customization of the generated output.
Change-Id: I5c51f3781aab3ce85653ecb69c1f10fd76d8c172
2010-06-14 13:32:08 -07:00
Bill Napier
fc4835e80f Add in a help script to generate text and html formats of the MonkeyRunner help.
Change-Id: I757cd716f67f9d376113274922e8bbf7ef97f663
2010-06-14 13:17:21 -07:00
Bill Napier
ac3f5485c8 Merge "fix build (again). Even more sneaky @Overrides" 2010-06-11 14:04:41 -07:00
Bill Napier
95ceb13852 fix build (again). Even more sneaky @Overrides
Change-Id: I370a3d6372ac8425959ce71c5e564a2bac04dc03
2010-06-11 14:04:02 -07:00
Bill Napier
4f6ff05e8c Fix build. @Override
Change-Id: Iecc821e610f671f6e08aa98e433a31990af40855
2010-06-11 13:01:02 -07:00
Bill Napier
675b718ebf Add in some more useful MonkeyRunner commands:
- Add in device "drag" command to simulate a finger moving across the touch screen
 - Add in some pixel operation on MonkeyImage to scripts can do pixel level tests and comparisons.
 - Fix up the help command to no longer loop forever.
 - Start MonkeyRunner in interactive mode if no script file is specified.

Change-Id: Ifd2655d3291dcc9dc355d4c2efa9019dc38bee5d
2010-06-10 16:54:26 -07:00
Bill Napier
d42aa3310e - Improve ScriptRunner command line parsing to actually pass more of the arguments. (And a unit test to go with it).
- Set __name__ inside the scriptfile runner so python scripts expecting it get it.
- Propagate sys.exit error codes so monkeyrunner will actually return those error codes.
- Better handle PyExceptions thrown by the script to actually terminate monkeyrunner.
- Bubble up installPackage and removePackage error codes so callers can tell if they worked or not.

Change-Id: Ia4717b1ad2c9b4cccd607aba00211f2f85dfb412
2010-05-25 14:42:32 -07:00
Bill Napier
66cfd4bfe8 Add in python unit tests and fix up java unit tests.
Change-Id: I3930946364d5ca8a5d18e4a2b36a7afa298ef2de
2010-05-25 09:49:42 -07:00
Bill Napier
06a839ddbe Add in "plugin" support to allow users to add their own plugin's via JAR files and the -plugin command line argument.
Also make sure that the arguments passed on the command line correctly get set in sys.argv.

Change-Id: I35014adc95ac9e5e5c777dc17749ee2b9b155c57
2010-05-24 12:12:17 -07:00
Bill Napier
4ef0789134 Merge "Add in stub backend to be used for jython unit tests." 2010-05-21 10:29:40 -07:00
Bill Napier
9bfa27ffe6 Add in stub backend to be used for jython unit tests.
Change-Id: Idb7a18ce1ddeb8621c688d5580515d10db6edf19
2010-05-21 10:20:56 -07:00
Bill Napier
ccfc305b5a Merge "Add in the help command implementation to return the "help" string to the caller." 2010-05-21 10:00:37 -07:00
Bill Napier
d97211f0d2 Add in the help command implementation to return the "help" string to the caller.
Change-Id: Icb350e4c1cb5ce219ea5ae90272dd7bbaba283e3
2010-05-20 14:41:26 -07:00
Bill Napier
d1a8d5384a remove DebugBridge as it has been replaced with AdbBackend
Change-Id: I52270f2d4ee137932a32309812a8a20503839035
2010-05-20 14:32:36 -07:00
Bill Napier
133e0118fe Refactor MonkeyRunner and add in a lot of API operations.
Change-Id: I96ad1da5dc94c86c1e47ff1acf6843d282bb4724
2010-05-20 11:16:28 -07:00
Bill Napier
73b2f1902c Add in method to ScriptRunner to also get a variable result from the interpreter.
Change-Id: Ib14d48992b66371a6702a7dac621bf3a62d1a936
2010-05-18 11:22:18 -07:00
Bill Napier
423b66f5ca Add proper dependencies for Test target.
Change-Id: I44cd7b13d0d96181908826423cd2b3a320b9cc65
2010-05-17 21:17:41 -07:00
Bill Napier
8d34ed1098 Update ScriptRunner to correctly pass in the name of the sript being started (so jython's sys.argv will work).
Add in JythinUtils Unit Tests to validate JythonUtils correctness.

Change-Id: I41ea78b3efbb8649840b46c279f3e91f12b960ac
2010-05-17 11:11:15 -07:00
Bill Napier
4a70a96512 Add in a collection of useful functions for interacting with the Jython Interpreter.
Change-Id: I1cef598fe8f057ed050452e4928196f815e574b5
2010-05-14 13:34:04 -07:00
Bill Napier
18b698912a Annotation to allow auto-documenting of jython language bindings for MonkeyRunner API's.
Change-Id: Ia0af839df646036a7ecd9f9c6ba02f98dc911f45
2010-05-14 12:42:50 -07:00
Bill Napier
397028f8ed Refactor ImageUtils to eliminate extra copy of image data that was being done. This yields a small
(but noticable) performance improvement.

Add in unit tests to validate that ImageUtils works correctly.

Change-Id: I3f5a8512534c0193f99c0e514066dbd02746a6bc
2010-04-27 10:48:13 -07:00
Raphael
67fa314265 Fix etc1tool to build in Windows SDK under Linux
(Merges master Change Ib38a019b + Change I50f55004)

Change-Id: I2cbb63f0f20cdd2652b6b64ae0dee4343b952973
2010-04-23 13:12:03 -07:00
Bill Napier
d66f9370e1 The rest of the refactor to make MonkeyRunner cleaner.
Change-Id: Iac08f166755abd0d3b439023cac8c7d354fdb439
Note: this removes the MonkeyRecorder functionality.  This will be re-added in a later change.
2010-04-21 17:23:34 -07:00
Bill Napier
addb02a320 Start refactoring MonkeyRunner to be a bit easier to understand.
- Add in ImageUtils (which is basically a copy from HierarchyViewer)
- Encapsulate ADB communications inside DebugBridge.
- Encapsulate Network Monkey protocol inside MonkeyMananger

Most of this code is currenlty duplicated in MonkeyRunner.java.  Deletions of that code
will come in a subsequent change.

Change-Id: Ia33eeae9b12d97371781c5d2a0292b738130b4d3
2010-04-21 10:12:09 -07:00
Raphael
0db059b4c8 Fix etc1tool on Mac SDK: -lz was missing.
Change-Id: I50f5500493be638182d3302cae2e2385722da22d
2010-04-15 22:02:08 -07:00
Raphael
39884388ed Fix etc1tool to build in Windows SDK under Linux
Change-Id: Ib38a019becfeb9e227089b18e04e3f7c28a4af53
2010-04-14 20:03:19 -07:00
Andy McFadden
fbef7e0b85 Merge "Minor improvements to apkcheck." 2010-02-19 16:52:49 -08:00
Andy McFadden
4fbfbb3914 Minor improvements to apkcheck.
It turns out annotation classes aren't spelled out in the public API
file, so we now emit warnings instead of errors on unrecognized method
calls into annotation classes.

The <angle bracket> stripper wasn't working quite right, and did the
wrong thing on nested brackets and stuff like "java.lang.Class<?>[]".
2010-02-19 16:15:27 -08:00