1 /* 2 * Copyright (C) 2015 The Android Open Source Project 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 package com.android.compatibility.common.tradefed; 17 18 import com.android.compatibility.common.tradefed.build.CompatibilityBuildHelperTest; 19 import com.android.compatibility.common.tradefed.build.CompatibilityBuildProviderTest; 20 import com.android.compatibility.common.tradefed.command.CompatibilityConsoleTest; 21 import com.android.compatibility.common.tradefed.config.ConfigurationFactoryTest; 22 import com.android.compatibility.common.tradefed.presubmit.ApkPackageNameCheck; 23 import com.android.compatibility.common.tradefed.presubmit.CtsConfigLoadingTest; 24 import com.android.compatibility.common.tradefed.presubmit.DupFileTest; 25 import com.android.compatibility.common.tradefed.presubmit.IntegrationTest; 26 import com.android.compatibility.common.tradefed.presubmit.PresubmitSetupValidation; 27 import com.android.compatibility.common.tradefed.presubmit.ValidateTestsAbi; 28 import com.android.compatibility.common.tradefed.result.ChecksumReporterTest; 29 import com.android.compatibility.common.tradefed.result.ConsoleReporterTest; 30 import com.android.compatibility.common.tradefed.result.MetadataReporterTest; 31 import com.android.compatibility.common.tradefed.result.ResultReporterBuildInfoTest; 32 import com.android.compatibility.common.tradefed.result.ResultReporterTest; 33 import com.android.compatibility.common.tradefed.result.SubPlanHelperTest; 34 import com.android.compatibility.common.tradefed.result.suite.CertificationChecksumHelperTest; 35 import com.android.compatibility.common.tradefed.result.suite.CertificationSuiteResultReporterTest; 36 import com.android.compatibility.common.tradefed.result.suite.PreviousResultLoaderTest; 37 import com.android.compatibility.common.tradefed.result.suite.PreviousSessionFileCopierTest; 38 import com.android.compatibility.common.tradefed.targetprep.BusinessLogicPreparerTest; 39 import com.android.compatibility.common.tradefed.targetprep.DeviceInfoCollectorTest; 40 import com.android.compatibility.common.tradefed.targetprep.DeviceInteractionHelperInstallerTest; 41 import com.android.compatibility.common.tradefed.targetprep.DynamicConfigPusherTest; 42 import com.android.compatibility.common.tradefed.targetprep.MediaPreparerTest; 43 import com.android.compatibility.common.tradefed.targetprep.PropertyCheckTest; 44 import com.android.compatibility.common.tradefed.targetprep.SettingsPreparerTest; 45 import com.android.compatibility.common.tradefed.targetprep.VtsDeviceInfoCollectorTest; 46 import com.android.compatibility.common.tradefed.testtype.CompatibilityTestTest; 47 import com.android.compatibility.common.tradefed.testtype.JarHostTestTest; 48 import com.android.compatibility.common.tradefed.testtype.ModuleDefTest; 49 import com.android.compatibility.common.tradefed.testtype.ModuleRepoTest; 50 import com.android.compatibility.common.tradefed.testtype.SubPlanTest; 51 import com.android.compatibility.common.tradefed.testtype.retry.RetryFactoryTestTest; 52 import com.android.compatibility.common.tradefed.util.CollectorUtilTest; 53 import com.android.compatibility.common.tradefed.util.DynamicConfigFileReaderTest; 54 import com.android.compatibility.common.tradefed.util.OptionHelperTest; 55 import com.android.compatibility.common.tradefed.util.RetryFilterHelperTest; 56 import com.android.compatibility.common.tradefed.util.UniqueModuleCountUtilTest; 57 58 import org.junit.runner.RunWith; 59 import org.junit.runners.Suite; 60 import org.junit.runners.Suite.SuiteClasses; 61 62 /** 63 * A test suite for all compatibility tradefed unit tests. 64 * 65 * <p>All tests listed here should be self-contained, and do not require any external dependencies. 66 */ 67 @RunWith(Suite.class) 68 @SuiteClasses({ 69 // build 70 CompatibilityBuildHelperTest.class, 71 CompatibilityBuildProviderTest.class, 72 73 // command 74 CompatibilityConsoleTest.class, 75 76 // config 77 ConfigurationFactoryTest.class, 78 79 // presubmit 80 ApkPackageNameCheck.class, 81 CtsConfigLoadingTest.class, 82 DupFileTest.class, 83 IntegrationTest.class, 84 PresubmitSetupValidation.class, 85 ValidateTestsAbi.class, 86 87 // result 88 ChecksumReporterTest.class, 89 ConsoleReporterTest.class, 90 MetadataReporterTest.class, 91 ResultReporterBuildInfoTest.class, 92 ResultReporterTest.class, 93 SubPlanHelperTest.class, 94 95 // result.suite 96 CertificationChecksumHelperTest.class, 97 CertificationSuiteResultReporterTest.class, 98 PreviousResultLoaderTest.class, 99 PreviousSessionFileCopierTest.class, 100 101 // targetprep 102 BusinessLogicPreparerTest.class, 103 DeviceInfoCollectorTest.class, 104 DeviceInteractionHelperInstallerTest.class, 105 DynamicConfigPusherTest.class, 106 MediaPreparerTest.class, 107 PropertyCheckTest.class, 108 SettingsPreparerTest.class, 109 VtsDeviceInfoCollectorTest.class, 110 111 // testtype 112 CompatibilityTestTest.class, 113 JarHostTestTest.class, 114 ModuleDefTest.class, 115 ModuleRepoTest.class, 116 SubPlanTest.class, 117 118 // testtype.retry 119 RetryFactoryTestTest.class, 120 121 // util 122 CollectorUtilTest.class, 123 DynamicConfigFileReaderTest.class, 124 OptionHelperTest.class, 125 RetryFilterHelperTest.class, 126 UniqueModuleCountUtilTest.class, 127 }) 128 public class UnitTests { 129 // empty on purpose 130 } 131