OSDN Git Service

Convert art gtests to Android.bp
authorColin Cross <ccross@android.com>
Mon, 12 Sep 2016 22:37:10 +0000 (15:37 -0700)
committerColin Cross <ccross@android.com>
Thu, 15 Sep 2016 19:27:06 +0000 (12:27 -0700)
commit6e95dd56e43b3a29fb8360bd94e31cd2eaab1d3d
treec536c5588f8a96f4559ca00921c7852a82558ea5
parent6b22aa5106e60545119b9eeaceaa9f87ee597305
Convert art gtests to Android.bp

This splits the compilation and running of the art gtests into two
separate locations.  The tests are now compiled in multiple Android.bp
modules in each directory.  art.go collects the installed locations of
each test and exports it as make variables.  art/build/Android.gtest.mk
converts the list into the rules to run the tests.

This has a few changes in behavior:
  - The rules to build tests are now always defined, and will build as
    part of mmma art or make checkbuild.
  - Host tests are no longer installed into out/host/linux-x86/bin, they
    are in out/host/linux-x86/nativetest[64]/<module name>/<test name>
  - Target tests are now in
    /data/nativetest[64]/art/<arch>/<module name>/<test name>

Test: mmma -j art
Test: m -j test-art-host
Test: m -j test-art-target
Change-Id: Iabcd99d43890e6b693688422b07a283c3226a496
16 files changed:
Android.bp
build/Android.gtest.mk
build/art.go
build/codegen.go
build/makevars.go
cmdline/Android.bp [new file with mode: 0644]
compiler/Android.bp
dex2oat/Android.bp
dexdump/Android.bp
dexlayout/Android.bp
dexlist/Android.bp
imgdiag/Android.bp
oatdump/Android.bp
profman/Android.bp
runtime/Android.bp
test/Android.bp