From 13be0a5f982534a5bd3c0eabbcfbadb4c782bd4b Mon Sep 17 00:00:00 2001 From: Wenshan Fu Date: Thu, 29 Jun 2023 00:06:19 +0800 Subject: [PATCH] Create the TEST_MAPPING file Add FlagAnnotationTests in presubmit to ensure that test filtering rule always works as expected. Test: atest --test-mapping Bug: 277819423 Change-Id: I7cc3a70495f8d62ed7a5b26edc4fd240e73ccf61 --- tools/aconfig/TEST_MAPPING | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tools/aconfig/TEST_MAPPING diff --git a/tools/aconfig/TEST_MAPPING b/tools/aconfig/TEST_MAPPING new file mode 100644 index 0000000000..86124dd20d --- /dev/null +++ b/tools/aconfig/TEST_MAPPING @@ -0,0 +1,15 @@ +{ + "presubmit": [ + { + // Ensure changes on aconfig auto generated library is compatible with + // test testing filtering logic. Breakage on this test means all tests + // that using the flag annotations to do filtering will get affected. + "name": "FlagAnnotationTests", + "options": [ + { + "include-filter": "android.cts.flags.tests.FlagAnnotationTest" + } + ] + } + ] +}