Commit Graph

55 Commits

Author SHA1 Message Date
Xia Wang
12ad9fb10e 1. Add .c extension to native_test.py so that native test in C can also be picked up by testrunner.
2. Add netkeystore_test into continuous test cycle.
2009-08-14 15:58:36 -07:00
Brett Chabot
f9775cae58 Add test definition for cts-telephony.
BUG 2048364
2009-08-12 14:48:14 -07:00
Brett Chabot
a6851d7aae Fix runtest launchperf test definition.
BUG 2045435
2009-08-10 17:12:27 -07:00
Swarna Kumar
8aca5b8afd Since bug 1966269 is fixed, marking calprov tests as continuous=true 2009-07-30 15:03:25 -07:00
Yu Shan Emily Lau
4fed1db841 Add the test definition of the vpn tests. 2009-07-21 15:59:43 -07:00
Swarna Kumar
865f57e708 Removing continuous attribute for the calendar provider tests. 2009-07-21 13:19:43 -07:00
Swarna Kumar
88a8f7be4f Removing calprov test suite from continuous build until to get real fix for bug 1966269 2009-07-20 11:19:34 -07:00
Android (Google) Code Review
30a06f4115 Merge change 5737 into donut
* changes:
  Fix bug 1844502: Add create_test.py to generate Android.mk and AndroidManifest.xml for application tests.
2009-07-16 14:55:39 -07:00
Brett Chabot
222c8a0634 Modify runtest test_defs to adjust for rename of cts-installtests. 2009-07-10 12:39:26 -04:00
Jack Wang
2abd80af5a Fix bug 1844502: Add create_test.py to generate Android.mk and AndroidManifest.xml for application tests. 2009-06-30 18:39:33 -07:00
Brett Chabot
bf7863ec27 runtest: Remove run_command -> android_build dependency.
This is desired because run_command is used by puppetmaster which should have
no dependency on android build system.
2009-06-29 17:44:52 -07:00
Brett Chabot
e0bf8162f0 testrunner: Allow spaces in instrumentation arguments and remove check for test
app presence.
2009-06-29 13:55:30 -07:00
Brett Chabot
3ae5f8a399 Fix relative class path arg handling in runtest, and some lint errors. 2009-06-28 12:00:47 -07:00
Brett Chabot
764d3fa70d Add support for running host java tests to runtest.
With this change, also refactored runtest as follows: Modified the
test suite schema and python implementation to have an inheritance
structure.  Each test type has its own python module, which will
also handle the logic of running the test.
2009-06-26 14:31:52 -07:00
Brett Chabot
fe905a8cb0 Add ApiDemos to the test build, and cts-permission2 tests to test_defs.xml.
This should enable the ApiDemos sample tests to run continuously again.
2009-06-19 18:34:39 -07:00
Brett Chabot
8ccda76271 Add framework, downloadprovider, improvider and global search
permission tests to continuous tests.
2009-06-17 11:38:07 -07:00
Nicolas Catania
18d7a4e3bc Added ASTL tests to the suite. 2009-06-15 15:15:20 -07:00
Brett Chabot
5de234e8ca Add downloadprovider permission tests runtest shortcut. 2009-06-15 13:04:58 -07:00
Brett Chabot
2e1ac5dcc4 Add runtest test definition for framework-permission 2009-06-15 10:51:29 -07:00
Brett Chabot
d6af1fbbfa Change cts-permission runtest def to use proper runner. 2009-06-10 11:19:58 -07:00
Karl Rosaen
95315b87df Add GlobalSearch to test definitions. 2009-06-10 11:55:25 +01:00
Yu Shan Emily Lau
4c48ea2c84 Added the test definiton for the cameraLatnecy and the mediamemorystress test 2009-06-09 14:33:20 -07:00
Android (Google) Code Review
8f7e926c11 Merge change 3202 into donut
* changes:
  Make runtest wait for instrumentation install before running test.
