author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 21 Jun 2016 08:53:50 +0100 | |
branch | jv |
changeset 1505 | 215b4170fede |
parent 1503 | 1551e9fd9a91 |
child 1535 | 75fed93d5756 |
permissions | -rw-r--r-- |
1450 | 1 |
"{ Package: 'stx:goodies/regression' }" |
2 |
||
3 |
"{ NameSpace: Smalltalk }" |
|
4 |
||
5 |
LibraryDefinition subclass:#stx_goodies_regression |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'* Projects & Packages *' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!stx_goodies_regression class methodsFor:'accessing - tests'! |
|
14 |
||
15 |
testCaseNamesWithoutNamespace |
|
16 |
^#( |
|
17 |
"/ 'SunitXMLOutputTest' |
|
18 |
'ProjectDefinitionTests' |
|
19 |
'CoverageInstrumentationTest' |
|
20 |
'AssociationTests' |
|
21 |
'BinaryIOTests' |
|
22 |
'BinaryTreeTester' |
|
23 |
"/ 'BlockTest' |
|
24 |
'CharacterTests' |
|
25 |
'CollectionTests' |
|
26 |
'CompilerTest' |
|
27 |
'ComplexTest' |
|
28 |
"/ 'STCCompilerTests' |
|
29 |
"/ 'DebuggerTest' |
|
30 |
"/ 'DeepCopyTests' |
|
31 |
'DelayTest' |
|
32 |
'DictionaryTest' |
|
33 |
'EnumerationTests' |
|
34 |
'ExceptionTest' |
|
35 |
"/ 'ExternalInterfaceTests' |
|
36 |
"/ 'FileOpenTest' |
|
37 |
'FileStreamTest' |
|
38 |
'FloatTest' |
|
39 |
'FractionTest' |
|
40 |
"/ 'GCTest' |
|
41 |
"/ 'GraphicDrawingTest' |
|
42 |
"/ 'HTMLParserTests' |
|
43 |
"/ 'ImageReaderTest' |
|
44 |
'IntegerTest' |
|
45 |
'JavaScriptTests' |
|
46 |
"/ 'MeasurementValueTests' |
|
47 |
"/ 'MemoryTest' |
|
48 |
'NumberTest' |
|
49 |
'ParserTest' |
|
50 |
'ScaledDecimalTest' |
|
51 |
"/ 'SemaphoreTest' |
|
52 |
"/ 'SharedQueueTest' |
|
53 |
'SmallIntegerTest' |
|
54 |
"/ 'SortTests' |
|
55 |
'StringTests' |
|
56 |
'StreamTests' |
|
57 |
'TimeAndDateTest' |
|
58 |
'TimeDurationTest' |
|
59 |
"/ 'URLTest' |
|
60 |
"/ 'XMLCoderTests' |
|
61 |
"/ 'ZipArchiveTests' |
|
62 |
'ClassBuilderTests' |
|
1494
c436cb06f325
Backed out changeset 181c8df2e7e0
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1485
diff
changeset
|
63 |
'CompilerTests2' |
1450 | 64 |
'ChangeSetTests' |
65 |
'FilenameTests' |
|
66 |
'ProjectDefinitionTests' |
|
67 |
'ClassDescriptionTests' |
|
68 |
'SnapshotRestartTests' |
|
69 |
'MakefileTests' |
|
70 |
'TSTreeTests' |
|
71 |
'TSMultiTreeTests' |
|
1494
c436cb06f325
Backed out changeset 181c8df2e7e0
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1485
diff
changeset
|
72 |
'VMCrashTests' |
1450 | 73 |
'ProcessTest' |
74 |
'PipeStreamTest' |
|
75 |
'JITTest' |
|
1503
1551e9fd9a91
Issue #73: Added (and fixed) BehaviorLookupObjectTests to standard test suite.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
76 |
'BehaviorLookupObjectTests' |
1505
215b4170fede
Issue #73: Added SelectorNamespacesTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1503
diff
changeset
|
77 |
'SelectorNamespacesTests' |
1450 | 78 |
) |
79 |
||
80 |
"Modified: / 18-11-2014 / 11:54:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
81 |
! |
|
82 |
||
83 |
testSuite |
|
84 |
||
85 |
| suite | |
|
86 |
||
87 |
suite := TestSuite named: self package. |
|
88 |
self testCaseNamesWithoutNamespace do:[:className | |
|
89 |
|fullName| |
|
90 |
||
91 |
fullName := ('RegressionTests::',className). |
|
92 |
('Loading ',className,'...') infoPrintCR. |
|
93 |
Smalltalk fileInClass:fullName package:self package. |
|
94 |
(Smalltalk classNamed:fullName) isNil ifTrue:[ |
|
95 |
('**** Ouch - missing class: "',fullName,'"') infoPrintCR. |
|
96 |
] ifFalse:[ |
|
97 |
suite addTest:(Smalltalk classNamed:fullName) suite. |
|
98 |
]. |
|
99 |
]. |
|
100 |
||
101 |
^suite |
|
102 |
||
103 |
"Created: / 03-08-2011 / 09:19:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
104 |
! ! |
|
105 |
||
106 |
!stx_goodies_regression class methodsFor:'description'! |
|
107 |
||
108 |
excludedFromPreRequisites |
|
109 |
"list all packages which should be ignored in the automatic |
|
110 |
preRequisites scan. See #preRequisites for more." |
|
111 |
||
112 |
^ #( |
|
113 |
#'exept:libcrypt' "loaded lazily by CryptTests - SHA256Stream - referenced by RegressionTests::CryptTests>>test06_sha256 " |
|
114 |
#'stx:goodies' "no project def - CharacterEncoderCodeGenerator - referenced by RegressionTests::CharacterTests>>test01CaseTesting " |
|
115 |
) |
|
116 |
||
117 |
"Modified: / 03-03-2014 / 12:00:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
118 |
! |
|
119 |
||
120 |
mandatoryPreRequisites |
|
121 |
"list packages which are mandatory as a prerequisite. |
|
122 |
This are packages containing superclasses of my classes and classes which |
|
123 |
are extended by myself. |
|
124 |
They are mandatory, because we need these packages as a prerequisite for loading and compiling. |
|
125 |
This method is generated automatically, |
|
126 |
by searching along the inheritance chain of all of my classes." |
|
127 |
||
128 |
^ #( |
|
129 |
#'stx:goodies/sunit' "TestAsserter - superclass of RegressionTests::VMCrashTestCase" |
|
130 |
#'stx:libbasic' "Autoload - superclass of RegressionTests::AssociationTests" |
|
131 |
) |
|
132 |
! |
|
133 |
||
134 |
referencedPreRequisites |
|
135 |
"list packages which are a prerequisite, because they contain |
|
136 |
classes which are referenced by my classes. |
|
137 |
We do not need these packages as a prerequisite for loading or compiling. |
|
138 |
This method is generated automatically, |
|
139 |
by searching all classes (and their packages) which are referenced by my classes." |
|
140 |
||
141 |
^ #( |
|
142 |
) |
|
143 |
! |
|
144 |
||
145 |
subProjects |
|
146 |
"list packages which are known as subprojects. |
|
147 |
The generated makefile will enter those and make there as well. |
|
148 |
However: they are not forced to be loaded when a package is loaded; |
|
149 |
for those, redefine requiredPrerequisites" |
|
150 |
||
151 |
^ #( |
|
152 |
) |
|
153 |
! ! |
|
154 |
||
155 |
!stx_goodies_regression class methodsFor:'description - contents'! |
|
156 |
||
157 |
classNamesAndAttributes |
|
158 |
"lists the classes which are to be included in the project. |
|
159 |
Each entry in the list may be: a single class-name (symbol), |
|
160 |
or an array-literal consisting of class name and attributes. |
|
161 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
162 |
||
163 |
^ #( |
|
164 |
"<className> or (<className> attributes...) in load order" |
|
165 |
(#'RegressionTests::CompressionStreamTest' autoload) |
|
166 |
(#'RegressionTests::LinkedListTest' autoload) |
|
167 |
(#'RegressionTests::QueueTest' autoload) |
|
168 |
#'stx_goodies_regression' |
|
169 |
(#'RegressionTests::Win32OLETests' autoload) |
|
170 |
(#'RegressionTests::Win32OperatingSystemTest' autoload) |
|
171 |
(#'RegressionTests::HTMLParserTests' autoload) |
|
172 |
(#'RegressionTests::HTTPServerTests' autoload) |
|
173 |
(#'RegressionTests::CompilerTests2' autoload) |
|
174 |
(#'RegressionTests::CompilerTests2ExternalBytes' autoload) |
|
175 |
(#'RegressionTests::AssociationTests' autoload) |
|
176 |
(#'RegressionTests::BecomeTests' autoload) |
|
177 |
(#'RegressionTests::BehaviorLookupObjectTests' autoload) |
|
178 |
(#'RegressionTests::BinaryIOTests' autoload) |
|
179 |
(#'RegressionTests::BinaryTreeTester' autoload) |
|
180 |
(#'RegressionTests::BlockTest' autoload) |
|
181 |
(#'RegressionTests::BreakpointTests' autoload) |
|
182 |
(#'RegressionTests::CECollectionExtensionTest' autoload) |
|
183 |
(#'RegressionTests::CESequenceableCollectionExtensionTest' autoload) |
|
184 |
(#'RegressionTests::CEStringExtensionTest' autoload) |
|
185 |
(#'RegressionTests::CachedValueTest' autoload) |
|
186 |
(#'RegressionTests::CharacterEncoderTests' autoload) |
|
187 |
(#'RegressionTests::CharacterSetTests' autoload) |
|
188 |
(#'RegressionTests::CharacterTests' autoload) |
|
189 |
(#'RegressionTests::ClassAndMethodCompilingTestCase' autoload) |
|
190 |
(#'RegressionTests::ClassDescriptionTests' autoload) |
|
191 |
(#'RegressionTests::ClassWithoutVersionMethod' autoload) |
|
192 |
(#'RegressionTests::CollectionTests' autoload) |
|
193 |
(#'RegressionTests::CompilerTest' autoload) |
|
194 |
(#'RegressionTests::ComplexTest' autoload) |
|
195 |
(#'RegressionTests::ContextTest2' autoload) |
|
196 |
(#'RegressionTests::CoverageInstrumentationTest' autoload) |
|
197 |
(#'RegressionTests::CryptTests' autoload) |
|
198 |
(#'RegressionTests::DebuggerTest' autoload) |
|
199 |
(#'RegressionTests::DeepCopyTests' autoload) |
|
200 |
(#'RegressionTests::DelayTest' autoload) |
|
201 |
(#'RegressionTests::DictionaryTest' autoload) |
|
202 |
(#'RegressionTests::DoubleMetaphoneStringComparatorTest' autoload) |
|
203 |
(#'RegressionTests::EnumerationTests' autoload) |
|
204 |
(#'RegressionTests::ExceptionTest' autoload) |
|
205 |
(#'RegressionTests::ExternalInterfaceTests' autoload) |
|
206 |
(#'RegressionTests::ExternalStreamTest' autoload) |
|
207 |
(#'RegressionTests::FileOpenTest' autoload) |
|
208 |
(#'RegressionTests::FileStreamTest' autoload) |
|
209 |
(#'RegressionTests::FilenameTests' autoload) |
|
210 |
(#'RegressionTests::FloatTest' autoload) |
|
211 |
(#'RegressionTests::FractionTest' autoload) |
|
212 |
(#'RegressionTests::GCTest' autoload) |
|
213 |
(#'RegressionTests::GraphicDrawingTest' autoload) |
|
214 |
(#'RegressionTests::ImageReaderTest' autoload) |
|
215 |
(#'RegressionTests::IntegerTest' autoload) |
|
216 |
(#'RegressionTests::JITTest' autoload) |
|
217 |
(#'RegressionTests::JavaScriptTests' autoload) |
|
218 |
(#'RegressionTests::KoelnerPhoneticCodeStringComparatorTest' autoload) |
|
219 |
(#'RegressionTests::LabelResizingTest' autoload) |
|
220 |
(#'RegressionTests::LargeFloatTest' autoload) |
|
221 |
(#'RegressionTests::LiteralsInMethodTests' autoload) |
|
222 |
(#'RegressionTests::LoggedStreamTests' autoload) |
|
223 |
(#'RegressionTests::MakefileTests' autoload) |
|
224 |
(#'RegressionTests::ManyProcessesTest' autoload) |
|
225 |
(#'RegressionTests::MeasurementValueTests' autoload) |
|
226 |
(#'RegressionTests::MemoryTest' autoload) |
|
227 |
(#'RegressionTests::MetaNumbersTest' autoload) |
|
228 |
(#'RegressionTests::MiracodeStringComparatorTest' autoload) |
|
229 |
(#'RegressionTests::MySQLSoundexStringComparatorTest' autoload) |
|
230 |
(#'RegressionTests::NumberTest' autoload) |
|
231 |
(#'RegressionTests::OS_OLE_Tests' autoload) |
|
232 |
(#'RegressionTests::OperatingSystemTest' autoload) |
|
233 |
(#'RegressionTests::OperationInQueueTests' autoload) |
|
234 |
(#'RegressionTests::PTYTest' autoload) |
|
235 |
(#'RegressionTests::ParserTests' autoload) |
|
236 |
(#'RegressionTests::PipeStreamTest' autoload) |
|
237 |
(#'RegressionTests::PowerSetTests' autoload) |
|
238 |
(#'RegressionTests::ProcessTest' autoload) |
|
239 |
(#'RegressionTests::ProjectDefinitionTests' autoload) |
|
240 |
(#'RegressionTests::QuickTestRunner' autoload) |
|
241 |
(#'RegressionTests::STCCompilerTests' autoload) |
|
242 |
(#'RegressionTests::ScaledDecimalTest' autoload) |
|
243 |
(#'RegressionTests::SegmentedOrderedCollectionTests' autoload) |
|
244 |
(#'RegressionTests::SelectorNamespacesTests' autoload) |
|
245 |
(#'RegressionTests::SemaphoreTest' autoload) |
|
246 |
(#'RegressionTests::ServerSocketTest' autoload) |
|
247 |
(#'RegressionTests::SharedQueueTest' autoload) |
|
248 |
(#'RegressionTests::SmallIntegerTest' autoload) |
|
249 |
(#'RegressionTests::SnapshotRestartTests' autoload) |
|
250 |
(#'RegressionTests::SocketTests' autoload) |
|
251 |
(#'RegressionTests::SortTests' autoload) |
|
252 |
(#'RegressionTests::SoundexStringComparatorTest' autoload) |
|
253 |
(#'RegressionTests::StackFrameTest' autoload) |
|
254 |
(#'RegressionTests::StreamTests' autoload) |
|
255 |
(#'RegressionTests::StringTests' autoload) |
|
256 |
(#'RegressionTests::SunitXMLOutputTest' autoload) |
|
257 |
(#'RegressionTests::TSTreeTests' autoload) |
|
258 |
(#'RegressionTests::TestDialogs1' autoload) |
|
259 |
(#'RegressionTests::TimeAndDateTest' autoload) |
|
260 |
(#'RegressionTests::TimeDurationTest' autoload) |
|
261 |
(#'RegressionTests::URLTest' autoload) |
|
262 |
(#'RegressionTests::UTF8TestClass' autoload) |
|
263 |
(#'RegressionTests::UninterpretedBytesTest' autoload) |
|
264 |
(#'RegressionTests::VMCrashTestCase' autoload) |
|
265 |
(#'RegressionTests::WeakCollectionTest' autoload) |
|
266 |
(#'RegressionTests::WritingToTranscriptOrStdoutTest' autoload) |
|
267 |
(#'RegressionTests::WrongMethodCalledTest' autoload) |
|
268 |
(#'RegressionTests::XMLCoderTests' autoload) |
|
269 |
(#'RegressionTests::ZipArchiveTests' autoload) |
|
270 |
(#'RegressionTests::ChangeSetTests' autoload) |
|
271 |
(#'RegressionTests::ClassBuilderTests' autoload) |
|
272 |
(#'RegressionTests::TSMultiTreeTests' autoload) |
|
273 |
(#'RegressionTests::VMCrashTests' autoload) |
|
1505
215b4170fede
Issue #73: Added SelectorNamespacesTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1503
diff
changeset
|
274 |
(#'RegressionTests::SelectorNamespacesTests' autoload) |
1450 | 275 |
) |
276 |
! |
|
277 |
||
278 |
extensionMethodNames |
|
279 |
"list class/selector pairs of extensions. |
|
280 |
A correponding method with real names must be present in my concrete subclasses" |
|
281 |
||
282 |
^ #( |
|
283 |
) |
|
284 |
! ! |
|
285 |
||
286 |
!stx_goodies_regression class methodsFor:'description - project information'! |
|
287 |
||
288 |
applicationIconFileName |
|
289 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file" |
|
290 |
||
291 |
^ nil |
|
292 |
"/ ^ self applicationName |
|
293 |
! |
|
294 |
||
295 |
companyName |
|
296 |
"Return a companyname which will appear in <lib>.rc" |
|
297 |
||
298 |
^ 'eXept Software AG' |
|
299 |
! |
|
300 |
||
301 |
description |
|
302 |
"Return a description string which will appear in vc.def / bc.def" |
|
303 |
||
304 |
^ 'Class Library' |
|
305 |
! |
|
306 |
||
307 |
legalCopyright |
|
308 |
"Return a copyright string which will appear in <lib>.rc" |
|
309 |
||
1500 | 310 |
^ 'Copyright eXept Software AG 1998-2016, Jan Vrany 2016' |
1450 | 311 |
! |
312 |
||
313 |
productName |
|
314 |
"Return a product name which will appear in <lib>.rc" |
|
315 |
||
316 |
^ 'eXept addOns' |
|
317 |
! ! |
|
318 |
||
319 |
!stx_goodies_regression class methodsFor:'documentation'! |
|
320 |
||
321 |
version |
|
322 |
^ '$Header$' |
|
323 |
! |
|
324 |
||
325 |
version_CVS |
|
326 |
^ '$Header$' |
|
327 |
! ! |
|
768 | 328 |