summaryrefslogtreecommitdiff
path: root/test/125-gc-and-classloading
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/125-gc-and-classloading
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/125-gc-and-classloading')
-rw-r--r--test/125-gc-and-classloading/Android.bp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/125-gc-and-classloading/Android.bp b/test/125-gc-and-classloading/Android.bp
index add9dea83b..f6e273e82e 100644
--- a/test/125-gc-and-classloading/Android.bp
+++ b/test/125-gc-and-classloading/Android.bp
@@ -1,6 +1,19 @@
// Generated by `regen-test-files`. Do not edit manually.
+
+// Build rules for ART run-test `125-gc-and-classloading`.
+
+// Test's Dex code.
java_test {
name: "art-run-test-125-gc-and-classloading",
defaults: ["art-run-test-defaults"],
srcs: ["src/**/*.java"],
+ data: [":art-run-test-125-gc-and-classloading-expected"],
+}
+
+// Test's expected output.
+genrule {
+ name: "art-run-test-125-gc-and-classloading-expected",
+ out: ["art-run-test-125-gc-and-classloading-expected.txt"],
+ srcs: ["expected.txt"],
+ cmd: "cp -f $(in) $(out)",
}