2009-06-04 18:54:50 -07:00
Brett Chabot
97d5c50730 Make runtest wait for instrumentation install before running test.
This attempts to address bug 1872940 where runtest will attempt to
run the test before all the new packages pushed via adb sync are
actually installed. This won't completely fix the bug in all cases,
but hopefully will help most situations.
2009-06-04 18:22:57 -07:00
Nicolas Catania
ab80b39f16 Fixed valgrind handling issue.
Turns out valgrind always exits with error code 0 even when a leak is
detected. Instead we are now looking for an empty output.
2009-06-04 09:45:32 -07:00
Brett Chabot
49b77117fe Initial change to add cts tests to runtest.
Adds cts test definitions to the testrunner/test_defs.xml.
Adds support for runtest --cts arg, which will run all cts tests.
This temporarily relies on the addition of a 'cts' attribute to the test
definition - a new xml format may be defined later that changes how cts tests
are identified.

This change is based on previous unsubmitted CL
https://android-git.corp.google.com/g/Gerrit#change,1702. The only delta wrt
to that change is the use of InstrumentationCtsTestRunner.

Update: rebased to latest donut.
2009-06-02 11:46:46 -07:00
Yu Shan Emily Lau
ffbc7c9f59 Added the mediaapitest, mediarecordertest and stress test in the testrunner.So
the partner can run the test easier.
2009-06-01 16:55:49 -07:00
Brett Chabot
ae68f1a865 Add support for parsing code coverage file path to runtest and related cleanup.
This change is to adapt runtest to the InstrumentationTestRunner change which
dumps coverage data to the app's local data folder, instead of a fixed file on
the sdcard.

Also fixed adb_interace.StartInstrumentationForPackage, added better handling
when generating coverage for tests with unknown coverage targets, and reduced
the duplicate definitions of the "coverage_targets.xml" definition file.
2009-05-29 13:35:13 -07:00
Owen Lin
5f563d066d Change build path to "packages/app/Camera.apk". So that it will also
build the application code.
2009-05-27 10:19:02 -07:00
Phil Dubach
7c343cef7e Add XML Schema for runtest's test_defs.xml file 2009-05-22 14:56:35 -07:00
Wei-Ta Chen
97752d4f80 Add a timeout flag to runtest for running native tests on devices. 2009-05-21 18:17:08 -07:00
Owen Lin
04eccd893a Add tests definition (unit tests and stress tests) for Camera. 2009-05-15 10:08:00 -07:00
Nicolas Catania
bcd93dc46a Made valgrind optional. Capture the target output.
Don't fail if valgrind (system version not the google3 one) is missing.
If the test fail, print the output of the test.
Added .pyc to the gitignore file.
2009-05-14 12:25:23 -07:00
Brett Chabot
292df41bb2 Add ability to specify relative class paths when using runtest -c
"runtest -c .<className>" will now be equivalent to
"runtest -c <package>.<className>", where package is the test-app's package as defined in test_defs.xml.
2009-05-07 11:09:40 -07:00
Brett Chabot
8a101cb057 runtest.py bug fixes.
Improved error handling, and added support for "size" and "package" arguments.
Removed deprecated runtest shell script.
2009-05-05 13:06:00 -07:00
Nicolas Catania
ff096c1b7b Broaden the search for native test files.
Previously we were looking for test files with this pattern: test_*
I added *_test.[cc|cpp] and *_unittest.[cc|cpp]

The search also scan all the subdirectories of the build_path from
the test definition.

I added a filtering stage where missing tests are ignored.
For instance we may have a source file that has not been built for
the target, in which case it is ignored when we run the target tests.

In android_build.py I added 4 helper functions to get access to the
build environment:
- GetHostBin
- GetProductOut
- GetTargetSystemBin
- GetHostOsArch

Replace all the hardcoded linux-x86 strings with the value returned
by GetHostOsArch.
2009-05-02 09:10:44 -07:00
Nicolas Catania
1ecf93b37a Modified the command to run native test on the host:
- when valgrind is used, the output is discarded, always.
- otherwise, the output of the test is printed only when the test failed.
2009-04-30 19:27:52 -07:00
Nicolas Catania
97b24c4d65 Added a method in run_command.py to run a host test.
The run can also happen under valgrind.

