From 9fbfe26b27a7ff9068018e3c4808a545f577212c Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Thu, 14 Nov 2024 08:48:30 +0000 Subject: 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 --- test/Android.run-test.bp.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/Android.run-test.bp.py') 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", -- cgit v1.2.3-59-g8ed1b