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