Commit Graph

12 Commits

Author SHA1 Message Date
Brett Chabot
99e5f91aab Fix runcommand logging exception.
BUG 2215978
2009-10-26 17:52:34 -07:00
Brett Chabot
1d9928aaf7 Import testrunner changes from puppetmaster to keep them in sync. 2009-09-29 15:34:20 -07:00
Brett Chabot
2477b388ec Add workaround to runtest to build cts dependencies.
BUG 2141242
2009-09-24 13:23:50 -07:00
niko
2dafd06c18 Fix bug to be able to run binaries under valgrind. 2009-07-07 13:22: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
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
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
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
The Android Open Source Project
2b83cbdb14 auto import from //depot/cupcake/@136654 2009-03-05 17:04:45 -08:00