runtest.py: Search for host test as well. Run these under valgrind.
2009-04-22 11:08:32 -07:00
Android (Google) Code Review
92ec994656 Merge change 69 into donut
* changes:
  Added single quotes around the shell command sent to the device. Without the quotes, the shell split the command and the echo statement gets dropped.
2009-04-10 10:48:20 -07:00
Niko Catania
fa14bd5728 Added single quotes around the shell command sent to the device.
Without the quotes, the shell split the command and the echo statement
gets dropped.
2009-04-09 16:50:54 -07:00
Yu Shan Emily Lau
6ae4dd48b6 AI 145444: am: CL 145062 Took out the muisc player test from the continuous build test.
Original author: yslau
  Merged from: //branches/cupcake/...

Automated import of CL 145444
2009-04-09 13:55:20 -07:00
Brett Chabot
134d899218 AI 145095: am: CL 144902 Fix default src lookup for code coverage.
Original author: brettchabot
  Merged from: //branches/cupcake/...

Automated import of CL 145095
2009-04-08 13:27:38 -07:00
Brett Chabot
2b6643b596 AI 144980: Fix runtest --coverage.
Automated import of CL 144980
2009-04-07 18:35:27 -07:00
Niko Catania
a6dc2abe8d AI 144500: Added support for some extra make arguments for some testsuite.
For instance the libstdc++ testsuite requires BIONIC_TESTS=1 to
  actually build the tests.
  * development/testrunner/test_defs.py:
  Parse the new extra_make_args attribute.
  * development/testrunner/runtest.py:
  Added support for extra make arguments. Some testsuite requires this to actually be built.
  Changed the log statement to log what is actually being done.
  * development/testrunner/test_defs.xml:
  Added extra make argument to enable the libstdc++ tests.

Automated import of CL 144500
2009-04-03 14:12:46 -07:00
Niko Catania
2e990b97d3 AI 144340: Added support to run native tests on the device.
The tests name must start with 'test_'.
  Tests should return 0 on success, 1 on failure.
  * development/testrunner/test_defs.xml:
  Added new element to represent native tests.
  * development/testrunner/test_defs.py:
  Added handling of the new <test-native> element.
  The testsuite has new IsNative method.
  TestDefinition's iterator is ordered by test names.
  Added GetDescription() method to access the optional description.
  * development/testrunner/runtest.py:
  Print the description next to the test name if applicable
  (runtest_py -l)
  Added a _RunNativeTest method to run a test on the target, report
  the status and clean up the test after the run.
  Added
  BUG=1601432

Automated import of CL 144340
2009-04-02 16:52:26 -07:00
Brett Chabot
f61f43e16b AI 144262: am: CL 144260 Add constant for test file name in runtest.
Original author: brettchabot
  Merged from: //branches/cupcake/...

Automated import of CL 144262
2009-04-02 11:52:48 -07:00
Brett Chabot
2d85c0eb06 AI 143819: am: CL 143765 Rename tests.xml to test_defs.xml
Original author: brettchabot
  Merged from: //branches/cupcake/...

Automated import of CL 143819
2009-03-31 15:19:13 -07:00
Yu Shan Emily Lau
a256470ec4 AI 143698: am: CL 143596 Removed all the obsoleted media related functional test suite. (incl, very old meidaProvider,
RingToneSettings and the flaky Music Player test.
  Original author: yslau
  Merged from: //branches/cupcake/...

Automated import of CL 143698
2009-03-31 11:25:02 -07:00
Brett Chabot
72731f3420 AI 143688: am: CL 143562 Usability fixes for runtest.py
Original author: brettchabot
  Merged from: //branches/cupcake/...

Automated import of CL 143688
2009-03-31 11:14:05 -07:00
Brett Chabot
511d471363 Automated import from //branches/donutburger/...@141815,141815 2009-03-24 20:56:49 -07:00