summaryrefslogtreecommitdiff
path: root/test/957-methodhandle-transforms/build.py
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2022-04-20 13:37:15 +0100
committer David Srbecky <dsrbecky@google.com> 2022-06-28 15:22:27 +0000
commit8106b381a83ceef80ff0f458fd12251f86294c05 (patch)
tree78470652231edc2597398eac9bf9212ee01a880a /test/957-methodhandle-transforms/build.py
parent868e576d4f67026bb7109286f922cb26e0e84145 (diff)
Convert run-test bash build scripts to python.
Tests use the build script for two distinct purposes: * Some tests generate their source code before completion. Keep this code in bash for now and rename it "generate-sources". * To customize arguments passed to the default compilation script. Since the default compilation script is in python, make this a normal python call, and add any customization as arguments. This speeds up the run-test compilation. There was small cost to pay due to the switching from python to bash to python. This added up for the thousands of run-test compilations that we do. It also removes the need for argument parser in the default script. We could also remove the data passing via environment (to-do later). It moves the definition to more build-system-like look and feel. Test: The outputs are bit-for-bit identical as before. Change-Id: Idca4181a4676036f06aae0a8f6eea3a3c30d390e
Diffstat (limited to 'test/957-methodhandle-transforms/build.py')
-rw-r--r--test/957-methodhandle-transforms/build.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/957-methodhandle-transforms/build.py b/test/957-methodhandle-transforms/build.py
new file mode 100644
index 0000000000..e8e08ebd8b
--- /dev/null
+++ b/test/957-methodhandle-transforms/build.py
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2022 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from art_build_rules import build_run_test
+
+build_run_test(experimental="method-handles")