blob: 9f17b313ad6022efda12151f9fafd3c190e109d1 [file]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2026 The Android Open Source Project -->
<configuration description="Config for App Memory Host Tests">
<option name="test-suite-tag" value="apct"/>
<option name="config-descriptor:metadata" key="test-type" value="performance" />
<!-- This test requires root to register kprobes and run cow_estimator. -->
<target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" />
<!-- Disable SELinux to allow kprobes and system-wide simpleperf -->
<target_preparer class="com.android.tradefed.targetprep.DisableSELinuxTargetPreparer" />
<!-- Set up directory -->
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
<option name="run-command" value="rm -rf /data/local/tmp/appmemorytest"/>
<option name="run-command" value="mkdir -p /data/local/tmp/appmemorytest"/>
<option name="run-command" value="chmod a+rw /data/local/tmp/appmemorytest"/>
</target_preparer>
<!-- Push cow_estimator_helper to /data/local/tmp/cow_estimator_helper -->
<target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
<option name="cleanup" value="true" />
<option name="push" value="cow_estimator_helper->/data/local/tmp/cow_estimator_helper" />
</target_preparer>
<target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
<option name="cleanup-apks" value="true"/>
<option name="test-file-name" value="AppMemoryTest_Helper.apk"/>
<option name="install-arg" value="-t"/>
</target_preparer>
<!-- Host-side test runner -->
<test class="com.android.tradefed.testtype.HostTest" >
<option name="class" value="android.app.memory.tests.host.AppMemoryCoWHostTest" />
</test>
<metric_post_processor class="com.android.tradefed.postprocessor.MetricFilePostProcessor"/>
</configuration>