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'
|
|
63 |
"/ 'CompilerTests2'
|
|
64 |
'ChangeSetTests'
|
|
65 |
'FilenameTests'
|
|
66 |
'ProjectDefinitionTests'
|
|
67 |
'ClassDescriptionTests'
|
|
68 |
'SnapshotRestartTests'
|
|
69 |
'MakefileTests'
|
|
70 |
'TSTreeTests'
|
|
71 |
'TSMultiTreeTests'
|
|
72 |
"/ 'VMCrashTests'
|
|
73 |
'ProcessTest'
|
|
74 |
'PipeStreamTest'
|
|
75 |
'JITTest'
|
|
76 |
)
|
|
77 |
|
|
78 |
"Modified: / 18-11-2014 / 11:54:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
79 |
!
|
|
80 |
|
|
81 |
testSuite
|
|
82 |
|
|
83 |
| suite |
|
|
84 |
|
|
85 |
suite := TestSuite named: self package.
|
|
86 |
self testCaseNamesWithoutNamespace do:[:className |
|
|
87 |
|fullName|
|
|
88 |
|
|
89 |
fullName := ('RegressionTests::',className).
|
|
90 |
('Loading ',className,'...') infoPrintCR.
|
|
91 |
Smalltalk fileInClass:fullName package:self package.
|
|
92 |
(Smalltalk classNamed:fullName) isNil ifTrue:[
|
|
93 |
('**** Ouch - missing class: "',fullName,'"') infoPrintCR.
|
|
94 |
] ifFalse:[
|
|
95 |
suite addTest:(Smalltalk classNamed:fullName) suite.
|
|
96 |
].
|
|
97 |
].
|
|
98 |
|
|
99 |
^suite
|
|
100 |
|
|
101 |
"Created: / 03-08-2011 / 09:19:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
102 |
! !
|
|
103 |
|
|
104 |
!stx_goodies_regression class methodsFor:'description'!
|
|
105 |
|
|
106 |
excludedFromPreRequisites
|
|
107 |
"list all packages which should be ignored in the automatic
|
|
108 |
preRequisites scan. See #preRequisites for more."
|
|
109 |
|
|
110 |
^ #(
|
|
111 |
#'exept:libcrypt' "loaded lazily by CryptTests - SHA256Stream - referenced by RegressionTests::CryptTests>>test06_sha256 "
|
|
112 |
#'stx:goodies' "no project def - CharacterEncoderCodeGenerator - referenced by RegressionTests::CharacterTests>>test01CaseTesting "
|
|
113 |
)
|
|
114 |
|
|
115 |
"Modified: / 03-03-2014 / 12:00:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
116 |
!
|
|
117 |
|
|
118 |
mandatoryPreRequisites
|
|
119 |
"list packages which are mandatory as a prerequisite.
|
|
120 |
This are packages containing superclasses of my classes and classes which
|
|
121 |
are extended by myself.
|
|
122 |
They are mandatory, because we need these packages as a prerequisite for loading and compiling.
|
|
123 |
This method is generated automatically,
|
1637
|
124 |
by searching along the inheritance chain of all of my classes.
|
|
125 |
Please take a look at the #referencedPreRequisites method as well."
|
1450
|
126 |
|
|
127 |
^ #(
|
1637
|
128 |
#'stx:goodies/sunit' "TestAsserter - superclass of RegressionTests::SnapshotRestartTests::ToRunOnFreshAndRestartedSnapshotTests"
|
|
129 |
#'stx:libbasic' "Exception - superclass of RegressionTests::ExceptionTest::MyResumableTestError"
|
1450
|
130 |
)
|
1637
|
131 |
|
|
132 |
"Modified: / 17-07-2017 / 20:51:56 / mawalch"
|
1450
|
133 |
!
|
|
134 |
|
|
135 |
referencedPreRequisites
|
|
136 |
"list packages which are a prerequisite, because they contain
|
|
137 |
classes which are referenced by my classes.
|
1637
|
138 |
These packages are NOT needed as a prerequisite for compiling or loading,
|
|
139 |
however, a class from it may be referenced during execution and having it
|
|
140 |
unloaded then may lead to a runtime doesNotUnderstand error, unless the caller
|
|
141 |
includes explicit checks for the package being present.
|
1450
|
142 |
This method is generated automatically,
|
1637
|
143 |
by searching all classes (and their packages) which are referenced by my classes.
|
|
144 |
Please also take a look at the #mandatoryPreRequisites method"
|
1450
|
145 |
|
|
146 |
^ #(
|
|
147 |
)
|
1637
|
148 |
|
|
149 |
"Modified: / 17-07-2017 / 20:52:03 / mawalch"
|
1450
|
150 |
!
|
|
151 |
|
|
152 |
subProjects
|
|
153 |
"list packages which are known as subprojects.
|
|
154 |
The generated makefile will enter those and make there as well.
|
|
155 |
However: they are not forced to be loaded when a package is loaded;
|
|
156 |
for those, redefine requiredPrerequisites"
|
|
157 |
|
|
158 |
^ #(
|
|
159 |
)
|
|
160 |
! !
|
|
161 |
|
|
162 |
!stx_goodies_regression class methodsFor:'description - contents'!
|
|
163 |
|
|
164 |
classNamesAndAttributes
|
|
165 |
"lists the classes which are to be included in the project.
|
|
166 |
Each entry in the list may be: a single class-name (symbol),
|
|
167 |
or an array-literal consisting of class name and attributes.
|
|
168 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..."
|
|
169 |
|
|
170 |
^ #(
|
1514
|
171 |
"<className> or (<className> attributes...) in load order"
|
1637
|
172 |
#'stx_goodies_regression'
|
1514
|
173 |
(#'RegressionTests::CryptTests' autoload)
|
|
174 |
(#'RegressionTests::TypedArrayTests' autoload)
|
|
175 |
(#'RegressionTests::UninterpretedBytesTest' autoload)
|
|
176 |
(#'RegressionTests::CompressionStreamTest' autoload)
|
|
177 |
(#'RegressionTests::LinkedListTest' autoload)
|
|
178 |
(#'RegressionTests::QueueTest' autoload)
|
|
179 |
(#'RegressionTests::Win32OLETests' autoload)
|
|
180 |
(#'RegressionTests::Win32OperatingSystemTest' autoload)
|
|
181 |
(#'RegressionTests::HTMLParserTests' autoload)
|
|
182 |
(#'RegressionTests::HTTPServerTests' autoload)
|
|
183 |
(#'RegressionTests::CompilerTests2' autoload)
|
|
184 |
(#'RegressionTests::CompilerTests2ExternalBytes' autoload)
|
|
185 |
(#'RegressionTests::AssociationTests' autoload)
|
|
186 |
(#'RegressionTests::BecomeTests' autoload)
|
|
187 |
(#'RegressionTests::BehaviorLookupObjectTests' autoload)
|
|
188 |
(#'RegressionTests::BinaryIOTests' autoload)
|
|
189 |
(#'RegressionTests::BinaryTreeTester' autoload)
|
|
190 |
(#'RegressionTests::BlockTest' autoload)
|
|
191 |
(#'RegressionTests::BreakpointTests' autoload)
|
|
192 |
(#'RegressionTests::CECollectionExtensionTest' autoload)
|
|
193 |
(#'RegressionTests::CESequenceableCollectionExtensionTest' autoload)
|
|
194 |
(#'RegressionTests::CEStringExtensionTest' autoload)
|
|
195 |
(#'RegressionTests::CachedValueTest' autoload)
|
|
196 |
(#'RegressionTests::CharacterEncoderTests' autoload)
|
|
197 |
(#'RegressionTests::CharacterSetTests' autoload)
|
|
198 |
(#'RegressionTests::CharacterTests' autoload)
|
|
199 |
(#'RegressionTests::ClassAndMethodCompilingTestCase' autoload)
|
|
200 |
(#'RegressionTests::ClassDescriptionTests' autoload)
|
|
201 |
(#'RegressionTests::ClassWithoutVersionMethod' autoload)
|
|
202 |
(#'RegressionTests::CollectionTests' autoload)
|
|
203 |
(#'RegressionTests::CompilerTest' autoload)
|
|
204 |
(#'RegressionTests::ComplexTest' autoload)
|
|
205 |
(#'RegressionTests::ContextTest2' autoload)
|
|
206 |
(#'RegressionTests::CoverageInstrumentationTest' autoload)
|
|
207 |
(#'RegressionTests::DebuggerTest' autoload)
|
|
208 |
(#'RegressionTests::DeepCopyTests' autoload)
|
|
209 |
(#'RegressionTests::DelayTest' autoload)
|
|
210 |
(#'RegressionTests::DictionaryTest' autoload)
|
|
211 |
(#'RegressionTests::DoubleMetaphoneStringComparatorTest' autoload)
|
|
212 |
(#'RegressionTests::EnumerationTests' autoload)
|
|
213 |
(#'RegressionTests::ExceptionTest' autoload)
|
|
214 |
(#'RegressionTests::ExternalInterfaceTests' autoload)
|
|
215 |
(#'RegressionTests::ExternalStreamTest' autoload)
|
|
216 |
(#'RegressionTests::FileOpenTest' autoload)
|
|
217 |
(#'RegressionTests::FileStreamTest' autoload)
|
|
218 |
(#'RegressionTests::FilenameTests' autoload)
|
|
219 |
(#'RegressionTests::FloatTest' autoload)
|
|
220 |
(#'RegressionTests::FractionTest' autoload)
|
|
221 |
(#'RegressionTests::GCTest' autoload)
|
|
222 |
(#'RegressionTests::GraphicDrawingTest' autoload)
|
|
223 |
(#'RegressionTests::ImageReaderTest' autoload)
|
|
224 |
(#'RegressionTests::IntegerTest' autoload)
|
|
225 |
(#'RegressionTests::JITTest' autoload)
|
|
226 |
(#'RegressionTests::JavaScriptTests' autoload)
|
|
227 |
(#'RegressionTests::KoelnerPhoneticCodeStringComparatorTest' autoload)
|
|
228 |
(#'RegressionTests::LabelResizingTest' autoload)
|
|
229 |
(#'RegressionTests::LargeFloatTest' autoload)
|
|
230 |
(#'RegressionTests::LiteralsInMethodTests' autoload)
|
|
231 |
(#'RegressionTests::LoggedStreamTests' autoload)
|
|
232 |
(#'RegressionTests::MakefileTests' autoload)
|
|
233 |
(#'RegressionTests::ManyProcessesTest' autoload)
|
|
234 |
(#'RegressionTests::MeasurementValueTests' autoload)
|
|
235 |
(#'RegressionTests::MemoryTest' autoload)
|
|
236 |
(#'RegressionTests::MetaNumbersTest' autoload)
|
|
237 |
(#'RegressionTests::MiracodeStringComparatorTest' autoload)
|
|
238 |
(#'RegressionTests::MySQLSoundexStringComparatorTest' autoload)
|
|
239 |
(#'RegressionTests::NumberTest' autoload)
|
|
240 |
(#'RegressionTests::OS_OLE_Tests' autoload)
|
|
241 |
(#'RegressionTests::OperatingSystemTest' autoload)
|
|
242 |
(#'RegressionTests::OperationInQueueTests' autoload)
|
|
243 |
(#'RegressionTests::PTYTest' autoload)
|
|
244 |
(#'RegressionTests::ParserTests' autoload)
|
|
245 |
(#'RegressionTests::PipeStreamTest' autoload)
|
|
246 |
(#'RegressionTests::PowerSetTests' autoload)
|
|
247 |
(#'RegressionTests::ProcessTest' autoload)
|
|
248 |
(#'RegressionTests::ProjectDefinitionTests' autoload)
|
|
249 |
(#'RegressionTests::QuickTestRunner' autoload)
|
|
250 |
(#'RegressionTests::STCCompilerTests' autoload)
|
|
251 |
(#'RegressionTests::ScaledDecimalTest' autoload)
|
|
252 |
(#'RegressionTests::SegmentedOrderedCollectionTests' autoload)
|
|
253 |
(#'RegressionTests::SelectorNamespacesTests' autoload)
|
|
254 |
(#'RegressionTests::SemaphoreTest' autoload)
|
|
255 |
(#'RegressionTests::ServerSocketTest' autoload)
|
|
256 |
(#'RegressionTests::SharedQueueTest' autoload)
|
|
257 |
(#'RegressionTests::SmallIntegerTest' autoload)
|
|
258 |
(#'RegressionTests::SnapshotRestartTests' autoload)
|
|
259 |
(#'RegressionTests::SocketTests' autoload)
|
|
260 |
(#'RegressionTests::SortTests' autoload)
|
|
261 |
(#'RegressionTests::SoundexStringComparatorTest' autoload)
|
|
262 |
(#'RegressionTests::StackFrameTest' autoload)
|
|
263 |
(#'RegressionTests::StreamTests' autoload)
|
|
264 |
(#'RegressionTests::StringTests' autoload)
|
|
265 |
(#'RegressionTests::SunitXMLOutputTest' autoload)
|
|
266 |
(#'RegressionTests::TSTreeTests' autoload)
|
|
267 |
(#'RegressionTests::TestDialogs1' autoload)
|
|
268 |
(#'RegressionTests::TimeAndDateTest' autoload)
|
|
269 |
(#'RegressionTests::TimeDurationTest' autoload)
|
|
270 |
(#'RegressionTests::URLTest' autoload)
|
|
271 |
(#'RegressionTests::UTF8TestClass' autoload)
|
|
272 |
(#'RegressionTests::VMCrashTestCase' autoload)
|
|
273 |
(#'RegressionTests::WeakCollectionTest' autoload)
|
|
274 |
(#'RegressionTests::WritingToTranscriptOrStdoutTest' autoload)
|
|
275 |
(#'RegressionTests::WrongMethodCalledTest' autoload)
|
|
276 |
(#'RegressionTests::XMLCoderTests' autoload)
|
|
277 |
(#'RegressionTests::ZipArchiveTests' autoload)
|
|
278 |
(#'RegressionTests::ChangeSetTests' autoload)
|
|
279 |
(#'RegressionTests::ClassBuilderTests' autoload)
|
|
280 |
(#'RegressionTests::TSMultiTreeTests' autoload)
|
|
281 |
(#'RegressionTests::VMCrashTests' autoload)
|
1676
|
282 |
(#'RegressionTests::PhonemStringComparatorTest' autoload)
|
|
283 |
(#'RegressionTests::MetaphoneStringComparatorTest' autoload)
|
1685
|
284 |
(#'RegressionTests::ImageTests' autoload)
|
1450
|
285 |
)
|
|
286 |
!
|
|
287 |
|
|
288 |
extensionMethodNames
|
1637
|
289 |
"lists the extension methods which are to be included in the project.
|
|
290 |
Entries are 2-element array literals, consisting of class-name and selector.
|
|
291 |
A correponding method with real names must be present in my concrete subclasses
|
|
292 |
if it has extensions."
|
1450
|
293 |
|
|
294 |
^ #(
|
|
295 |
)
|
|
296 |
! !
|
|
297 |
|
|
298 |
!stx_goodies_regression class methodsFor:'description - project information'!
|
|
299 |
|
|
300 |
applicationIconFileName
|
|
301 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file"
|
|
302 |
|
|
303 |
^ nil
|
|
304 |
"/ ^ self applicationName
|
|
305 |
!
|
|
306 |
|
|
307 |
companyName
|
|
308 |
"Return a companyname which will appear in <lib>.rc"
|
|
309 |
|
|
310 |
^ 'eXept Software AG'
|
|
311 |
!
|
|
312 |
|
|
313 |
description
|
|
314 |
"Return a description string which will appear in vc.def / bc.def"
|
|
315 |
|
|
316 |
^ 'Class Library'
|
|
317 |
!
|
|
318 |
|
|
319 |
legalCopyright
|
|
320 |
"Return a copyright string which will appear in <lib>.rc"
|
|
321 |
|
1452
|
322 |
^ 'Copyright eXept Software AG 1998-2016'
|
1450
|
323 |
!
|
|
324 |
|
|
325 |
productName
|
|
326 |
"Return a product name which will appear in <lib>.rc"
|
|
327 |
|
|
328 |
^ 'eXept addOns'
|
|
329 |
! !
|
|
330 |
|
|
331 |
!stx_goodies_regression class methodsFor:'documentation'!
|
|
332 |
|
|
333 |
version
|
|
334 |
^ '$Header$'
|
|
335 |
!
|
|
336 |
|
|
337 |
version_CVS
|
|
338 |
^ '$Header$'
|
|
339 |
! !
|
1514
|
340 |
|