0
|
1 |
"/
|
|
2 |
"/ execute this script using the following command line:
|
|
3 |
"/
|
|
4 |
"/ stx -nobanner -I --quick --execute SelfTest.st
|
|
5 |
"/
|
3
|
6 |
"/ to use with jenkins (+ perfPublisher plugin):
|
|
7 |
"/ use the following buildscript:
|
|
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).
|
|
45 |
suite addTest:(RegressionTests::ExceptionTests suite).
|
4
|
46 |
|
|
47 |
result := suite run.
|
3
|
48 |
TestResultReporter report:result format:#xml_perfPublisher as:'testresult.xml'.
|
0
|
49 |
|
|
50 |
"/Autoload allSubclassesDo:[:cls |
|
|
51 |
"/ cls package = 'exept:regression' ifTrue:[
|
|
52 |
"/ Stdout << cls name; cr.
|
|
53 |
"/ cls runTests.
|
|
54 |
"/ ].
|
|
55 |
"/].
|
|
56 |
!
|