Regenerate ART test files (2024-11-01).
This change enables build- and run-time support in automated
executions for the following tests in post-submit runs:
* `art-run-test-2282-checker-always-throws-try-catch`
* `art-run-test-2283-checker-remove-null-check`
Output of `art/test/utils/regen-test-files`:
$ art/test/utils/regen-test-files
Generated Blueprint files for 749 ART run-tests out of 1064 (70%).
Generated TEST_MAPPING entries for 467 ART run-tests out of 1064 (43%):
463 ART run-tests (99%) in `art-mainline-presubmit` test group.
463 ART run-tests (99%) in `mainline-presubmit` test group.
463 ART run-tests (99%) in `presubmit` test group.
4 ART run-tests (0%) in `postsubmit` test group.
25 ART gtests (96%) in `mainline-presubmit` test group.
25 ART gtests (96%) in `presubmit` test group.
1 ART gtests (3%) in `postsubmit` test group.
Note: Tests in `*presubmit` test groups are executed in pre- and
post-submit test runs. Tests in the `postsubmit` test group
are only executed in post-submit test runs.
Test: atest -a art-run-test-2282-checker-always-throws-try-catch
Test: atest -a art-run-test-2283-checker-remove-null-check
Test: atest --test-mapping art:postsubmit
Bug: 147812905
Bug: 152374989
Change-Id: I288d1f6df06ca713916552fa0fd6a90a3c265320
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 8c37a8a..0afc46d 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -5915,6 +5915,12 @@
],
"postsubmit": [
{
+ "name": "art-run-test-2282-checker-always-throws-try-catch"
+ },
+ {
+ "name": "art-run-test-2283-checker-remove-null-check"
+ },
+ {
"name": "art-run-test-858-checker-unsafe"
},
{
diff --git a/test/2282-checker-always-throws-try-catch/Android.bp b/test/2282-checker-always-throws-try-catch/Android.bp
new file mode 100644
index 0000000..566d89b
--- /dev/null
+++ b/test/2282-checker-always-throws-try-catch/Android.bp
@@ -0,0 +1,46 @@
+// Generated by `regen-test-files`. Do not edit manually.
+
+// Build rules for ART run-test `2282-checker-always-throws-try-catch`.
+
+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-2282-checker-always-throws-try-catch",
+ defaults: ["art-run-test-defaults"],
+ test_config_template: ":art-run-test-target-template",
+ srcs: ["src/**/*.java"],
+ data: [
+ ":art-run-test-2282-checker-always-throws-try-catch-expected-stdout",
+ ":art-run-test-2282-checker-always-throws-try-catch-expected-stderr",
+ ],
+ test_suites: [
+ "mts-art",
+ ],
+ // 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-2282-checker-always-throws-try-catch-expected-stdout",
+ out: ["art-run-test-2282-checker-always-throws-try-catch-expected-stdout.txt"],
+ srcs: ["expected-stdout.txt"],
+ cmd: "cp -f $(in) $(out)",
+}
+
+// Test's expected standard error.
+genrule {
+ name: "art-run-test-2282-checker-always-throws-try-catch-expected-stderr",
+ out: ["art-run-test-2282-checker-always-throws-try-catch-expected-stderr.txt"],
+ srcs: ["expected-stderr.txt"],
+ cmd: "cp -f $(in) $(out)",
+}
diff --git a/test/2283-checker-remove-null-check/Android.bp b/test/2283-checker-remove-null-check/Android.bp
new file mode 100644
index 0000000..4c0e669
--- /dev/null
+++ b/test/2283-checker-remove-null-check/Android.bp
@@ -0,0 +1,46 @@
+// Generated by `regen-test-files`. Do not edit manually.
+
+// Build rules for ART run-test `2283-checker-remove-null-check`.
+
+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-2283-checker-remove-null-check",
+ defaults: ["art-run-test-defaults"],
+ test_config_template: ":art-run-test-target-template",
+ srcs: ["src/**/*.java"],
+ data: [
+ ":art-run-test-2283-checker-remove-null-check-expected-stdout",
+ ":art-run-test-2283-checker-remove-null-check-expected-stderr",
+ ],
+ test_suites: [
+ "mts-art",
+ ],
+ // 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-2283-checker-remove-null-check-expected-stdout",
+ out: ["art-run-test-2283-checker-remove-null-check-expected-stdout.txt"],
+ srcs: ["expected-stdout.txt"],
+ cmd: "cp -f $(in) $(out)",
+}
+
+// Test's expected standard error.
+genrule {
+ name: "art-run-test-2283-checker-remove-null-check-expected-stderr",
+ out: ["art-run-test-2283-checker-remove-null-check-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 f149064..184bb28 100755
--- a/test/utils/regen-test-files
+++ b/test/utils/regen-test-files
@@ -240,6 +240,8 @@
postsubmit_only_tests = frozenset([
"858-checker-unsafe",
"859-checker-var-handles-intrinsics",
+ "2282-checker-always-throws-try-catch",
+ "2283-checker-remove-null-check",
])
known_failing_on_hwasan_tests = frozenset([