1848
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
1450
|
3 |
"{ Package: 'stx:goodies/regression' }"
|
|
4 |
|
|
5 |
"{ NameSpace: Smalltalk }"
|
|
6 |
|
|
7 |
LibraryDefinition subclass:#stx_goodies_regression
|
|
8 |
instanceVariableNames:''
|
|
9 |
classVariableNames:''
|
|
10 |
poolDictionaries:''
|
|
11 |
category:'* Projects & Packages *'
|
|
12 |
!
|
|
13 |
|
1913
|
14 |
!stx_goodies_regression class methodsFor:'documentation'!
|
|
15 |
|
|
16 |
documentation
|
|
17 |
"
|
|
18 |
Package documentation:
|
|
19 |
|
|
20 |
stx regression tests (unit tests)
|
|
21 |
"
|
|
22 |
! !
|
1450
|
23 |
|
|
24 |
!stx_goodies_regression class methodsFor:'accessing - tests'!
|
|
25 |
|
|
26 |
testCaseNamesWithoutNamespace
|
|
27 |
^#(
|
|
28 |
"/ 'SunitXMLOutputTest'
|
|
29 |
'ProjectDefinitionTests'
|
|
30 |
'CoverageInstrumentationTest'
|
|
31 |
'AssociationTests'
|
|
32 |
'BinaryIOTests'
|
|
33 |
'BinaryTreeTester'
|
|
34 |
"/ 'BlockTest'
|
|
35 |
'CharacterTests'
|
|
36 |
'CollectionTests'
|
|
37 |
'CompilerTest'
|
|
38 |
'ComplexTest'
|
|
39 |
"/ 'STCCompilerTests'
|
|
40 |
"/ 'DebuggerTest'
|
|
41 |
"/ 'DeepCopyTests'
|
|
42 |
'DelayTest'
|
|
43 |
'DictionaryTest'
|
|
44 |
'EnumerationTests'
|
|
45 |
'ExceptionTest'
|
|
46 |
"/ 'ExternalInterfaceTests'
|
|
47 |
"/ 'FileOpenTest'
|
|
48 |
'FileStreamTest'
|
|
49 |
'FloatTest'
|
|
50 |
'FractionTest'
|
|
51 |
"/ 'GCTest'
|
|
52 |
"/ 'GraphicDrawingTest'
|
|
53 |
"/ 'HTMLParserTests'
|
|
54 |
"/ 'ImageReaderTest'
|
|
55 |
'IntegerTest'
|
|
56 |
'JavaScriptTests'
|
|
57 |
"/ 'MeasurementValueTests'
|
|
58 |
"/ 'MemoryTest'
|
|
59 |
'NumberTest'
|
|
60 |
'ParserTest'
|
|
61 |
'ScaledDecimalTest'
|
|
62 |
"/ 'SemaphoreTest'
|
|
63 |
"/ 'SharedQueueTest'
|
|
64 |
'SmallIntegerTest'
|
|
65 |
"/ 'SortTests'
|
|
66 |
'StringTests'
|
|
67 |
'StreamTests'
|
|
68 |
'TimeAndDateTest'
|
|
69 |
'TimeDurationTest'
|
|
70 |
"/ 'URLTest'
|
|
71 |
"/ 'XMLCoderTests'
|
|
72 |
"/ 'ZipArchiveTests'
|
|
73 |
'ClassBuilderTests'
|
|
74 |
"/ 'CompilerTests2'
|
|
75 |
'ChangeSetTests'
|
|
76 |
'FilenameTests'
|
|
77 |
'ProjectDefinitionTests'
|
|
78 |
'ClassDescriptionTests'
|
|
79 |
'SnapshotRestartTests'
|
|
80 |
'MakefileTests'
|
|
81 |
'TSTreeTests'
|
|
82 |
'TSMultiTreeTests'
|
|
83 |
"/ 'VMCrashTests'
|
|
84 |
'ProcessTest'
|
|
85 |
'PipeStreamTest'
|
|
86 |
'JITTest'
|
|
87 |
)
|
|
88 |
|
|
89 |
"Modified: / 18-11-2014 / 11:54:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
90 |
!
|
|
91 |
|
|
92 |
testSuite
|
|
93 |
|
|
94 |
| suite |
|
|
95 |
|
|
96 |
suite := TestSuite named: self package.
|
|
97 |
self testCaseNamesWithoutNamespace do:[:className |
|
|
98 |
|fullName|
|
|
99 |
|
|
100 |
fullName := ('RegressionTests::',className).
|
|
101 |
('Loading ',className,'...') infoPrintCR.
|
|
102 |
Smalltalk fileInClass:fullName package:self package.
|
|
103 |
(Smalltalk classNamed:fullName) isNil ifTrue:[
|
|
104 |
('**** Ouch - missing class: "',fullName,'"') infoPrintCR.
|
|
105 |
] ifFalse:[
|
|
106 |
suite addTest:(Smalltalk classNamed:fullName) suite.
|
|
107 |
].
|
|
108 |
].
|
|
109 |
|
|
110 |
^suite
|
|
111 |
|
|
112 |
"Created: / 03-08-2011 / 09:19:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
113 |
! !
|
|
114 |
|
|
115 |
!stx_goodies_regression class methodsFor:'description'!
|
|
116 |
|
|
117 |
excludedFromPreRequisites
|
|
118 |
"list all packages which should be ignored in the automatic
|
|
119 |
preRequisites scan. See #preRequisites for more."
|
|
120 |
|
|
121 |
^ #(
|
|
122 |
#'exept:libcrypt' "loaded lazily by CryptTests - SHA256Stream - referenced by RegressionTests::CryptTests>>test06_sha256 "
|
|
123 |
#'stx:goodies' "no project def - CharacterEncoderCodeGenerator - referenced by RegressionTests::CharacterTests>>test01CaseTesting "
|
|
124 |
)
|
|
125 |
|
|
126 |
"Modified: / 03-03-2014 / 12:00:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
127 |
!
|
|
128 |
|
|
129 |
mandatoryPreRequisites
|
|
130 |
"list packages which are mandatory as a prerequisite.
|
|
131 |
This are packages containing superclasses of my classes and classes which
|
|
132 |
are extended by myself.
|
|
133 |
They are mandatory, because we need these packages as a prerequisite for loading and compiling.
|
|
134 |
This method is generated automatically,
|
1637
|
135 |
by searching along the inheritance chain of all of my classes.
|
|
136 |
Please take a look at the #referencedPreRequisites method as well."
|
1450
|
137 |
|
|
138 |
^ #(
|
1736
|
139 |
#'stx:goodies/sunit' "TestAsserter - superclass of RegressionTests::AssociationTests"
|
|
140 |
#'stx:libbasic' "ArrayedCollection - superclass of RegressionTests::CompilerTests2ExternalBytes"
|
|
141 |
#'stx:libview' "DisplaySurface - superclass of RegressionTests::WrongMethodCalledTest::GraphicTestView"
|
|
142 |
#'stx:libview2' "ApplicationModel - superclass of RegressionTests::LabelResizingTest"
|
1450
|
143 |
)
|
|
144 |
!
|
|
145 |
|
|
146 |
referencedPreRequisites
|
|
147 |
"list packages which are a prerequisite, because they contain
|
|
148 |
classes which are referenced by my classes.
|
1637
|
149 |
These packages are NOT needed as a prerequisite for compiling or loading,
|
|
150 |
however, a class from it may be referenced during execution and having it
|
|
151 |
unloaded then may lead to a runtime doesNotUnderstand error, unless the caller
|
|
152 |
includes explicit checks for the package being present.
|
1450
|
153 |
This method is generated automatically,
|
1637
|
154 |
by searching all classes (and their packages) which are referenced by my classes.
|
|
155 |
Please also take a look at the #mandatoryPreRequisites method"
|
1450
|
156 |
|
|
157 |
^ #(
|
1736
|
158 |
#'stx:goodies/xml/stx' "XMLStandardCoder - referenced by RegressionTests::XMLCoderTests>>encodeAndDecode:"
|
|
159 |
#'stx:goodies/xml/vw' "XML::Attribute - referenced by RegressionTests::MemoryTest>>test1"
|
|
160 |
#'stx:libbasic2' "ActorStream - referenced by RegressionTests::OperatingSystemTest>>helperActorStreamWithCommand:"
|
|
161 |
#'stx:libbasic3' "AbstractSourceCodeManager - referenced by RegressionTests::ChangeSetTests>>test_ClassSourceWriter_01"
|
|
162 |
#'stx:libboss' "BinaryIOManager - referenced by RegressionTests::BinaryIOTests>>testBehavior"
|
|
163 |
#'stx:libcomp' "InstrumentationContext - referenced by RegressionTests::CoverageInstrumentationTest>>test_01_instrumentation"
|
|
164 |
#'stx:libhtml' "HTMLDocumentView - referenced by RegressionTests::TestDialogs1>>openDocumentation"
|
|
165 |
#'stx:libjavascript' "JavaScriptCompiler - referenced by RegressionTests::JavaScriptTests>>execute:for:arguments:"
|
|
166 |
#'stx:libtool' "DebugView - referenced by RegressionTests::DebuggerTest>>testBlockVars_01"
|
|
167 |
#'stx:libwidg' "Button - referenced by RegressionTests::UTF8TestClass>>someJapaneseButton"
|
|
168 |
#'stx:libwidg2' "HierarchicalItem - referenced by RegressionTests::BinaryIOTests>>testSaveReadBOS"
|
1450
|
169 |
)
|
|
170 |
!
|
|
171 |
|
|
172 |
subProjects
|
|
173 |
"list packages which are known as subprojects.
|
|
174 |
The generated makefile will enter those and make there as well.
|
|
175 |
However: they are not forced to be loaded when a package is loaded;
|
|
176 |
for those, redefine requiredPrerequisites"
|
|
177 |
|
|
178 |
^ #(
|
|
179 |
)
|
|
180 |
! !
|
|
181 |
|
|
182 |
!stx_goodies_regression class methodsFor:'description - contents'!
|
|
183 |
|
|
184 |
classNamesAndAttributes
|
|
185 |
"lists the classes which are to be included in the project.
|
|
186 |
Each entry in the list may be: a single class-name (symbol),
|
|
187 |
or an array-literal consisting of class name and attributes.
|
|
188 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..."
|
|
189 |
|
|
190 |
^ #(
|
1514
|
191 |
"<className> or (<className> attributes...) in load order"
|
1736
|
192 |
#'RegressionTests::ClassWithoutVersionMethod'
|
|
193 |
#'RegressionTests::CompilerTests2ExternalBytes'
|
|
194 |
#'RegressionTests::LabelResizingTest'
|
|
195 |
#'RegressionTests::ManyProcessesTest'
|
|
196 |
#'RegressionTests::QuickTestRunner'
|
|
197 |
#'RegressionTests::TestDialogs1'
|
|
198 |
#'RegressionTests::UTF8TestClass'
|
|
199 |
#'RegressionTests::WrongMethodCalledTest'
|
1637
|
200 |
#'stx_goodies_regression'
|
1742
|
201 |
(#'RegressionTests::CryptTests')
|
|
202 |
(#'RegressionTests::TypedArrayTests')
|
|
203 |
(#'RegressionTests::UninterpretedBytesTest')
|
|
204 |
(#'RegressionTests::CompressionStreamTest')
|
|
205 |
(#'RegressionTests::LinkedListTest')
|
|
206 |
(#'RegressionTests::QueueTest')
|
|
207 |
(#'RegressionTests::Win32OLETests')
|
|
208 |
(#'RegressionTests::Win32OperatingSystemTest')
|
|
209 |
(#'RegressionTests::HTMLParserTests')
|
|
210 |
(#'RegressionTests::HTTPServerTests')
|
|
211 |
(#'RegressionTests::CompilerTests2')
|
|
212 |
(#'RegressionTests::AssociationTests')
|
|
213 |
(#'RegressionTests::BecomeTests')
|
|
214 |
(#'RegressionTests::BinaryIOTests')
|
|
215 |
(#'RegressionTests::BinaryTreeTester')
|
|
216 |
(#'RegressionTests::BlockTest')
|
|
217 |
(#'RegressionTests::BreakpointTests')
|
|
218 |
(#'RegressionTests::CECollectionExtensionTest')
|
|
219 |
(#'RegressionTests::CESequenceableCollectionExtensionTest')
|
|
220 |
(#'RegressionTests::CEStringExtensionTest')
|
|
221 |
(#'RegressionTests::CachedValueTest')
|
|
222 |
(#'RegressionTests::CharacterEncoderTests')
|
|
223 |
(#'RegressionTests::CharacterSetTests')
|
|
224 |
(#'RegressionTests::CharacterTests')
|
|
225 |
(#'RegressionTests::ClassAndMethodCompilingTestCase')
|
|
226 |
(#'RegressionTests::ClassDescriptionTests')
|
|
227 |
(#'RegressionTests::CollectionTests')
|
|
228 |
(#'RegressionTests::CompilerTest')
|
1773
|
229 |
(#'RegressionTests::ComplexTest')
|
1742
|
230 |
(#'RegressionTests::CoverageInstrumentationTest')
|
|
231 |
(#'RegressionTests::DebuggerTest')
|
|
232 |
(#'RegressionTests::DeepCopyTests')
|
|
233 |
(#'RegressionTests::DelayTest')
|
|
234 |
(#'RegressionTests::DictionaryTest')
|
|
235 |
(#'RegressionTests::DoubleMetaphoneStringComparatorTest')
|
|
236 |
(#'RegressionTests::EnumerationTests')
|
1765
|
237 |
(#'RegressionTests::ExceptionTest')
|
1742
|
238 |
(#'RegressionTests::ExternalStreamTest')
|
|
239 |
(#'RegressionTests::FileOpenTest')
|
|
240 |
(#'RegressionTests::FileStreamTest')
|
|
241 |
(#'RegressionTests::FilenameTests')
|
|
242 |
(#'RegressionTests::FloatTest')
|
|
243 |
(#'RegressionTests::FractionTest')
|
|
244 |
(#'RegressionTests::GCTest')
|
|
245 |
(#'RegressionTests::GraphicDrawingTest')
|
|
246 |
(#'RegressionTests::ImageReaderTest')
|
|
247 |
(#'RegressionTests::IntegerTest')
|
|
248 |
(#'RegressionTests::JITTest')
|
|
249 |
(#'RegressionTests::JavaScriptTests')
|
|
250 |
(#'RegressionTests::KoelnerPhoneticCodeStringComparatorTest')
|
|
251 |
(#'RegressionTests::LiteralsInMethodTests')
|
|
252 |
(#'RegressionTests::LoggedStreamTests')
|
|
253 |
(#'RegressionTests::MakefileTests')
|
|
254 |
(#'RegressionTests::MeasurementValueTests')
|
|
255 |
(#'RegressionTests::MemoryTest')
|
|
256 |
(#'RegressionTests::MetaNumbersTest')
|
|
257 |
(#'RegressionTests::MiracodeStringComparatorTest')
|
|
258 |
(#'RegressionTests::MySQLSoundexStringComparatorTest')
|
|
259 |
(#'RegressionTests::NumberTest')
|
|
260 |
(#'RegressionTests::OS_OLE_Tests')
|
|
261 |
(#'RegressionTests::OperatingSystemTest')
|
|
262 |
(#'RegressionTests::OperationInQueueTests')
|
|
263 |
(#'RegressionTests::PTYTest')
|
|
264 |
(#'RegressionTests::ParserTests')
|
|
265 |
(#'RegressionTests::PipeStreamTest')
|
|
266 |
(#'RegressionTests::PowerSetTests')
|
|
267 |
(#'RegressionTests::ProcessTest')
|
|
268 |
(#'RegressionTests::ProjectDefinitionTests')
|
|
269 |
(#'RegressionTests::STCCompilerTests')
|
|
270 |
(#'RegressionTests::ScaledDecimalTest')
|
1765
|
271 |
(#'RegressionTests::SegmentedOrderedCollectionTests')
|
1742
|
272 |
(#'RegressionTests::SemaphoreTest')
|
|
273 |
(#'RegressionTests::ServerSocketTest')
|
|
274 |
(#'RegressionTests::SharedQueueTest')
|
|
275 |
(#'RegressionTests::SmallIntegerTest')
|
|
276 |
(#'RegressionTests::SnapshotRestartTests')
|
|
277 |
(#'RegressionTests::SocketTests')
|
|
278 |
(#'RegressionTests::SortTests')
|
|
279 |
(#'RegressionTests::SoundexStringComparatorTest')
|
|
280 |
(#'RegressionTests::StackFrameTest')
|
|
281 |
(#'RegressionTests::StreamTests')
|
|
282 |
(#'RegressionTests::StringTests')
|
|
283 |
(#'RegressionTests::SunitXMLOutputTest')
|
|
284 |
(#'RegressionTests::TSTreeTests')
|
|
285 |
(#'RegressionTests::TimeAndDateTest')
|
|
286 |
(#'RegressionTests::TimeDurationTest')
|
|
287 |
(#'RegressionTests::URLTest')
|
|
288 |
(#'RegressionTests::VMCrashTestCase')
|
|
289 |
(#'RegressionTests::WeakCollectionTest')
|
|
290 |
(#'RegressionTests::WritingToTranscriptOrStdoutTest')
|
|
291 |
(#'RegressionTests::XMLCoderTests')
|
|
292 |
(#'RegressionTests::ZipArchiveTests')
|
|
293 |
(#'RegressionTests::ChangeSetTests')
|
|
294 |
(#'RegressionTests::ClassBuilderTests')
|
|
295 |
(#'RegressionTests::TSMultiTreeTests')
|
|
296 |
(#'RegressionTests::VMCrashTests')
|
|
297 |
(#'RegressionTests::PhonemStringComparatorTest')
|
|
298 |
(#'RegressionTests::MetaphoneStringComparatorTest')
|
|
299 |
(#'RegressionTests::ImageTests')
|
|
300 |
(#'RegressionTests::BayesClassifierTest')
|
|
301 |
(#'RegressionTests::DirectoryStreamTest')
|
|
302 |
(#'RegressionTests::EncoderTests')
|
|
303 |
(#'RegressionTests::FuzzyMatcherTests')
|
|
304 |
(#'RegressionTests::MRAStringComparatorTest')
|
|
305 |
(#'RegressionTests::Metaphone3StringComparatorTest')
|
1765
|
306 |
(#'RegressionTests::QDoubleTests')
|
1742
|
307 |
(#'RegressionTests::StreamUpToTests')
|
1848
|
308 |
(#'RegressionTests::Helper')
|
1876
|
309 |
(#'RegressionTests::RxTests')
|
1855
|
310 |
(#'RegressionTests::LargeFloatTest' #autoload) "/ LargeFloat is unfinished and declared as autoloaded in libbasic
|
|
311 |
(#'RegressionTests::SelectorNamespacesTests' #autoload) "/ obsolete and/or not compileable
|
|
312 |
(#'RegressionTests::ExternalInterfaceTests' #autoload) "/ obsolete and/or not compileable
|
|
313 |
(#'RegressionTests::ContextTest2' #autoload) "/ obsolete and/or not compileable
|
|
314 |
(#'RegressionTests::BehaviorLookupObjectTests' #autoload) "/ obsolete and/or not compileable
|
1450
|
315 |
)
|
|
316 |
!
|
|
317 |
|
|
318 |
extensionMethodNames
|
1637
|
319 |
"lists the extension methods which are to be included in the project.
|
|
320 |
Entries are 2-element array literals, consisting of class-name and selector.
|
|
321 |
A correponding method with real names must be present in my concrete subclasses
|
|
322 |
if it has extensions."
|
1450
|
323 |
|
|
324 |
^ #(
|
|
325 |
)
|
|
326 |
! !
|
|
327 |
|
|
328 |
!stx_goodies_regression class methodsFor:'description - project information'!
|
|
329 |
|
|
330 |
applicationIconFileName
|
|
331 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file"
|
|
332 |
|
|
333 |
^ nil
|
|
334 |
"/ ^ self applicationName
|
|
335 |
!
|
|
336 |
|
|
337 |
companyName
|
|
338 |
"Return a companyname which will appear in <lib>.rc"
|
|
339 |
|
|
340 |
^ 'eXept Software AG'
|
|
341 |
!
|
|
342 |
|
|
343 |
description
|
|
344 |
"Return a description string which will appear in vc.def / bc.def"
|
|
345 |
|
|
346 |
^ 'Class Library'
|
|
347 |
!
|
|
348 |
|
|
349 |
legalCopyright
|
|
350 |
"Return a copyright string which will appear in <lib>.rc"
|
|
351 |
|
1452
|
352 |
^ 'Copyright eXept Software AG 1998-2016'
|
1450
|
353 |
!
|
|
354 |
|
|
355 |
productName
|
|
356 |
"Return a product name which will appear in <lib>.rc"
|
|
357 |
|
|
358 |
^ 'eXept addOns'
|
|
359 |
! !
|
|
360 |
|
|
361 |
!stx_goodies_regression class methodsFor:'documentation'!
|
|
362 |
|
|
363 |
version
|
|
364 |
^ '$Header$'
|
|
365 |
!
|
|
366 |
|
|
367 |
version_CVS
|
|
368 |
^ '$Header$'
|
|
369 |
! !
|
1514
|
370 |
|