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 |
Stream compile:'<< text self nextPutAll:text'.
|
|
23 |
!
|
|
24 |
|
|
25 |
Stdout << 'Selftest Started '; cr.
|
|
26 |
!
|
|
27 |
|
|
28 |
Stdout <<'Loading sunit...'; cr.
|
|
29 |
Smalltalk loadPackage:'stx:goodies/sunit'.
|
|
30 |
!
|
|
31 |
|
|
32 |
Stdout <<'Loading regression tests...'; cr.
|
|
33 |
Smalltalk installAutoloadedClassesFromAbbrevFile:((Smalltalk projectDirectoryForPackage:'exept:regression') asFilename / 'abbrev.stc').
|
|
34 |
!
|
|
35 |
|
4
|
36 |
|suite result|
|
0
|
37 |
|
4
|
38 |
suite := TestSuite named:'SelfTest'.
|
|
39 |
suite addTest:(RegressionTests::IntegerTest suite).
|
|
40 |
suite addTest:(RegressionTests::CollectionTests suite).
|
5
|
41 |
suite addTest:(RegressionTests::CompilerTest suite).
|
|
42 |
suite addTest:(RegressionTests::DelayTest suite).
|
|
43 |
suite addTest:(RegressionTests::DictionaryTest suite).
|
|
44 |
suite addTest:(RegressionTests::EnumerationTests suite).
|
6
|
45 |
suite addTest:(RegressionTests::ExceptionTest suite).
|
4
|
46 |
|
8
|
47 |
result := suite
|
|
48 |
runBeforeEachDo:[:test |
|
|
49 |
Stdout << ('running ',test printString). Stdout cr
|
|
50 |
].
|
|
51 |
TestResultReporter
|
|
52 |
report:result
|
|
53 |
format:#xml_perfPublisher
|
|
54 |
as:'testresult.xml'.
|
0
|
55 |
!
|