• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2013 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 
17 package com.android.loganalysis;
18 
19 import com.android.loganalysis.item.BatteryDischargeItemTest;
20 import com.android.loganalysis.item.BatteryUsageItemTest;
21 import com.android.loganalysis.item.DumpsysPackageStatsItemTest;
22 import com.android.loganalysis.item.DvmLockSampleItemTest;
23 import com.android.loganalysis.item.GenericItemTest;
24 import com.android.loganalysis.item.InterruptItemTest;
25 import com.android.loganalysis.item.LocationDumpsItemTest;
26 import com.android.loganalysis.item.MemInfoItemTest;
27 import com.android.loganalysis.item.MonkeyLogItemTest;
28 import com.android.loganalysis.item.ProcrankItemTest;
29 import com.android.loganalysis.item.SmartMonkeyLogItemTest;
30 import com.android.loganalysis.item.SystemPropsItemTest;
31 import com.android.loganalysis.item.TopItemTest;
32 import com.android.loganalysis.item.WakelockItemTest;
33 import com.android.loganalysis.parser.AbstractSectionParserTest;
34 import com.android.loganalysis.parser.ActivityServiceParserTest;
35 import com.android.loganalysis.parser.AnrParserTest;
36 import com.android.loganalysis.parser.BatteryDischargeStatsInfoParserTest;
37 import com.android.loganalysis.parser.BatteryStatsDetailedInfoParserTest;
38 import com.android.loganalysis.parser.BatteryStatsSummaryInfoParserTest;
39 import com.android.loganalysis.parser.BatteryUsageParserTest;
40 import com.android.loganalysis.parser.BugreportParserTest;
41 import com.android.loganalysis.parser.CompactMemInfoParserTest;
42 import com.android.loganalysis.parser.CpuInfoParserTest;
43 import com.android.loganalysis.parser.DmesgParserTest;
44 import com.android.loganalysis.parser.DumpsysBatteryStatsParserTest;
45 import com.android.loganalysis.parser.DumpsysPackageStatsParserTest;
46 import com.android.loganalysis.parser.DumpsysParserTest;
47 import com.android.loganalysis.parser.DumpsysProcStatsParserTest;
48 import com.android.loganalysis.parser.DumpsysProcessMeminfoParserTest;
49 import com.android.loganalysis.parser.DumpsysWifiStatsParserTest;
50 import com.android.loganalysis.parser.DvmLockSampleParserTest;
51 import com.android.loganalysis.parser.EventsLogParserTest;
52 import com.android.loganalysis.parser.GfxInfoParserTest;
53 import com.android.loganalysis.parser.InterruptParserTest;
54 import com.android.loganalysis.parser.JavaCrashParserTest;
55 import com.android.loganalysis.parser.KernelLogParserTest;
56 import com.android.loganalysis.parser.LocationServiceParserTest;
57 import com.android.loganalysis.parser.LogcatParserTest;
58 import com.android.loganalysis.parser.MemHealthParserTest;
59 import com.android.loganalysis.parser.MemInfoParserTest;
60 import com.android.loganalysis.parser.MonkeyLogParserTest;
61 import com.android.loganalysis.parser.NativeCrashParserTest;
62 import com.android.loganalysis.parser.ProcessUsageParserTest;
63 import com.android.loganalysis.parser.ProcrankParserTest;
64 import com.android.loganalysis.parser.QtaguidParserTest;
65 import com.android.loganalysis.parser.SmartMonkeyLogParserTest;
66 import com.android.loganalysis.parser.SystemPropsParserTest;
67 import com.android.loganalysis.parser.TopParserTest;
68 import com.android.loganalysis.parser.TraceFormatParserTest;
69 import com.android.loganalysis.parser.TracesParserTest;
70 import com.android.loganalysis.parser.WakelockParserTest;
71 import com.android.loganalysis.rule.InterruptRuleTest;
72 import com.android.loganalysis.rule.LocationUsageRuleTest;
73 import com.android.loganalysis.rule.ProcessUsageRuleTest;
74 import com.android.loganalysis.rule.WakelockRuleTest;
75 import com.android.loganalysis.rule.WifiStatsRuleTest;
76 import com.android.loganalysis.util.ArrayUtilTest;
77 import com.android.loganalysis.util.LogPatternUtilTest;
78 import com.android.loganalysis.util.LogTailUtilTest;
79 import com.android.loganalysis.util.RegexTrieTest;
80 import com.android.loganalysis.util.config.ArgsOptionParserTest;
81 import com.android.loganalysis.util.config.OptionSetterTest;
82 import com.android.loganalysis.util.config.OptionUpdateRuleTest;
83 
84 import org.junit.runner.RunWith;
85 import org.junit.runners.Suite;
86 import org.junit.runners.Suite.SuiteClasses;
87 
88 /**
89  * A test suite for all log analysis unit tests.
90  *
91  * <p>All tests listed here should be self-contained, and should not require any external
92  * dependencies.
93  */
94 @RunWith(Suite.class)
95 @SuiteClasses({
96     // item
97     BatteryDischargeItemTest.class,
98     BatteryUsageItemTest.class,
99     DumpsysPackageStatsItemTest.class,
100     DvmLockSampleItemTest.class,
101     GenericItemTest.class,
102     InterruptItemTest.class,
103     LocationDumpsItemTest.class,
104     MemInfoItemTest.class,
105     MonkeyLogItemTest.class,
106     ProcrankItemTest.class,
107     SmartMonkeyLogItemTest.class,
108     SystemPropsItemTest.class,
109     TopItemTest.class,
110     WakelockItemTest.class,
111 
112     // rule
113     InterruptRuleTest.class,
114     LocationUsageRuleTest.class,
115     ProcessUsageRuleTest.class,
116     WakelockRuleTest.class,
117     WifiStatsRuleTest.class,
118 
119     // parser
120     AbstractSectionParserTest.class,
121     ActivityServiceParserTest.class,
122     AnrParserTest.class,
123     BatteryDischargeStatsInfoParserTest.class,
124     BatteryStatsDetailedInfoParserTest.class,
125     BatteryStatsSummaryInfoParserTest.class,
126     BatteryUsageParserTest.class,
127     BugreportParserTest.class,
128     CompactMemInfoParserTest.class,
129     CpuInfoParserTest.class,
130     DmesgParserTest.class,
131     DumpsysBatteryStatsParserTest.class,
132     DumpsysPackageStatsParserTest.class,
133     DumpsysParserTest.class,
134     DumpsysProcessMeminfoParserTest.class,
135     DumpsysProcStatsParserTest.class,
136     DumpsysWifiStatsParserTest.class,
137     DvmLockSampleParserTest.class,
138     EventsLogParserTest.class,
139     GfxInfoParserTest.class,
140     InterruptParserTest.class,
141     JavaCrashParserTest.class,
142     KernelLogParserTest.class,
143     LocationServiceParserTest.class,
144     LogcatParserTest.class,
145     MemHealthParserTest.class,
146     MemInfoParserTest.class,
147     MonkeyLogParserTest.class,
148     NativeCrashParserTest.class,
149     ProcessUsageParserTest.class,
150     ProcrankParserTest.class,
151     QtaguidParserTest.class,
152     SmartMonkeyLogParserTest.class,
153     SystemPropsParserTest.class,
154     TopParserTest.class,
155     TraceFormatParserTest.class,
156     TracesParserTest.class,
157     WakelockParserTest.class,
158 
159     // util
160     ArrayUtilTest.class,
161     LogPatternUtilTest.class,
162     LogTailUtilTest.class,
163     RegexTrieTest.class,
164 
165     // util.config
166     ArgsOptionParserTest.class,
167     OptionSetterTest.class,
168     OptionUpdateRuleTest.class,
169 })
170 public class UnitTests {
171     // empty of purpose
172 }
173