OSDN Git Service

Broaden the search for native test files.
authorNicolas Catania <niko@google.com>
Fri, 1 May 2009 18:55:36 +0000 (11:55 -0700)
committerNicolas Catania <niko@google.com>
Sat, 2 May 2009 16:10:44 +0000 (09:10 -0700)
commit9aab757e885ae55dc30976367e648ef94574fd0e
tree4e9b02c403c31e89e86037fdbcde488c87c4f09b
parent9e6059ece281841b4f8975682d89b9b500ad88c2
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.