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 |
|
1864
|
34 |
isStcCompiledMethod:aMethod
|
1885
|
35 |
in:instance
|
|
36 |
|
|
37 |
^ self
|
|
38 |
isStcCompiledMethod:aMethod
|
|
39 |
inClass:instance class
|
|
40 |
!
|
|
41 |
|
|
42 |
isStcCompiledMethod:aMethod
|
1864
|
43 |
inClass:aClass
|
|
44 |
|
|
45 |
|compiledMethod|
|
|
46 |
|
|
47 |
compiledMethod := aClass compiledMethodAt:aMethod.
|
|
48 |
|
|
49 |
^ (compiledMethod notNil
|
|
50 |
and:[compiledMethod byteCode isNil])
|
|
51 |
!
|
|
52 |
|
1840
|
53 |
packageDirectoryForRegressionTests
|
1860
|
54 |
^ self workDirectory / 'stx' / 'goodies' / 'regression'
|
1858
|
55 |
!
|
|
56 |
|
|
57 |
smalltalkDirectory
|
|
58 |
^ self workDirectory / 'stx' / 'projects' / 'smalltalk'
|
|
59 |
!
|
1840
|
60 |
|
1858
|
61 |
workDirectory
|
|
62 |
|directoryOfStandaloneBinary|
|
1840
|
63 |
|
1858
|
64 |
directoryOfStandaloneBinary := OperatingSystem nameOfSTXExecutable asFilename directory.
|
|
65 |
(directoryOfStandaloneBinary pathName includesSubString:'quickSelfTest') ifTrue:[
|
|
66 |
"this test is called by /stx/goodies/builder/quickSelfTest"
|
|
67 |
^ directoryOfStandaloneBinary directory directory directory directory
|
1840
|
68 |
].
|
|
69 |
|
1858
|
70 |
^ directoryOfStandaloneBinary directory directory directory
|
1840
|
71 |
! !
|
|
72 |
|
|
73 |
!Helper class methodsFor:'documentation'!
|
|
74 |
|
|
75 |
version
|
|
76 |
^ '$Header$'
|
|
77 |
!
|
|
78 |
|
|
79 |
version_CVS
|
|
80 |
^ '$Header$'
|
|
81 |
! !
|
|
82 |
|