summaryrefslogtreecommitdiff
path: root/test/Android.run-test.bp.py
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2024-11-14 08:48:30 +0000
committer David Srbecky <dsrbecky@google.com> 2024-11-15 20:25:26 +0000
commit9fbfe26b27a7ff9068018e3c4808a545f577212c (patch)
tree93e1ab737145f4f88165d96f84c1c5694a503501 /test/Android.run-test.bp.py
parentb881f3015e1cae94232d4925b2f4c855ea32a404 (diff)
run-test: Create boot-image-compilation script
Add script which compiles the boot image to the run-test zip file. Also add json file with all the test rules. Each rule can adb-push data from the zip file, and adb-shell execute any pushed bash script. The boot-image compilation is just another rule, and the other rules have a dependency on it. Therefore it will execute first and only once. Test: Install ART test APEX on device and manually perform the commands Change-Id: I70bad11b11f81a427bf16eecd773dc10c34ff664
Diffstat (limited to 'test/Android.run-test.bp.py')
-rwxr-xr-xtest/Android.run-test.bp.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/Android.run-test.bp.py b/test/Android.run-test.bp.py
index d7934661b3..e208672b11 100755
--- a/test/Android.run-test.bp.py
+++ b/test/Android.run-test.bp.py
@@ -111,16 +111,13 @@ def main():
f.write(textwrap.dedent(f"""
genrule_defaults {{
name: "art-run-test-{mode}-data-defaults",
- tool_files: [
- "run_test_build.py",
- ":art-run-test-bootclasspath",
- ],
srcs: [
// Since genrules are sandboxed, all the sources they use must be listed in
// the Android.bp file. Some tests have symlinks to files from other tests, and
// those must also be listed to avoid a dangling symlink in the sandbox.
"jvmti-common/*.java",
"utils/python/**/*.py",
+ ":art-run-test-bootclasspath",
":development_docs",
":asm-9.6-filegroup",
":ojluni-AbstractCollection",
@@ -135,7 +132,9 @@ def main():
"testrunner/*.py",
"knownfailures.json",
"default_run.py",
+ "globals.py",
"run-test",
+ "run_test_build.py",
],
tools: [
"android-smali",