1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2024 Google Inc. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<configuration description="CATBOX Longevity Base Configuration"> 17 <include name="catbox-performance-base"/> 18 19 <!-- Base Test Arguments --> 20 <option name="compatibility:test-arg" 21 value="com.android.tradefed.testtype.AndroidJUnitTest:runner:androidx.test.runner.AndroidJUnitRunner"/> 22 <option name="compatibility:test-arg" 23 value="com.android.tradefed.testtype.AndroidJUnitTest:no-rerun:true"/> 24 <!-- Set test timeout for 14 hours --> 25 <option name="compatibility:test-arg" 26 value="com.android.tradefed.testtype.AndroidJUnitTest:shell-timeout:50400000"/> 27 28 <!-- Install and start mock GPS injector --> 29 <option name="compatibility:test-arg" 30 value="com.android.tradefed.targetprep.RunCommandTargetPreparer:run-command:appops set android.support.test.locationsimulator android:mock_location allow"/> 31 <option name="compatibility:test-arg" 32 value="com.android.tradefed.targetprep.RunCommandTargetPreparer:run-command:am start-foreground-service -n android.support.test.locationsimulator/.LocationSimulatorService -e gpxFile /data/local/tmp/mtv_san.gpx"/> 33 34 <!-- Listeners --> 35 <option name="compatibility:module-arg" 36 value="AndroidAutomotiveLongevityTests:instrumentation-arg:listener:=android.device.collectors.CrashListener,android.device.collectors.CpuUsageListener,android.device.collectors.FreeMemListener,android.device.collectors.DumpsysMeminfoListener"/> 37 38 <!-- Metrics collectors --> 39 <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"/> 40 <option name="directory-keys" 41 value="/storage/emulated/10/test_results/ScheduledDumpsysMeminfoListener"/> 42 <option name="directory-keys" 43 value="/storage/emulated/10/test_results/ScheduledFreeMemListener"/> 44 <option name="directory-keys" 45 value="/storage/emulated/10/test_results/ScheduledProcCpuUtilizationListener"/> 46 <option name="collect-on-run-ended-only" value="true"/> 47 <metrics_collector class="com.android.tradefed.device.metric.PerfettoPullerMetricCollector"/> 48 <metrics_collector class="com.android.tradefed.device.metric.RebootReasonCollector"> 49 <option name="disable" value="false"/> 50 </metrics_collector> 51 <metrics_collector class="com.android.tradefed.device.metric.RuntimeRestartCollector"> 52 <option name="disable" value="false"/> 53 </metrics_collector> 54 55 <!-- Post Processors --> 56 <include name="catbox-performance-postprocessors"/> 57 58</configuration>