716
|
1 |
"/ Script meant to be called from jenkins (or similar build tools)
|
|
2 |
"/
|
1447
|
3 |
"/ runs a number of tests from the stx:goodies/regression package (see list below)
|
716
|
4 |
"/ execute this script using the following command line:
|
|
5 |
"/
|
725
|
6 |
"/ stx --noBanner -I --execute SelfTestRunner.st
|
716
|
7 |
"/ use --debug to debug failed test cases.
|
|
8 |
"/
|
|
9 |
"/ to use with jenkins (+ jUnit plugin):
|
|
10 |
"/ use the following buildscript (in jenkins):
|
|
11 |
"/ (after checkout of stx)
|
|
12 |
"/ cd stx
|
|
13 |
"/ call bmake
|
|
14 |
"/ cd goodies\selftest
|
725
|
15 |
"/ ..\..\projects\smalltalk\stx.com --noBanner -I --execute SelfTestRunner.st
|
716
|
16 |
"/
|
|
17 |
|
|
18 |
"/ tell the system, where stx is...
|
735
|
19 |
ParserFlags initializeSTCFlagsForTopDirectory:'..\..\stx'.
|
716
|
20 |
|
|
21 |
Object infoPrinting:false.
|
|
22 |
ObjectMemory infoPrinting:false.
|
735
|
23 |
!
|
716
|
24 |
|
735
|
25 |
Stdout showCR:'Loading required packages...'.
|
716
|
26 |
Smalltalk loadPackage:'stx:goodies/sunit'.
|
|
27 |
self assert:(TestCase notNil and:[TestCase isLoaded]).
|
|
28 |
Smalltalk loadPackage:'stx:libcompat'.
|
|
29 |
Smalltalk loadPackage:'stx:libjavascript'.
|
1545
|
30 |
(Smalltalk at:#'RegressionTests::ClassAndMethodCompilingTestCase') isNil ifTrue:[
|
|
31 |
Smalltalk fileInClass:'RegressionTests::ClassAndMethodCompilingTestCase' package:'stx:goodies/regression'
|
|
32 |
].
|
735
|
33 |
!
|
716
|
34 |
|
735
|
35 |
Stdout showCR:'Loading RegressionTests::QuickTestRunner...'.
|
1447
|
36 |
(Smalltalk fileInClass:'RegressionTests::QuickTestRunner' package:'stx:goodies/regression')
|
735
|
37 |
notNil ifFalse:[
|
|
38 |
Stderr showCR:'failed to load RegressionTests::QuickTestRunner.'.
|
|
39 |
Smalltalk exit:1.
|
|
40 |
].
|
|
41 |
(Smalltalk classNamed:'RegressionTests::QuickTestRunner') isNil ifTrue:[
|
|
42 |
Stderr showCR:'failed to load RegressionTests::QuickTestRunner.'.
|
|
43 |
Smalltalk exit:1.
|
|
44 |
].
|
|
45 |
!
|
716
|
46 |
|
728
|
47 |
Stdout showCR:'Running QuickTestRunner suite...'.
|
735
|
48 |
!
|
|
49 |
|
728
|
50 |
RegressionTests::QuickTestRunner start.
|
|
51 |
Smalltalk exit:0.
|