1840
|
1 |
"{ Package: 'stx:goodies/regression' }"
|
|
2 |
|
|
3 |
"{ NameSpace: RegressionTests }"
|
|
4 |
|
|
5 |
Object subclass:#Helper
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'tests-Regression-Helper'
|
|
10 |
!
|
|
11 |
|
|
12 |
!Helper class methodsFor:'documentation'!
|
|
13 |
|
|
14 |
documentation
|
|
15 |
"
|
|
16 |
documentation to be added.
|
|
17 |
|
|
18 |
[author:]
|
|
19 |
sr
|
|
20 |
|
|
21 |
[instance variables:]
|
|
22 |
|
|
23 |
[class variables:]
|
|
24 |
|
|
25 |
[see also:]
|
|
26 |
|
|
27 |
"
|
|
28 |
! !
|
|
29 |
|
|
30 |
!Helper class methodsFor:'queries'!
|
|
31 |
|
|
32 |
packageDirectoryForRegressionTests
|
|
33 |
"
|
|
34 |
self
|
|
35 |
packageDirectoryForClass:self
|
|
36 |
relativePath:'stx/goodies/regression'
|
|
37 |
"
|
|
38 |
|
|
39 |
|packageDirectory pathOfSTXExecutable|
|
|
40 |
|
|
41 |
packageDirectory := self packageDirectory.
|
|
42 |
packageDirectory notNil ifTrue:[
|
|
43 |
^ packageDirectory
|
|
44 |
].
|
|
45 |
|
|
46 |
"/ packageDirectory is nil -> stc code
|
|
47 |
pathOfSTXExecutable := OperatingSystem pathOfSTXExecutable.
|
|
48 |
(pathOfSTXExecutable includesSubString:'quickSelfTest') ifTrue:[
|
|
49 |
"unit tests started from stx/goodies/builder/quickSelfTest/quickSelfTest"
|
|
50 |
^ pathOfSTXExecutable asFilename "/ stx/goodies/builder/quickSelfTest/quickSelfTest
|
|
51 |
directory "/ stx/goodies/builder/quickSelfTest
|
|
52 |
directory "/ stx/goodies/builder
|
|
53 |
directory "/ stx/goodies
|
|
54 |
/ 'regression'
|
|
55 |
].
|
|
56 |
|
|
57 |
self error:'no package path'.
|
|
58 |
! !
|
|
59 |
|
|
60 |
!Helper class methodsFor:'documentation'!
|
|
61 |
|
|
62 |
version
|
|
63 |
^ '$Header$'
|
|
64 |
!
|
|
65 |
|
|
66 |
version_CVS
|
|
67 |
^ '$Header$'
|
|
68 |
! !
|
|
69 |
|