1 /*
2  * Copyright (C) 2010 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.cts.tradefed;
17 
18 import com.android.cts.tradefed.result.CtsXmlResultReporterTest;
19 import com.android.cts.tradefed.result.DeviceInfoResultTest;
20 import com.android.cts.tradefed.result.TestPackageResultTest;
21 import com.android.cts.tradefed.result.TestResultsTest;
22 import com.android.cts.tradefed.result.TestSummaryXmlTest;
23 import com.android.cts.tradefed.result.TestTest;
24 import com.android.cts.tradefed.result.TestLogTest;
25 import com.android.cts.tradefed.testtype.Abi;
26 import com.android.cts.tradefed.testtype.CtsTestTest;
27 import com.android.cts.tradefed.testtype.DeqpTestRunnerTest;
28 import com.android.cts.tradefed.testtype.GeeTestTest;
29 import com.android.cts.tradefed.testtype.JarHostTestTest;
30 import com.android.cts.tradefed.testtype.TestFilterTest;
31 import com.android.cts.tradefed.testtype.TestPackageDefTest;
32 import com.android.cts.tradefed.testtype.TestPackageXmlParserTest;
33 import com.android.cts.tradefed.testtype.TestPlanTest;
34 import com.android.cts.tradefed.testtype.WrappedGTestResultParserTest;
35 import com.android.tradefed.testtype.IAbi;
36 
37 import junit.framework.Test;
38 import junit.framework.TestSuite;
39 
40 /**
41  * A test suite for all cts-tradefed unit tests.
42  * <p/>
43  * All tests listed here should be self-contained, and do not require any external dependencies
44  * (such as a full CTS build with XML etc).
45  */
46 public class UnitTests extends TestSuite {
47 
48     public static final IAbi ABI = new Abi("armeabi-v7a", "32");
49 
UnitTests()50     public UnitTests() {
51         super();
52 
53         // result package
54         addTestSuite(CtsXmlResultReporterTest.class);
55         addTestSuite(DeviceInfoResultTest.class);
56         addTestSuite(TestPackageResultTest.class);
57         addTestSuite(TestResultsTest.class);
58         addTestSuite(TestSummaryXmlTest.class);
59         addTestSuite(TestTest.class);
60         addTestSuite(TestLogTest.class);
61 
62         // testtype package
63         addTestSuite(CtsTestTest.class);
64         addTestSuite(DeqpTestRunnerTest.class);
65         addTestSuite(GeeTestTest.class);
66         addTestSuite(JarHostTestTest.class);
67         addTestSuite(TestFilterTest.class);
68         addTestSuite(TestPackageDefTest.class);
69         addTestSuite(TestPackageXmlParserTest.class);
70         addTestSuite(TestPlanTest.class);
71         addTestSuite(WrappedGTestResultParserTest.class);
72     }
73 
suite()74     public static Test suite() {
75         return new UnitTests();
76     }
77 }
78