380
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
350
|
3 |
"{ Package: 'stx:goodies/builder/quickSelfTest' }"
|
|
4 |
|
|
5 |
"{ NameSpace: Smalltalk }"
|
|
6 |
|
|
7 |
StandaloneStartup subclass:#RunUnitTestsStart
|
|
8 |
instanceVariableNames:''
|
|
9 |
classVariableNames:''
|
|
10 |
poolDictionaries:''
|
|
11 |
category:'tests-Regression'
|
|
12 |
!
|
|
13 |
|
|
14 |
!RunUnitTestsStart class methodsFor:'documentation'!
|
|
15 |
|
|
16 |
documentation
|
|
17 |
"
|
|
18 |
documentation to be added.
|
|
19 |
|
|
20 |
[author:]
|
|
21 |
sr
|
|
22 |
|
|
23 |
[instance variables:]
|
|
24 |
|
|
25 |
[class variables:]
|
|
26 |
|
|
27 |
[see also:]
|
|
28 |
|
|
29 |
"
|
|
30 |
! !
|
|
31 |
|
380
|
32 |
!RunUnitTestsStart class methodsFor:'starting'!
|
350
|
33 |
|
380
|
34 |
main:argv
|
|
35 |
self verboseInfo:('starting application').
|
|
36 |
self startStartBlockProcess.
|
|
37 |
|
383
|
38 |
"install a global handler,
|
|
39 |
which suppresses the updating of the change file"
|
|
40 |
Processor activeProcess exceptionHandlerSet
|
|
41 |
on:(Class updateChangeFileQuerySignal)
|
|
42 |
do:[:ex | ex proceedWith:false].
|
381
|
43 |
|
383
|
44 |
"ensure that required packages are present"
|
|
45 |
#(
|
|
46 |
'stx:goodies/sunit'
|
384
|
47 |
"/ 'stx:libcompat'
|
|
48 |
"/ 'stx:libjavascript'
|
383
|
49 |
'stx:goodies/regression'
|
|
50 |
) do:[:eachPackage |
|
|
51 |
(Smalltalk loadPackage:eachPackage) ifFalse:[
|
|
52 |
Stdout showCR:'error: missing package ', eachPackage.
|
|
53 |
Smalltalk exit:1.
|
|
54 |
].
|
|
55 |
].
|
|
56 |
|
|
57 |
"run the unit tests"
|
|
58 |
RunUnitTests run.
|
350
|
59 |
! !
|
|
60 |
|
|
61 |
!RunUnitTestsStart class methodsFor:'documentation'!
|
|
62 |
|
|
63 |
version
|
|
64 |
^ '$Header$'
|
|
65 |
!
|
|
66 |
|
|
67 |
version_CVS
|
|
68 |
^ '$Header$'
|
|
69 |
! !
|
|
70 |
|