Add presubmit configs for VTS

Bug: 152907288
Test: forrest
Change-Id: I344b6820cf38a95e431072de18341e44015b1670
diff --git a/tools/vts-core-tradefed/res/config/vts-presubmit-exclude.xml b/tools/vts-core-tradefed/res/config/vts-presubmit-exclude.xml
new file mode 100644
index 0000000..a838b5e
--- /dev/null
+++ b/tools/vts-core-tradefed/res/config/vts-presubmit-exclude.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2020 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<configuration description="Excluded tests from vts-presubmit-* plan runs">
+
+    <!-- vts_ltp_test_arm_* test cases taking longer than 15 seconds -->
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 cve.cve-2011-0999_64bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 fs.linker01_64bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 nptl.nptl01_64bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 mm.mmapstress06_64bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 fs.fs_di_64bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 dio.dio23_64bit" />
+
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_32 cve.cve-2011-0999_32bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_32 fs.linker01_32bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_32 nptl.nptl01_32bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_32 mm.mmapstress06_32bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_32 fs.fs_di_32bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_32 dio.dio23_32bit" />
+
+    <!-- b/118340949: temporally disable kernel test cases that takes 2+ minutes to finish -->
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 dio.dio16_64bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 dio.dio17_64bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 dio.dio20_64bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 dio.dio21_64bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 dio.dio24_64bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 dio.dio25_64bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 dio.dio27_64bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 dio.dio28_64bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm_64 mm.mtest06_64bit" />
+
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm dio.dio16_32bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm dio.dio17_32bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm dio.dio20_32bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm dio.dio21_32bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm dio.dio24_32bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm dio.dio25_32bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm dio.dio27_32bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm dio.dio28_32bit" />
+    <option name="compatibility:exclude-filter" value="vts_ltp_test_arm mm.mtest06_32bit" />
+
+</configuration>
\ No newline at end of file
diff --git a/tools/vts-core-tradefed/res/config/vts-presubmit-kernel.xml b/tools/vts-core-tradefed/res/config/vts-presubmit-kernel.xml
new file mode 100644
index 0000000..a9367a8
--- /dev/null
+++ b/tools/vts-core-tradefed/res/config/vts-presubmit-kernel.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2020 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<configuration description="VTS Presubmit Kernel Test Plan">
+    <include name="vts" />
+    <include name="vts-presubmit-exclude" />
+
+    <option name="plan" value="vts-presubmit-kernel" />
+    <option name="test-tag" value="vts-presubmit-kernel" />
+
+    <option name="compatibility:include-filter" value="binderDriverInterfaceTest" />
+    <option name="compatibility:include-filter" value="binderLibTest" />
+    <option name="compatibility:include-filter" value="binderSafeInterfaceTest  " />
+    <option name="compatibility:include-filter" value="memunreachable_binder_test" />
+    <option name="compatibility:include-filter" value="KernelLibcutilsTest" />
+    <option name="compatibility:include-filter" value="vts_ltp_test_arm_64" />
+    <option name="compatibility:include-filter" value="vts_ltp_test_arm" />
+    <option name="compatibility:include-filter" value="vts_kernel_proc_file_api_test" />
+
+</configuration>
diff --git a/tools/vts-core-tradefed/res/config/vts-presubmit.xml b/tools/vts-core-tradefed/res/config/vts-presubmit.xml
new file mode 100644
index 0000000..c4bb588
--- /dev/null
+++ b/tools/vts-core-tradefed/res/config/vts-presubmit.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2020 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<configuration description="VTS Presubmit Test Plan">
+  <include name="vts" />
+  <include name="vts-presubmit-exclude" />
+
+  <option name="plan" value="vts-presubmit" />
+  <option name="test-tag" value="vts-presubmit" />
+
+  <option name="compatibility:include-filter" value="VtsHalAudioV4_0TargetTest" />
+  <option name="compatibility:include-filter" value="VtsHalBluetoothA2dpV1_0TargetTest" />
+  <option name="compatibility:include-filter" value="VtsHalMediaOmxV1_0TargetComponentTest" />
+  <option name="compatibility:include-filter" value="VtsHalMediaOmxV1_0TargetAudioEncTest" />
+  <option name="compatibility:include-filter" value="VtsHalMediaOmxV1_0TargetAudioDecTest" />
+  <option name="compatibility:include-filter" value="VtsHalMediaOmxV1_0TargetMasterTest" />
+  <option name="compatibility:include-filter" value="VtsHalMediaOmxV1_0TargetVideoDecTest" />
+  <option name="compatibility:include-filter" value="VtsHalMediaOmxV1_0TargetVideoEncTest" />
+  <option name="compatibility:include-filter" value="VtsHalMediaOmxV1_0TargetMasterTest" />
+  <option name="compatibility:include-filter" value="VtsHalMediaC2V1_0TargetAudioDecTest" />
+  <option name="compatibility:include-filter" value="VtsHalMediaC2V1_0TargetAudioEncTest" />
+  <option name="compatibility:include-filter" value="VtsHalMediaC2V1_0TargetComponentTest" />
+  <option name="compatibility:include-filter" value="VtsHalMediaC2V1_0TargetMasterTest" />
+  <option name="compatibility:include-filter" value="VtsHalMediaC2V1_0TargetVideoDecTest" />
+  <option name="compatibility:include-filter" value="VtsHalMediaC2V1_0TargetVideoEncTest" />
+  <option name="compatibility:include-filter" value="vts_treble_vintf_vendor_test" />
+
+</configuration>
\ No newline at end of file