summaryrefslogtreecommitdiff
path: root/test/1914-get-local-instance
diff options
context:
space:
mode:
author Roland Levillain <rpl@google.com> 2020-09-08 16:36:13 +0100
committer Roland Levillain <rpl@google.com> 2020-09-09 10:21:47 +0000
commit6b0b2e711fdb9a1852705318dda2b5139d30f7a5 (patch)
tree6300c21da263373f4a286ae55e9f5b88a09f3965 /test/1914-get-local-instance
parent6f0c8b976ac84215129fe7cca0b0ef26d9af0554 (diff)
Rename the expected-output text file in built TradeFed ART run-tests.
Test suite packages (e.g. `android-mts.zip`) flatten tests artifacts into a single `testcases` directory, therefore each included file must have a unique name. Have the build system rename every `expected.txt` file to a unique name when building TradeFed-style ART run-tests. Test: atest art-run-test-001-HelloWorld Bug: 147812905 Change-Id: I0d433d0a611cb5214ae366e2c1af214e41c127f0
Diffstat (limited to 'test/1914-get-local-instance')
-rw-r--r--test/1914-get-local-instance/Android.bp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/1914-get-local-instance/Android.bp b/test/1914-get-local-instance/Android.bp
index 8b2a9ba04a..a34c5e8e6c 100644
--- a/test/1914-get-local-instance/Android.bp
+++ b/test/1914-get-local-instance/Android.bp
@@ -1,6 +1,19 @@
// Generated by `regen-test-files`. Do not edit manually.
+
+// Build rules for ART run-test `1914-get-local-instance`.
+
+// Test's Dex code.
java_test {
name: "art-run-test-1914-get-local-instance",
defaults: ["art-run-test-defaults"],
srcs: ["src/**/*.java"],
+ data: [":art-run-test-1914-get-local-instance-expected"],
+}
+
+// Test's expected output.
+genrule {
+ name: "art-run-test-1914-get-local-instance-expected",
+ out: ["art-run-test-1914-get-local-instance-expected.txt"],
+ srcs: ["expected.txt"],
+ cmd: "cp -f $(in) $(out)",
}