Fix benchmark unit tests.
Add benchmark file dependency in tests instead of using hard-coded path to bionic-benchmarks. In addition, add a TEST_MAPPING file so the tests run when benchmark files change. Test: All unit tests pass. Test: Ran atest bionic-benchmarks-tests. Change-Id: I95608f5b5e75d9d74930960a2431c9896b621ce8
This commit is contained in:
parent
2b12a6ed5f
commit
80b551ddc4
3 changed files with 2593 additions and 2571 deletions
|
@ -154,7 +154,13 @@ cc_test {
|
|||
"libbase",
|
||||
"libBionicBenchmarksUtils",
|
||||
],
|
||||
data: ["test_suites/*"],
|
||||
data: [
|
||||
"test_suites/*",
|
||||
"suites/*",
|
||||
":bionic-benchmarks",
|
||||
],
|
||||
test_suites: ["device-tests"],
|
||||
require_root: true,
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
|
|
7
benchmarks/TEST_MAPPING
Normal file
7
benchmarks/TEST_MAPPING
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"presubmit": [
|
||||
{
|
||||
"name": "bionic-benchmarks-tests"
|
||||
}
|
||||
]
|
||||
}
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue