Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 | 6 |
| 7 assert(is_android) | 7 assert(is_android) |
| 8 | 8 |
| 9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) | 9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) |
| 10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) | 10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) |
| (...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1507 test_runner_args += [ | 1507 test_runner_args += [ |
| 1508 "--suite", | 1508 "--suite", |
| 1509 invoker.test_suite, | 1509 invoker.test_suite, |
| 1510 ] | 1510 ] |
| 1511 } else if (_test_type == "instrumentation") { | 1511 } else if (_test_type == "instrumentation") { |
| 1512 assert(defined(invoker.test_apk)) | 1512 assert(defined(invoker.test_apk)) |
| 1513 test_runner_args += [ | 1513 test_runner_args += [ |
| 1514 "--test-apk", | 1514 "--test-apk", |
| 1515 invoker.test_apk, | 1515 invoker.test_apk, |
| 1516 ] | 1516 ] |
| 1517 if (defined(invoker.support_apk_name)) { | |
| 1518 _support_apk_name = invoker.support_apk_name | |
| 1519 | |
| 1520 test_runner_args += [ | |
| 1521 "--support-apk", | |
| 1522 "apks/$_support_apk_name.apk", | |
|
dgn
2015/06/24 21:29:50
I tried to take a target (e.g. "//foo:foo_support_
jbudorick
2015/06/25 02:59:59
I'm not that familiar with GN idioms, so +cjhopman
cjhopman
2015/06/30 23:07:13
Yeah, can't really get the output from a label. Th
| |
| 1523 ] | |
| 1524 } | |
| 1517 } else { | 1525 } else { |
| 1518 assert(false, "Invalid test type: $_test_type.") | 1526 assert(false, "Invalid test type: $_test_type.") |
| 1519 } | 1527 } |
| 1520 | 1528 |
| 1521 if (defined(invoker.isolate_file)) { | 1529 if (defined(invoker.isolate_file)) { |
| 1522 test_runner_args += [ | 1530 test_runner_args += [ |
| 1523 "--isolate-file-path", | 1531 "--isolate-file-path", |
| 1524 rebase_path(invoker.isolate_file, root_build_dir), | 1532 rebase_path(invoker.isolate_file, root_build_dir), |
| 1525 ] | 1533 ] |
| 1526 } | 1534 } |
| 1527 | 1535 |
| 1528 generated_script = "$root_build_dir/bin/run_${_test_name}" | 1536 generated_script = "$root_build_dir/bin/run_${_test_name}" |
| 1529 outputs = [ | 1537 outputs = [ |
| 1530 depfile, | 1538 depfile, |
| 1531 generated_script, | 1539 generated_script, |
| 1532 ] | 1540 ] |
| 1533 args = [ | 1541 args = [ |
| 1534 "--depfile", | 1542 "--depfile", |
| 1535 rebase_path(depfile, root_build_dir), | 1543 rebase_path(depfile, root_build_dir), |
| 1536 "--script-output-path", | 1544 "--script-output-path", |
| 1537 rebase_path(generated_script, root_build_dir), | 1545 rebase_path(generated_script, root_build_dir), |
| 1538 ] | 1546 ] |
| 1539 args += test_runner_args | 1547 args += test_runner_args |
| 1540 } | 1548 } |
| 1541 } | 1549 } |
| OLD | NEW |