summaryrefslogtreecommitdiff
path: root/adservices/tests
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2024-01-08 17:52:50 -0800
committerFelipe Leme <felipeal@google.com>2024-01-09 07:57:14 -0800
commit470095de864e7342f07cb277cffaea613106821b (patch)
tree2f9335e256d64de197227069aab599dc2dace961 /adservices/tests
parentdb57ff4d0b0058ce7eaae317f6a6eb44748709a1 (diff)
downloadAdServices-470095de864e7342f07cb277cffaea613106821b.tar.gz
Make AdServicesTestUtilityTests "atest friendly"
Test: atest AdServicesTestUtilityTests Bug: 313442404 Change-Id: I89ce8038b251d6d35c897c500cc17193f8009c8d
Diffstat (limited to 'adservices/tests')
-rw-r--r--adservices/tests/unittest/adservices-test-utility/AndroidTest.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/adservices/tests/unittest/adservices-test-utility/AndroidTest.xml b/adservices/tests/unittest/adservices-test-utility/AndroidTest.xml
index 61f6fadace..4893bd4eba 100644
--- a/adservices/tests/unittest/adservices-test-utility/AndroidTest.xml
+++ b/adservices/tests/unittest/adservices-test-utility/AndroidTest.xml
@@ -28,4 +28,13 @@
<object type="module_controller"
class="com.android.tradefed.testtype.suite.module.Sdk31ModuleController" />
+ <!-- Entries below are neceessary so atest can run specific test classes without specifying the
+ module name (for example: atest AndroidSdkRangeTest) -->
+ <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
+ <option name="cleanup-apks" value="true" />
+ <option name="test-file-name" value="AdServicesTestUtilityTests.apk" />
+ </target_preparer>
+ <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
+ <option name="package" value="com.android.adservices.testutil.tests" />
+ </test>
</configuration>