1858
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
1840
|
3 |
"{ Package: 'stx:goodies/regression' }"
|
|
4 |
|
|
5 |
"{ NameSpace: RegressionTests }"
|
|
6 |
|
|
7 |
Object subclass:#Helper
|
|
8 |
instanceVariableNames:''
|
|
9 |
classVariableNames:''
|
|
10 |
poolDictionaries:''
|
|
11 |
category:'tests-Regression-Helper'
|
|
12 |
!
|
|
13 |
|
|
14 |
!Helper 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 |
|
|
32 |
!Helper class methodsFor:'queries'!
|
|
33 |
|
1995
|
34 |
isStcCompiledMethod:aMethod in:instance
|
1885
|
35 |
^ self
|
|
36 |
isStcCompiledMethod:aMethod
|
|
37 |
inClass:instance class
|
1995
|
38 |
|
|
39 |
"Modified (format): / 30-07-2018 / 09:16:27 / Stefan Vogel"
|
1885
|
40 |
!
|
|
41 |
|
1995
|
42 |
isStcCompiledMethod:aMethod inClass:aClass
|
1864
|
43 |
|compiledMethod|
|
|
44 |
|
|
45 |
compiledMethod := aClass compiledMethodAt:aMethod.
|
1995
|
46 |
^ compiledMethod notNil and:[compiledMethod byteCode isNil]
|
1864
|
47 |
|
1995
|
48 |
"Modified (format): / 30-07-2018 / 09:16:15 / Stefan Vogel"
|
1864
|
49 |
!
|
|
50 |
|
1840
|
51 |
packageDirectoryForRegressionTests
|
1860
|
52 |
^ self workDirectory / 'stx' / 'goodies' / 'regression'
|
1858
|
53 |
!
|
|
54 |
|
|
55 |
smalltalkDirectory
|
|
56 |
^ self workDirectory / 'stx' / 'projects' / 'smalltalk'
|
|
57 |
!
|
1840
|
58 |
|
1858
|
59 |
workDirectory
|
1917
|
60 |
"return the directory one above the stx folder"
|
|
61 |
|
|
62 |
|directoryOfStandaloneBinary dir parent|
|
1840
|
63 |
|
1858
|
64 |
directoryOfStandaloneBinary := OperatingSystem nameOfSTXExecutable asFilename directory.
|
1917
|
65 |
"/ search for the directory above stx/goodies
|
|
66 |
dir := directoryOfStandaloneBinary.
|
|
67 |
[
|
|
68 |
parent := dir directory.
|
|
69 |
(dir pathName ~= parent pathName)
|
|
70 |
and:[ (dir / 'stx' / 'goodies' / 'regression') exists not ]
|
|
71 |
] whileTrue:[
|
|
72 |
dir := parent.
|
1840
|
73 |
].
|
1917
|
74 |
(dir / 'stx/goodies/regression') exists ifFalse:[self error:'where am I?' ].
|
|
75 |
^ dir.
|
|
76 |
"/ (directoryOfStandaloneBinary pathName includesSubString:'quickSelfTest') ifTrue:[
|
|
77 |
"/ "this test is called by /stx/goodies/builder/quickSelfTest"
|
|
78 |
"/ dir := directoryOfStandaloneBinary.
|
|
79 |
"/ dir
|
|
80 |
"/ ^ directoryOfStandaloneBinary
|
|
81 |
"/ directory "/ /stx/goodies/builder/
|
|
82 |
"/ directory "/ /stx/goodies/
|
|
83 |
"/ directory "/ /stx
|
|
84 |
"/ directory "/ <one above>
|
|
85 |
"/ ].
|
|
86 |
"/
|
|
87 |
"/ ^ directoryOfStandaloneBinary directory directory directory
|
1840
|
88 |
! !
|
|
89 |
|
|
90 |
!Helper class methodsFor:'documentation'!
|
|
91 |
|
|
92 |
version
|
|
93 |
^ '$Header$'
|
|
94 |
!
|
|
95 |
|
|
96 |
version_CVS
|
|
97 |
^ '$Header$'
|
|
98 |
! !
|
|
99 |
|