Regenerate ART test files (2022-10-28).
This change enables build-time support in automated executions
for the following tests:
* `art-run-test-844-exception`
* `art-run-test-844-exception2`
This change enables build- and run-time support in automated
executions for the following test:
* `art-run-test-2242-checker-lse-acquire-release-operations`
* `art-run-test-2243-checker-not-inline-into-throw`
Output of `art/test/utils/regen-test-files`:
$ art/test/utils/regen-test-files
Generated Blueprint files for 675 ART run-tests out of 973 (69%).
Generated TEST_MAPPING entries for 417 ART run-tests out of 973 (42%):
417 ART run-tests (100%) in `mainline-presubmit` test group.
22 ART gtests (100%) in `mainline-presubmit` test group.
417 ART run-tests (100%) in `presubmit` test group.
22 ART gtests (100%) in `presubmit` test group.
Test: atest -a art-run-test-2242-checker-lse-acquire-release-operations
Test: atest -a art-run-test-2243-checker-not-inline-into-throw
Test: atest --test-mapping art:presubmit
Bug: 147814778
Bug: 147812905
Bug: 152374989
Change-Id: If99ec87fe8d339bf0f80cee9a73140b573a4b4cf
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 789e809..f75fb5d 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -425,6 +425,12 @@
"name": "art-run-test-2241-checker-inline-try-catch[com.google.android.art.apex]"
},
{
+ "name": "art-run-test-2242-checker-lse-acquire-release-operations[com.google.android.art.apex]"
+ },
+ {
+ "name": "art-run-test-2243-checker-not-inline-into-throw[com.google.android.art.apex]"
+ },
+ {
"name": "art-run-test-300-package-override[com.google.android.art.apex]"
},
{
@@ -1756,6 +1762,12 @@
"name": "art-run-test-2241-checker-inline-try-catch"
},
{
+ "name": "art-run-test-2242-checker-lse-acquire-release-operations"
+ },
+ {
+ "name": "art-run-test-2243-checker-not-inline-into-throw"
+ },
+ {
"name": "art-run-test-300-package-override"
},
{
@@ -3081,6 +3093,12 @@
"name": "art-run-test-2241-checker-inline-try-catch"
},
{
+ "name": "art-run-test-2242-checker-lse-acquire-release-operations"
+ },
+ {
+ "name": "art-run-test-2243-checker-not-inline-into-throw"
+ },
+ {
"name": "art-run-test-300-package-override"
},
{
diff --git a/test/2242-checker-lse-acquire-release-operations/Android.bp b/test/2242-checker-lse-acquire-release-operations/Android.bp
new file mode 100644
index 0000000..bb493ce
--- /dev/null
+++ b/test/2242-checker-lse-acquire-release-operations/Android.bp
@@ -0,0 +1,43 @@
+// Generated by `regen-test-files`. Do not edit manually.
+
+// Build rules for ART run-test `2242-checker-lse-acquire-release-operations`.
+
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "art_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Apache-2.0
+ default_applicable_licenses: ["art_license"],
+}
+
+// Test's Dex code.
+java_test {
+ name: "art-run-test-2242-checker-lse-acquire-release-operations",
+ defaults: ["art-run-test-defaults"],
+ test_config_template: ":art-run-test-target-template",
+ srcs: ["src/**/*.java"],
+ data: [
+ ":art-run-test-2242-checker-lse-acquire-release-operations-expected-stdout",
+ ":art-run-test-2242-checker-lse-acquire-release-operations-expected-stderr",
+ ],
+ // Include the Java source files in the test's artifacts, to make Checker assertions
+ // available to the TradeFed test runner.
+ include_srcs: true,
+}
+
+// Test's expected standard output.
+genrule {
+ name: "art-run-test-2242-checker-lse-acquire-release-operations-expected-stdout",
+ out: ["art-run-test-2242-checker-lse-acquire-release-operations-expected-stdout.txt"],
+ srcs: ["expected-stdout.txt"],
+ cmd: "cp -f $(in) $(out)",
+}
+
+// Test's expected standard error.
+genrule {
+ name: "art-run-test-2242-checker-lse-acquire-release-operations-expected-stderr",
+ out: ["art-run-test-2242-checker-lse-acquire-release-operations-expected-stderr.txt"],
+ srcs: ["expected-stderr.txt"],
+ cmd: "cp -f $(in) $(out)",
+}
diff --git a/test/2243-checker-not-inline-into-throw/Android.bp b/test/2243-checker-not-inline-into-throw/Android.bp
new file mode 100644
index 0000000..78c5c66
--- /dev/null
+++ b/test/2243-checker-not-inline-into-throw/Android.bp
@@ -0,0 +1,43 @@
+// Generated by `regen-test-files`. Do not edit manually.
+
+// Build rules for ART run-test `2243-checker-not-inline-into-throw`.
+
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "art_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Apache-2.0
+ default_applicable_licenses: ["art_license"],
+}
+
+// Test's Dex code.
+java_test {
+ name: "art-run-test-2243-checker-not-inline-into-throw",
+ defaults: ["art-run-test-defaults"],
+ test_config_template: ":art-run-test-target-template",
+ srcs: ["src/**/*.java"],
+ data: [
+ ":art-run-test-2243-checker-not-inline-into-throw-expected-stdout",
+ ":art-run-test-2243-checker-not-inline-into-throw-expected-stderr",
+ ],
+ // Include the Java source files in the test's artifacts, to make Checker assertions
+ // available to the TradeFed test runner.
+ include_srcs: true,
+}
+
+// Test's expected standard output.
+genrule {
+ name: "art-run-test-2243-checker-not-inline-into-throw-expected-stdout",
+ out: ["art-run-test-2243-checker-not-inline-into-throw-expected-stdout.txt"],
+ srcs: ["expected-stdout.txt"],
+ cmd: "cp -f $(in) $(out)",
+}
+
+// Test's expected standard error.
+genrule {
+ name: "art-run-test-2243-checker-not-inline-into-throw-expected-stderr",
+ out: ["art-run-test-2243-checker-not-inline-into-throw-expected-stderr.txt"],
+ srcs: ["expected-stderr.txt"],
+ cmd: "cp -f $(in) $(out)",
+}
diff --git a/test/844-exception/Android.bp b/test/844-exception/Android.bp
new file mode 100644
index 0000000..92ecef4
--- /dev/null
+++ b/test/844-exception/Android.bp
@@ -0,0 +1,40 @@
+// Generated by `regen-test-files`. Do not edit manually.
+
+// Build rules for ART run-test `844-exception`.
+
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "art_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Apache-2.0
+ default_applicable_licenses: ["art_license"],
+}
+
+// Test's Dex code.
+java_test {
+ name: "art-run-test-844-exception",
+ defaults: ["art-run-test-defaults"],
+ test_config_template: ":art-run-test-target-no-test-suite-tag-template",
+ srcs: ["src/**/*.java"],
+ data: [
+ ":art-run-test-844-exception-expected-stdout",
+ ":art-run-test-844-exception-expected-stderr",
+ ],
+}
+
+// Test's expected standard output.
+genrule {
+ name: "art-run-test-844-exception-expected-stdout",
+ out: ["art-run-test-844-exception-expected-stdout.txt"],
+ srcs: ["expected-stdout.txt"],
+ cmd: "cp -f $(in) $(out)",
+}
+
+// Test's expected standard error.
+genrule {
+ name: "art-run-test-844-exception-expected-stderr",
+ out: ["art-run-test-844-exception-expected-stderr.txt"],
+ srcs: ["expected-stderr.txt"],
+ cmd: "cp -f $(in) $(out)",
+}
diff --git a/test/844-exception2/Android.bp b/test/844-exception2/Android.bp
new file mode 100644
index 0000000..50568b1
--- /dev/null
+++ b/test/844-exception2/Android.bp
@@ -0,0 +1,40 @@
+// Generated by `regen-test-files`. Do not edit manually.
+
+// Build rules for ART run-test `844-exception2`.
+
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "art_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Apache-2.0
+ default_applicable_licenses: ["art_license"],
+}
+
+// Test's Dex code.
+java_test {
+ name: "art-run-test-844-exception2",
+ defaults: ["art-run-test-defaults"],
+ test_config_template: ":art-run-test-target-no-test-suite-tag-template",
+ srcs: ["src/**/*.java"],
+ data: [
+ ":art-run-test-844-exception2-expected-stdout",
+ ":art-run-test-844-exception2-expected-stderr",
+ ],
+}
+
+// Test's expected standard output.
+genrule {
+ name: "art-run-test-844-exception2-expected-stdout",
+ out: ["art-run-test-844-exception2-expected-stdout.txt"],
+ srcs: ["expected-stdout.txt"],
+ cmd: "cp -f $(in) $(out)",
+}
+
+// Test's expected standard error.
+genrule {
+ name: "art-run-test-844-exception2-expected-stderr",
+ out: ["art-run-test-844-exception2-expected-stderr.txt"],
+ srcs: ["expected-stderr.txt"],
+ cmd: "cp -f $(in) $(out)",
+}
diff --git a/test/utils/regen-test-files b/test/utils/regen-test-files
index db6ba3d..6c648fc 100755
--- a/test/utils/regen-test-files
+++ b/test/utils/regen-test-files
@@ -204,6 +204,10 @@
"832-cha-recursive",
# 837-deopt: Dependency on `libarttest`.
"837-deopt",
+ # 844-exception: Dependency on `libarttest`.
+ "844-exception",
+ # 844-exception2: Dependency on `libarttest`.
+ "844-exception2",
# 993-breakpoints-non-debuggable: This test needs native code.
"993-breakpoints-non-debuggable",
])