Commit Graph

10 Commits

Author SHA1 Message Date
Brett Chabot
8ac51186a6 Make coverage work without test defs.
Change-Id: I946df038e97dc5c2f40a4610d4076e13ab6bde37
2012-09-20 08:06:05 -07:00
Brett Chabot
b0fd2cf942 Fix runtest --path for package-private frameworks tests.
A recent change to runtest resulted in absolute paths incorrectly
being used for a tests build path. This broke the special logic
for frameworks/base tests, since it assumed relative build paths.
Change build paths back to relative paths.

Bug 5105885

Change-Id: I83a26be25294d501cca73eb1b88a7364131b2caf
2011-08-01 16:30:37 -07:00
Brett Chabot
ecfcc7da8e Fix runtest --path for tests built against SDK.
Bug 4556556

Change-Id: I3f829cae8f9fc1e64b3a44ac9e306b13b3cead7c
2011-07-17 14:06:20 -07:00
Brett Chabot
bb5918ed81 Add gtest target support for runtest --path.
This is a rough initial version. It makes several assumptions:
 - assumes each test source file is built into module with name equal
to basename of source file
 - assumes tests get installed into /data/nativetest

However, given those assumptions, both:
$ runtest --path <path to directory containing gtest source> and
$ runtest --path <path to single source file>
should work.

Coming soon: gtest host support

Bugs 4563370, 4584339

Change-Id: Ia42aeed7f9ee6402b0ceb7b5ccaaa66ac636fe49
2011-07-10 13:26:41 -07:00
Jean-Baptiste Queru
d9ef1df4a8 am e98ed06e: am d9380caf: Merge "Make runtest --path smarter when choosing path to build."
Merge commit 'e98ed06e17e28a11609caf133a08b3ced21a049a'

* commit 'e98ed06e17e28a11609caf133a08b3ced21a049a':
  Make runtest --path smarter when choosing path to build.
2010-08-30 13:28:09 -07:00
Brett Chabot
12c6d3fb68 Make runtest --path smarter when choosing path to build.
The command 'runtest --path <path to parent folder>'
is intended to find and build all tests contained within that parent folder.

However, the runtest logic was flawed in that it assumed building a parent
folder's Android.mk file would build all sub-directories.

This commit changes runtest to explictly look for the rule to build
sub-dir makefiles when creating the set of dirs to build.

Change-Id: Ia7f2172c1be79be8589be5f435fc4fb32569c994
2010-07-29 16:00:53 -07:00
Brian Carlstrom
90218acfdf runtest --path fails with symlinked ANDROID_BUILD_TOP
While reproducing b/2558977 I found that "runtest --path" did not work
for me because my ANDROID_BUILD_TOP contained a symlink. This is a
local fix to make FindTests use os.path.realpath instead of only half
using os.path.abspath when trying to make canonical paths to compare.

Change-Id: Ief353f52cb80b1798edc3c1233d1e082d9cebc26
2010-04-15 10:36:05 -07:00
Fred Quintana
75a73dc9fb fix runtest for unqualified Instrumentation class names
Change-Id: I0dcc9918b0bde568219d9085e8bbbc4cbba2b552
http://b/issue?id=2472406
2010-03-16 16:27:03 -07:00
Brett Chabot
4a5d9f1ba7 Replace runtest --cts option with more generic --suite option.
This will allow you to run a the set of test_defs with attribute suite="foo"
like this:
  runtest --suite foo

Bug 2401250
2010-02-19 09:42:17 -08:00
Brett Chabot
59b4778dd6 Add runtest --path.
This supports specifying a file system path to test(s) to run. The path can be
a java test class file, a java package directory, or a parent directory
containing many tests.

This change allows users to run tests independently from test_defs.xml.

BUG 2133198
2009-10-26 12:22:46 -07:00