author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 08 Dec 2016 10:28:07 +0000 | |
branch | jv |
changeset 1564 | 2a4963ef3a4a |
parent 1543 | 6d2bdaf0c9ec |
parent 1554 | 3265c6f1c242 |
child 1570 | afeaedfc562e |
permissions | -rw-r--r-- |
1447 | 1 |
"{ Package: 'stx:goodies/regression' }" |
1008 | 2 |
|
3 |
"{ NameSpace: RegressionTests }" |
|
4 |
||
5 |
TestCase subclass:#MakefileTests |
|
6 |
instanceVariableNames:'package packageDir' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'tests-Regression' |
|
10 |
! |
|
11 |
||
12 |
StandaloneStartup subclass:#TestApplication01 |
|
13 |
instanceVariableNames:'' |
|
14 |
classVariableNames:'' |
|
15 |
poolDictionaries:'' |
|
16 |
privateIn:MakefileTests |
|
17 |
! |
|
18 |
||
19 |
!MakefileTests class methodsFor:'documentation'! |
|
20 |
||
21 |
documentation |
|
22 |
" |
|
1447 | 23 |
This testcase tests St/X makefiles used to build |
1008 | 24 |
standalone applications. |
25 |
||
26 |
[author:] |
|
1447 | 27 |
Jan Vrany <jan.vrany@fit.cvut.cz> |
1008 | 28 |
|
29 |
[instance variables:] |
|
30 |
||
31 |
[class variables:] |
|
32 |
||
33 |
[see also:] |
|
34 |
||
35 |
" |
|
36 |
! ! |
|
37 |
||
38 |
!MakefileTests methodsFor:'compilation'! |
|
39 |
||
40 |
make |
|
41 |
^ self make:''. |
|
42 |
||
43 |
"Created: / 14-08-2013 / 18:27:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
44 |
! |
|
45 |
||
46 |
make: target |
|
47 |
| cmd | |
|
48 |
||
1474
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
49 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
1541
5c6a32e00528
Fixed `MakefileTests` and `SnapshotRestartTests` to not call obsolete method OperatingSystem>>getCCDefine
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
50 |
STCCompilerInterface getCCDefine = '__BORLANDC__' ifTrue:[ |
1474
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
51 |
cmd := 'bmake.bat ' , target. |
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
52 |
]. |
1541
5c6a32e00528
Fixed `MakefileTests` and `SnapshotRestartTests` to not call obsolete method OperatingSystem>>getCCDefine
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
53 |
STCCompilerInterface getCCDefine = '__MINGW32__' ifTrue:[ |
1543
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
54 |
(OperatingSystem getEnvironment: 'MINGW_DIR') isNil ifTrue:[ |
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
55 |
| mingwDir | |
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
56 |
|
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
57 |
mingwDir := #('C:\MSYS64\MINGW32' 'C:\MINGW') detect:[:path | path asFilename isDirectory ] ifNone: [ nil ]. |
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
58 |
self assert: mingwDir notNil description: 'MINGW_DIR environment variable not set and MINGW32 not found at standard places'. |
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
59 |
OperatingSystem setEnvironment: 'MINGW_DIR' to: mingwDir. |
1474
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
60 |
]. |
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
61 |
OperatingSystem setEnvironment: 'MINGW' to: '__MINGW32__'. |
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
62 |
OperatingSystem setEnvironment: 'USEMINGW_ARG' to: '-DUSEMINGW32'. |
1543
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
63 |
OperatingSystem setEnvironment: 'PATH' to: (OperatingSystem getEnvironment: 'PATH') , ';' , (OperatingSystem getEnvironment: 'MINGW_DIR') , '\bin'. |
1474
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
64 |
cmd := 'mingwmake.bat ' , target. |
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
65 |
]. |
1541
5c6a32e00528
Fixed `MakefileTests` and `SnapshotRestartTests` to not call obsolete method OperatingSystem>>getCCDefine
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
66 |
STCCompilerInterface getCCDefine = '__MINGW64__' ifTrue:[ |
1474
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
67 |
(OperatingSystem getEnvironment: 'MINGW_DIR') isNil ifTrue:[ |
1543
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
68 |
| mingwDir | |
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
69 |
|
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
70 |
mingwDir := #('C:\MSYS64\MINGW64' 'C:\MINGW64') detect:[:path | path asFilename isDirectory ] ifNone: [ nil ]. |
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
71 |
self assert: mingwDir notNil description: 'MINGW_DIR environment variable not set and MINGW64 not found at standard places'. |
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
72 |
OperatingSystem setEnvironment: 'MINGW_DIR' to: mingwDir. |
1474
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
73 |
]. |
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
74 |
OperatingSystem setEnvironment: 'MINGW' to: '__MINGW64__'. |
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
75 |
OperatingSystem setEnvironment: 'USEMINGW_ARG' to: '-DUSEMINGW64'. |
1543
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
76 |
OperatingSystem setEnvironment: 'PATH' to: (OperatingSystem getEnvironment: 'PATH') , ';' , (OperatingSystem getEnvironment: 'MINGW_DIR') , '\bin'. |
1474
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
77 |
cmd := 'mingwmake.bat ' , target. |
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
78 |
]. |
1543
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
79 |
|
1474
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
80 |
] ifFalse:[ |
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
81 |
cmd := 'make -f Makefile.init ', target |
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
82 |
]. |
1447 | 83 |
self |
1541
5c6a32e00528
Fixed `MakefileTests` and `SnapshotRestartTests` to not call obsolete method OperatingSystem>>getCCDefine
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
84 |
assert: (OperatingSystem executeCommand: cmd inDirectory: packageDir) |
5c6a32e00528
Fixed `MakefileTests` and `SnapshotRestartTests` to not call obsolete method OperatingSystem>>getCCDefine
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
85 |
description: 'Failed to make target ''', target, ''' in test package'. |
1008 | 86 |
|
87 |
"Created: / 14-08-2013 / 18:26:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1541
5c6a32e00528
Fixed `MakefileTests` and `SnapshotRestartTests` to not call obsolete method OperatingSystem>>getCCDefine
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
88 |
"Modified: / 05-11-2016 / 22:18:36 / jv" |
1543
6d2bdaf0c9ec
Fixed `MakefileTests` and `SnapshotRestartTests` to work on MSYS2-only systems
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1541
diff
changeset
|
89 |
"Modified: / 10-11-2016 / 00:22:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1008 | 90 |
! ! |
91 |
||
92 |
!MakefileTests methodsFor:'running'! |
|
93 |
||
94 |
setUp |
|
1021
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
95 |
self setUpForPackage:'tmp:makefiletests'. |
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
96 |
|
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
97 |
"Created: / 19-11-2013 / 12:57:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
98 |
"Modified: / 24-11-2013 / 22:23:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
99 |
! |
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
100 |
|
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
101 |
setUpForPackage: pkg |
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
102 |
| components | |
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
103 |
package := pkg. |
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
104 |
packageDir := (Smalltalk getPackageDirectoryForPackage: Object package) directory directory. |
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
105 |
components := (package copyReplaceAll: $: with:$/) tokensBasedOn: $/. |
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
106 |
components do:[:each | |
1447 | 107 |
packageDir := packageDir / each. |
1021
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
108 |
]. |
1008 | 109 |
packageDir exists ifTrue:[ |
1447 | 110 |
packageDir recursiveRemove. |
1008 | 111 |
]. |
112 |
packageDir recursiveMakeDirectory |
|
113 |
||
1021
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
114 |
"Created: / 24-11-2013 / 22:23:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1008 | 115 |
! ! |
116 |
||
117 |
!MakefileTests methodsFor:'tests'! |
|
118 |
||
119 |
test_application_01 |
|
120 |
||
121 |
self run:#'test_application_01' type:ProjectDefinition nonGuiApplicationType toolchain:nil |
|
122 |
||
123 |
"Created: / 19-11-2013 / 14:05:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1021
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
124 |
! |
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
125 |
|
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
126 |
test_application_02 |
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
127 |
|
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
128 |
self setUpForPackage: 'tmp:makefiletests2/test_application_02'. |
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
129 |
self run:#'test_application_01' type:ProjectDefinition nonGuiApplicationType toolchain:nil |
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
130 |
|
19269c8a3ba6
class: RegressionTests::MakefileTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1008
diff
changeset
|
131 |
"Created: / 24-11-2013 / 22:23:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1008 | 132 |
! ! |
133 |
||
134 |
!MakefileTests methodsFor:'tests-helpers'! |
|
135 |
||
1447 | 136 |
run:packageIdent type:packageType toolchain:toolchain |
1008 | 137 |
| packageDef startup | |
138 |
||
139 |
"/ Compile all classes... |
|
140 |
Class packageQuerySignal answer:package do:[ |
|
1554 | 141 |
(self class privateClasses select:[:cls | cls packageIdent = packageIdent ]) do:[:cls | |
142 |
| copy | |
|
1008 | 143 |
|
1554 | 144 |
copy := cls superclass |
145 |
subclass: cls nameWithoutPrefix |
|
146 |
instanceVariableNames:(cls instVarNames asStringWith:' ') |
|
147 |
classVariableNames:(cls classVarNames asStringWith:' ') |
|
148 |
poolDictionaries:cls poolDictionaries |
|
149 |
category:'** tmp **'. |
|
150 |
cls methodDictionary do:[:each | |
|
151 |
copy compile:each source classified:each category. |
|
152 |
]. |
|
153 |
cls class methodDictionary do:[:each | |
|
154 |
copy class compile:each source classified:each category. |
|
155 |
]. |
|
156 |
(copy inheritsFrom:StandaloneStartup) ifTrue:[ |
|
157 |
startup := copy. |
|
158 |
]. |
|
159 |
]. |
|
160 |
]. |
|
1447 | 161 |
|
1008 | 162 |
"/ Create project definition class. |
1447 | 163 |
Class packageQuerySignal answer:package do:[ |
1554 | 164 |
packageDef := ProjectDefinition |
165 |
definitionClassForPackage:package |
|
166 |
projectType:packageType |
|
167 |
createIfAbsent:true. |
|
168 |
||
169 |
packageDef class compile:'applicationIconFileName ^ nil'. |
|
170 |
packageDef theNonMetaclass |
|
171 |
forEachContentsMethodsCodeToCompileDo:[:code :category | packageDef theMetaclass compile:code classified:category ] |
|
172 |
"/ignoreOldEntries: false |
|
173 |
ignoreOldDefinition: false. |
|
174 |
packageDef isApplicationDefinition ifTrue:[ |
|
175 |
packageDef class compile:'startupClassName ^ ' , startup fullName storeString. |
|
176 |
]. |
|
1447 | 177 |
]. |
1008 | 178 |
"/ Fileout to package directory... |
1447 | 179 |
|
180 |
packageDef classes do:[:class | |
|
1554 | 181 |
| container | |
1008 | 182 |
|
1554 | 183 |
container := (class fullName copyReplaceAll:$: with:$_) , '.st'. |
184 |
(packageDir / container) |
|
185 |
writingFileDo:[:f | |
|
186 |
AbstractSourceCodeManager |
|
187 |
fileOutSourceCodeOf:class |
|
188 |
on:f |
|
189 |
withTimeStamp:false |
|
190 |
withInitialize:true |
|
191 |
withDefinition:true |
|
192 |
methodFilter:[:mth | mth package = package ] |
|
193 |
] |
|
1008 | 194 |
]. |
1447 | 195 |
|
1008 | 196 |
"/ Generate build support files... |
1447 | 197 |
|
198 |
packageDef fileNamesToGenerate keys do:[:filename | |
|
1479
974a26a06296
MakefileTests: Fixed build support file generation
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1474
diff
changeset
|
199 |
| contents file | |
1008 | 200 |
|
1479
974a26a06296
MakefileTests: Fixed build support file generation
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1474
diff
changeset
|
201 |
contents := packageDef generateFile:filename. |
974a26a06296
MakefileTests: Fixed build support file generation
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1474
diff
changeset
|
202 |
contents notNil ifTrue:[ |
1554 | 203 |
file := (packageDir / filename). |
204 |
file directory recursiveMakeDirectory. |
|
1479
974a26a06296
MakefileTests: Fixed build support file generation
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1474
diff
changeset
|
205 |
file writingFileDo:[:f | f nextPutAll: contents]. |
974a26a06296
MakefileTests: Fixed build support file generation
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1474
diff
changeset
|
206 |
] |
1008 | 207 |
]. |
208 |
||
209 |
self make. |
|
210 |
||
211 |
"Created: / 19-11-2013 / 14:07:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1479
974a26a06296
MakefileTests: Fixed build support file generation
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1474
diff
changeset
|
212 |
"Modified: / 12-02-2016 / 15:12:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1008 | 213 |
! ! |
214 |
||
215 |
!MakefileTests::TestApplication01 class methodsFor:'accessing'! |
|
216 |
||
217 |
packageIdent |
|
218 |
^ #test_application_01 |
|
219 |
||
220 |
"Created: / 19-11-2013 / 14:04:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
221 |
! ! |
|
222 |
||
223 |
!MakefileTests::TestApplication01 class methodsFor:'startup-to be redefined'! |
|
224 |
||
225 |
main:args |
|
226 |
args isEmpty ifTrue:[ |
|
1447 | 227 |
Smalltalk exit: 0. |
1008 | 228 |
]. |
229 |
args size ~~ 1 ifTrue:[ |
|
1447 | 230 |
Smalltalk exit: 127. |
1008 | 231 |
]. |
232 |
||
233 |
[ |
|
1447 | 234 |
Smalltalk exit: args first asInteger. |
1008 | 235 |
] on: Error do:[:ex| |
1447 | 236 |
Smalltalk exit: 126. |
1008 | 237 |
]. |
238 |
||
239 |
"Created: / 19-11-2013 / 13:12:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
240 |
! ! |
|
241 |
||
242 |
!MakefileTests class methodsFor:'documentation'! |
|
243 |
||
244 |
version |
|
245 |
^ '$Header$' |
|
246 |
! |
|
247 |
||
248 |
version_CVS |
|
249 |
^ '$Header$' |
|
1474
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
250 |
! |
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
251 |
|
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
252 |
version_HG |
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
253 |
|
54b7f76f0e68
Fixed MakefileTests under Windows/MINGW toolchain
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1148
diff
changeset
|
254 |
^ '$Changeset: <not expanded> $' |
1008 | 255 |
! ! |
256 |