Lines Matching refs:spec

31         TestSpec spec;  variable
32 CHECK( spec.hasFilters() == false );
33 CHECK( spec.matches( tcA ) == false );
34 CHECK( spec.matches( tcB ) == false );
38 TestSpec spec = parseTestSpec( "" ); variable
39 CHECK( spec.hasFilters() == false );
40 CHECK( spec.matches(tcA ) == false );
41 CHECK( spec.matches( tcB ) == false );
45 TestSpec spec = parseTestSpec( "," ); variable
46 CHECK( spec.hasFilters() == false );
47 CHECK( spec.matches( tcA ) == false );
48 CHECK( spec.matches( tcB ) == false );
52 TestSpec spec = parseTestSpec( "b" ); variable
53 CHECK( spec.hasFilters() == true );
54 CHECK( spec.matches( tcA ) == false );
55 CHECK( spec.matches( tcB ) == true );
59 TestSpec spec = parseTestSpec( "\"b\"" ); variable
60 CHECK( spec.hasFilters() == true );
61 CHECK( spec.matches( tcA ) == false );
62 CHECK( spec.matches( tcB ) == true );
66 TestSpec spec = parseTestSpec( "b" ); variable
67 CHECK( spec.hasFilters() == true );
68 CHECK( spec.matches( tcA ) == false );
69 CHECK( spec.matches( tcB ) == true );
70 CHECK( spec.matches( tcC ) == false );
74 TestSpec spec = parseTestSpec( "*spaces" ); variable
75 CHECK( spec.hasFilters() == true );
76 CHECK( spec.matches( tcA ) == false );
77 CHECK( spec.matches( tcB ) == false );
78 CHECK( spec.matches( tcC ) == true );
79 CHECK( spec.matches( tcD ) == false );
83 TestSpec spec = parseTestSpec( "long*" ); variable
84 CHECK( spec.hasFilters() == true );
85 CHECK( spec.matches( tcA ) == false );
86 CHECK( spec.matches( tcB ) == false );
87 CHECK( spec.matches( tcC ) == true );
88 CHECK( spec.matches( tcD ) == false );
92 TestSpec spec = parseTestSpec( "*name*" ); variable
93 CHECK( spec.hasFilters() == true );
94 CHECK( spec.matches( tcA ) == false );
95 CHECK( spec.matches( tcB ) == false );
96 CHECK( spec.matches( tcC ) == true );
97 CHECK( spec.matches( tcD ) == true );
101 TestSpec spec = parseTestSpec( "*a" ); variable
102 CHECK( spec.hasFilters() == true );
103 CHECK( spec.matches( tcA ) == true );
104 CHECK( spec.matches( tcB ) == false );
107 TestSpec spec = parseTestSpec( "a*" ); variable
108 CHECK( spec.hasFilters() == true );
109 CHECK( spec.matches( tcA ) == true );
110 CHECK( spec.matches( tcB ) == false );
113 TestSpec spec = parseTestSpec( "*a*" ); variable
114 CHECK( spec.hasFilters() == true );
115 CHECK( spec.matches( tcA ) == true );
116 CHECK( spec.matches( tcB ) == false );
119 TestSpec spec = parseTestSpec( "*longer*" ); variable
120 CHECK( spec.hasFilters() == true );
121 CHECK( spec.matches( tcA ) == false );
122 CHECK( spec.matches( tcB ) == false );
123 CHECK( spec.matches( tcC ) == true );
124 CHECK( spec.matches( tcD ) == true );
127 TestSpec spec = parseTestSpec( "*" ); variable
128 CHECK( spec.hasFilters() == true );
129 CHECK( spec.matches( tcA ) == true );
130 CHECK( spec.matches( tcB ) == true );
131 CHECK( spec.matches( tcC ) == true );
132 CHECK( spec.matches( tcD ) == true );
136 TestSpec spec = parseTestSpec( "[one]" ); variable
137 CHECK( spec.hasFilters() == true );
138 CHECK( spec.matches( tcA ) == false );
139 CHECK( spec.matches( tcB ) == true );
140 CHECK( spec.matches( tcC ) == false );
143 TestSpec spec = parseTestSpec( "[x]" ); variable
144 CHECK( spec.hasFilters() == true );
145 CHECK( spec.matches( tcA ) == false );
146 CHECK( spec.matches( tcB ) == true );
147 CHECK( spec.matches( tcC ) == true );
150 TestSpec spec = parseTestSpec( "[two][x]" ); variable
151 CHECK( spec.hasFilters() == true );
152 CHECK( spec.matches( tcA ) == false );
153 CHECK( spec.matches( tcB ) == false );
154 CHECK( spec.matches( tcC ) == true );
157 TestSpec spec = parseTestSpec( "[two] [x]" ); variable
158 CHECK( spec.hasFilters() == true );
159 CHECK( spec.matches( tcA ) == false );
160 CHECK( spec.matches( tcB ) == false );
161 CHECK( spec.matches( tcC ) == true );
164 TestSpec spec = parseTestSpec( "*name*[x]" ); variable
165 CHECK( spec.hasFilters() == true );
166 CHECK( spec.matches( tcA ) == false );
167 CHECK( spec.matches( tcB ) == false );
168 CHECK( spec.matches( tcC ) == true );
169 CHECK( spec.matches( tcD ) == false );
172 TestSpec spec = parseTestSpec( "~[one]" ); variable
173 CHECK( spec.hasFilters() == true );
174 CHECK( spec.matches( tcA ) == true );
175 CHECK( spec.matches( tcB ) == false );
176 CHECK( spec.matches( tcC ) == true );
179 TestSpec spec = parseTestSpec( "~[two][x]" ); variable
180 CHECK( spec.hasFilters() == true );
181 CHECK( spec.matches( tcA ) == false );
182 CHECK( spec.matches( tcB ) == true );
183 CHECK( spec.matches( tcC ) == false );
186 TestSpec spec = parseTestSpec( "~[two]*name*" ); variable
187 CHECK( spec.hasFilters() == true );
188 CHECK( spec.matches( tcA ) == false );
189 CHECK( spec.matches( tcB ) == false );
190 CHECK( spec.matches( tcC ) == false );
191 CHECK( spec.matches( tcD ) == true );
194 TestSpec spec = parseTestSpec( "exclude:[two]*name*" ); variable
195 CHECK( spec.hasFilters() == true );
196 CHECK( spec.matches( tcA ) == false );
197 CHECK( spec.matches( tcB ) == false );
198 CHECK( spec.matches( tcC ) == false );
199 CHECK( spec.matches( tcD ) == true );
202 TestSpec spec = parseTestSpec( "~b" ); variable
203 CHECK( spec.hasFilters() == true );
204 CHECK( spec.matches( tcA ) == true );
205 CHECK( spec.matches( tcB ) == false );
206 CHECK( spec.matches( tcC ) == true );
207 CHECK( spec.matches( tcD ) == true );
210 TestSpec spec = parseTestSpec( "~*name*" ); variable
211 CHECK( spec.hasFilters() == true );
212 CHECK( spec.matches( tcA ) == true );
213 CHECK( spec.matches( tcB ) == true );
214 CHECK( spec.matches( tcC ) == false );
215 CHECK( spec.matches( tcD ) == false );
218 TestSpec spec = parseTestSpec( "~*name*,[three]" ); variable
219 CHECK( spec.hasFilters() == true );
220 CHECK( spec.matches( tcA ) == true );
221 CHECK( spec.matches( tcB ) == true );
222 CHECK( spec.matches( tcC ) == true );
223 CHECK( spec.matches( tcD ) == false );
226 TestSpec spec = parseTestSpec( "exclude:*name*,[three]" ); variable
227 CHECK( spec.hasFilters() == true );
228 CHECK( spec.matches( tcA ) == true );
229 CHECK( spec.matches( tcB ) == true );
230 CHECK( spec.matches( tcC ) == true );
231 CHECK( spec.matches( tcD ) == false );
234 TestSpec spec = parseTestSpec( "\"longer*\"\"*spaces\"" ); variable
235 CHECK( spec.hasFilters() == true );
236 CHECK( spec.matches( tcA ) == false );
237 CHECK( spec.matches( tcB ) == false );
238 CHECK( spec.matches( tcC ) == true );
239 CHECK( spec.matches( tcD ) == false );
242 TestSpec spec = parseTestSpec( "[]" ); variable
243 CHECK( spec.hasFilters() == false );
244 CHECK( spec.matches( tcA ) == false );
245 CHECK( spec.matches( tcB ) == false );
246 CHECK( spec.matches( tcC ) == false );
247 CHECK( spec.matches( tcD ) == false );
250 TestSpec spec = parseTestSpec( "\"\"" ); variable
251 CHECK( spec.hasFilters() == false );
252 CHECK( spec.matches( tcA ) == false );
253 CHECK( spec.matches( tcB ) == false );
254 CHECK( spec.matches( tcC ) == false );
255 CHECK( spec.matches( tcD ) == false );
258 TestSpec spec = parseTestSpec( "\"*name*\"~[.]" ); variable
259 CHECK( spec.hasFilters() == true );
260 CHECK( spec.matches( tcA ) == false );
261 CHECK( spec.matches( tcB ) == false );
262 CHECK( spec.matches( tcC ) == false );
263 CHECK( spec.matches( tcD ) == true );