Brett Chabot | 74121d8 | 2010-01-28 20:14:27 -0800 | [diff] [blame] | 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.tradefed; |
| 17 | |
Brett Chabot | 5e4bc50 | 2010-06-10 20:10:30 -0700 | [diff] [blame^] | 18 | import com.android.tradefed.command.CommandFileTest; |
Brett Chabot | 74121d8 | 2010-01-28 20:14:27 -0800 | [diff] [blame] | 19 | import com.android.tradefed.command.CommandTest; |
Brett Chabot | 74121d8 | 2010-01-28 20:14:27 -0800 | [diff] [blame] | 20 | import com.android.tradefed.config.ArgsOptionParserTest; |
Brett Chabot | e278a5b | 2010-06-01 16:20:14 -0700 | [diff] [blame] | 21 | import com.android.tradefed.config.ConfigurationDefTest; |
Brett Chabot | a08f718 | 2010-03-08 18:55:38 -0800 | [diff] [blame] | 22 | import com.android.tradefed.config.ConfigurationFactoryTest; |
Brett Chabot | 5e4bc50 | 2010-06-10 20:10:30 -0700 | [diff] [blame^] | 23 | import com.android.tradefed.config.ConfigurationTest; |
Brett Chabot | e278a5b | 2010-06-01 16:20:14 -0700 | [diff] [blame] | 24 | import com.android.tradefed.config.ConfigurationXmlParserTest; |
Brett Chabot | a08f718 | 2010-03-08 18:55:38 -0800 | [diff] [blame] | 25 | import com.android.tradefed.config.OptionParserTest; |
Brett Chabot | 74121d8 | 2010-01-28 20:14:27 -0800 | [diff] [blame] | 26 | import com.android.tradefed.device.DeviceManagerTest; |
Brett Chabot | ac3a79e | 2010-05-26 13:46:36 -0700 | [diff] [blame] | 27 | import com.android.tradefed.device.DeviceStateMonitorTest; |
Brett Chabot | 74121d8 | 2010-01-28 20:14:27 -0800 | [diff] [blame] | 28 | import com.android.tradefed.device.TestDeviceTest; |
Brett Chabot | 3ed9293 | 2010-06-03 15:37:41 -0700 | [diff] [blame] | 29 | import com.android.tradefed.device.WifiHelperTest; |
Brett Chabot | 74121d8 | 2010-01-28 20:14:27 -0800 | [diff] [blame] | 30 | import com.android.tradefed.invoker.TestInvocationTest; |
Neal Nguyen | 85df8c9 | 2010-04-02 16:50:55 -0700 | [diff] [blame] | 31 | import com.android.tradefed.log.FileLoggerTest; |
Neal Nguyen | 2ceabaa | 2010-05-26 14:42:14 -0700 | [diff] [blame] | 32 | import com.android.tradefed.log.LogRegistryTest; |
Brett Chabot | 51a4e3d | 2010-03-09 11:08:44 -0800 | [diff] [blame] | 33 | import com.android.tradefed.result.CollectingTestListenerTest; |
Brett Chabot | a08f718 | 2010-03-08 18:55:38 -0800 | [diff] [blame] | 34 | import com.android.tradefed.result.JUnitToInvocationResultForwarderTest; |
Brett Chabot | feeb214 | 2010-04-16 16:22:52 -0700 | [diff] [blame] | 35 | import com.android.tradefed.result.LogFileSaverTest; |
Brett Chabot | 74121d8 | 2010-01-28 20:14:27 -0800 | [diff] [blame] | 36 | import com.android.tradefed.result.TestResultForwarderTest; |
Brett Chabot | 6420e9b | 2010-03-31 11:21:16 -0700 | [diff] [blame] | 37 | import com.android.tradefed.result.XmlResultReporterTest; |
Brett Chabot | a08f718 | 2010-03-08 18:55:38 -0800 | [diff] [blame] | 38 | import com.android.tradefed.testtype.HostTestTest; |
Brett Chabot | 51a4e3d | 2010-03-09 11:08:44 -0800 | [diff] [blame] | 39 | import com.android.tradefed.testtype.InstrumentationListTestTest; |
Brett Chabot | 74121d8 | 2010-01-28 20:14:27 -0800 | [diff] [blame] | 40 | import com.android.tradefed.testtype.InstrumentationTestTest; |
Brett Chabot | 51a4e3d | 2010-03-09 11:08:44 -0800 | [diff] [blame] | 41 | import com.android.tradefed.testtype.TestTimeoutListenerTest; |
Brett Chabot | 6420e9b | 2010-03-31 11:21:16 -0700 | [diff] [blame] | 42 | import com.android.tradefed.testtype.testdefs.XmlDefsParserTest; |
| 43 | import com.android.tradefed.testtype.testdefs.XmlDefsTestTest; |
Brett Chabot | 494d0c1 | 2010-05-21 12:48:02 -0700 | [diff] [blame] | 44 | import com.android.tradefed.util.RunUtilTest; |
Brett Chabot | 74121d8 | 2010-01-28 20:14:27 -0800 | [diff] [blame] | 45 | |
| 46 | import junit.framework.Test; |
| 47 | import junit.framework.TestSuite; |
| 48 | |
| 49 | /** |
| 50 | * A test suite for all Trade Federation unit tests. |
| 51 | * <p/> |
| 52 | * All tests listed here should be self-contained, and do not require any external dependencies. |
| 53 | */ |
| 54 | public class UnitTests extends TestSuite { |
| 55 | |
Brett Chabot | a08f718 | 2010-03-08 18:55:38 -0800 | [diff] [blame] | 56 | public UnitTests() { |
| 57 | super(); |
| 58 | addTestSuite(CommandTest.class); |
Brett Chabot | 5e4bc50 | 2010-06-10 20:10:30 -0700 | [diff] [blame^] | 59 | addTestSuite(CommandFileTest.class); |
Brett Chabot | e278a5b | 2010-06-01 16:20:14 -0700 | [diff] [blame] | 60 | addTestSuite(ConfigurationTest.class); |
Brett Chabot | a08f718 | 2010-03-08 18:55:38 -0800 | [diff] [blame] | 61 | addTestSuite(ArgsOptionParserTest.class); |
| 62 | addTestSuite(OptionParserTest.class); |
Brett Chabot | e278a5b | 2010-06-01 16:20:14 -0700 | [diff] [blame] | 63 | addTestSuite(ConfigurationDefTest.class); |
Brett Chabot | a08f718 | 2010-03-08 18:55:38 -0800 | [diff] [blame] | 64 | addTestSuite(ConfigurationFactoryTest.class); |
Brett Chabot | e278a5b | 2010-06-01 16:20:14 -0700 | [diff] [blame] | 65 | addTestSuite(ConfigurationXmlParserTest.class); |
Brett Chabot | a08f718 | 2010-03-08 18:55:38 -0800 | [diff] [blame] | 66 | addTestSuite(DeviceManagerTest.class); |
Brett Chabot | ac3a79e | 2010-05-26 13:46:36 -0700 | [diff] [blame] | 67 | addTestSuite(DeviceStateMonitorTest.class); |
Brett Chabot | a08f718 | 2010-03-08 18:55:38 -0800 | [diff] [blame] | 68 | addTestSuite(TestDeviceTest.class); |
| 69 | addTestSuite(TestInvocationTest.class); |
Brett Chabot | 3ed9293 | 2010-06-03 15:37:41 -0700 | [diff] [blame] | 70 | addTestSuite(WifiHelperTest.class); |
Neal Nguyen | 85df8c9 | 2010-04-02 16:50:55 -0700 | [diff] [blame] | 71 | addTestSuite(FileLoggerTest.class); |
Neal Nguyen | 2ceabaa | 2010-05-26 14:42:14 -0700 | [diff] [blame] | 72 | addTestSuite(LogRegistryTest.class); |
Brett Chabot | 51a4e3d | 2010-03-09 11:08:44 -0800 | [diff] [blame] | 73 | addTestSuite(CollectingTestListenerTest.class); |
Brett Chabot | a08f718 | 2010-03-08 18:55:38 -0800 | [diff] [blame] | 74 | addTestSuite(JUnitToInvocationResultForwarderTest.class); |
Brett Chabot | feeb214 | 2010-04-16 16:22:52 -0700 | [diff] [blame] | 75 | addTestSuite(LogFileSaverTest.class); |
Brett Chabot | a08f718 | 2010-03-08 18:55:38 -0800 | [diff] [blame] | 76 | addTestSuite(TestResultForwarderTest.class); |
Brett Chabot | 6420e9b | 2010-03-31 11:21:16 -0700 | [diff] [blame] | 77 | addTestSuite(XmlResultReporterTest.class); |
Brett Chabot | 51a4e3d | 2010-03-09 11:08:44 -0800 | [diff] [blame] | 78 | addTestSuite(InstrumentationListTestTest.class); |
Brett Chabot | a08f718 | 2010-03-08 18:55:38 -0800 | [diff] [blame] | 79 | addTestSuite(InstrumentationTestTest.class); |
| 80 | addTestSuite(HostTestTest.class); |
Brett Chabot | 51a4e3d | 2010-03-09 11:08:44 -0800 | [diff] [blame] | 81 | addTestSuite(TestTimeoutListenerTest.class); |
Brett Chabot | 6420e9b | 2010-03-31 11:21:16 -0700 | [diff] [blame] | 82 | addTestSuite(XmlDefsParserTest.class); |
| 83 | addTestSuite(XmlDefsTestTest.class); |
Brett Chabot | 494d0c1 | 2010-05-21 12:48:02 -0700 | [diff] [blame] | 84 | addTestSuite(RunUtilTest.class); |
Brett Chabot | a08f718 | 2010-03-08 18:55:38 -0800 | [diff] [blame] | 85 | } |
| 86 | |
Brett Chabot | 74121d8 | 2010-01-28 20:14:27 -0800 | [diff] [blame] | 87 | public static Test suite() { |
Brett Chabot | a08f718 | 2010-03-08 18:55:38 -0800 | [diff] [blame] | 88 | return new UnitTests(); |
Brett Chabot | 74121d8 | 2010-01-28 20:14:27 -0800 | [diff] [blame] | 89 | } |
| 90 | } |