0
|
1 |
"/
|
|
2 |
"/ execute this script using the following command line:
|
|
3 |
"/
|
8
|
4 |
"/ stx --noBanner -I --execute SelfTest.st
|
0
|
5 |
"/
|
3
|
6 |
"/ to use with jenkins (+ perfPublisher plugin):
|
8
|
7 |
"/ use the following buildscript (in jenkins):
|
3
|
8 |
"/ (after checkout of stx)
|
|
9 |
"/ cd stx
|
|
10 |
"/ call bmake
|
|
11 |
"/ cd goodies\selftest
|
|
12 |
"/ ..\..\projects\smalltalk\stx.com --noBanner -I --execute SelfTest.st
|
|
13 |
"/
|
|
14 |
"/ and configure the perfPublisher jenkins plugin, to scan for "testresult.xml"
|
|
15 |
|
0
|
16 |
Object infoPrinting:false.
|
|
17 |
ObjectMemory infoPrinting:false.
|
|
18 |
Processor activeProcess exceptionHandlerSet
|
|
19 |
on:(Class updateChangeFileQuerySignal)
|
|
20 |
do:[:ex | ex proceedWith:false ].
|
|
21 |
!
|
|
22 |
|
9
|
23 |
Stdout showCR:'Selftest Started'.
|
0
|
24 |
!
|
|
25 |
|
9
|
26 |
Stdout showCR:'Loading sunit...'.
|
0
|
27 |
Smalltalk loadPackage:'stx:goodies/sunit'.
|
|
28 |
!
|
|
29 |
|
22
|
30 |
"/ Smalltalk loadPackage:'stx:goodies/xml/vw'.
|
|
31 |
"/ Smalltalk loadPackage:'stx:goodies/xml/stx'.
|
10
|
32 |
!
|
|
33 |
|
23
|
34 |
!suite result|
|
0
|
35 |
|
15
|
36 |
Stdout showCR:'Creating suite...'.
|
4
|
37 |
suite := TestSuite named:'SelfTest'.
|
23
|
38 |
|
|
39 |
Stdout showCR:'Loading regression tests...'.
|
|
40 |
#(
|
|
41 |
'AssociationTests'
|
|
42 |
"/ 'BinaryIOTests'
|
|
43 |
'BinaryTreeTester'
|
|
44 |
"/ 'BlockTest'
|
|
45 |
'CharacterTests'
|
|
46 |
'CollectionTests'
|
|
47 |
"/ 'CompilerTest'
|
|
48 |
'ComplexTest'
|
|
49 |
"/ 'DebuggerTest'
|
|
50 |
"/ 'DeepCopyTests'
|
|
51 |
"/ 'DelayTest'
|
|
52 |
"/ 'DictionaryTest'
|
|
53 |
"/ 'EnumerationTests'
|
|
54 |
"/ 'ExceptionTest'
|
|
55 |
"/ 'ExternalInterfaceTests'
|
|
56 |
"/ 'FileOpenTest'
|
|
57 |
"/ 'FileStreamTest'
|
|
58 |
"/ 'FloatTest'
|
|
59 |
"/ 'FractionTest'
|
|
60 |
"/ 'FractionTest'
|
|
61 |
"/ 'GCTest'
|
|
62 |
"/ 'GraphicDrawingTest'
|
|
63 |
"/ 'HTMLParserTests'
|
|
64 |
"/ 'ImageReaderTest'
|
|
65 |
"/ 'IntegerTest'
|
|
66 |
"/ 'JavaScriptTests'
|
|
67 |
"/ 'MeasurementValueTests'
|
|
68 |
"/ 'MemoryTest'
|
|
69 |
'NumberTest'
|
|
70 |
"/ 'ParserTest'
|
|
71 |
"/ 'ScaledDecimalTest'
|
|
72 |
"/ 'SemaphoreTest'
|
|
73 |
"/ 'SharedQueueTest'
|
|
74 |
'SmallIntegerTest'
|
|
75 |
"/ 'SortTests'
|
|
76 |
"/ 'StringTests'
|
|
77 |
"/ 'TimeAndDateTest'
|
|
78 |
"/ 'TimeDurationTest'
|
|
79 |
"/ 'URLTest'
|
|
80 |
"/ 'XMLCoderTests'
|
|
81 |
"/ 'ZipArchiveTests'
|
|
82 |
) do:[:className |
|
|
83 |
|fullName|
|
|
84 |
|
|
85 |
fullName := ('RegressionTests::',className).
|
|
86 |
Stdout showCR:('Loading ',className,'...').
|
|
87 |
Smalltalk fileInClass:fullName package:'exept:regression'.
|
|
88 |
suite addTest:(Smalltalk classNamed:fullName) suite.
|
|
89 |
].
|
4
|
90 |
|
15
|
91 |
Stdout showCR:'Running suite...'.
|
8
|
92 |
result := suite
|
|
93 |
runBeforeEachDo:[:test |
|
15
|
94 |
Stdout showCR:('- running ',test printString).
|
8
|
95 |
].
|
23
|
96 |
|
8
|
97 |
TestResultReporter
|
|
98 |
report:result
|
|
99 |
format:#xml_perfPublisher
|
|
100 |
as:'testresult.xml'.
|
0
|
101 |
!
|