forked from squeak-smalltalk/squeak-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_image.st
30 lines (22 loc) · 987 Bytes
/
test_image.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| smalltalkVersion smalltalkCIDir stonConfig monitor |
smalltalkVersion := (Smalltalk argumentAt: 1) ifNil: [''].
smalltalkCIDir := Smalltalk argumentAt: 2.
stonConfig := Smalltalk argumentAt: 3.
"Ensure FileStream stdout is open"
FileStream startUp: true.
monitor := [ [
FileStream stdout nextPutAll: '.'.
(Delay forMilliseconds: 5000) wait] repeat ] forkAt: 75.
"# Install smalltalkCI ========================================================"
"Metacello will automatically be bootstrapped via MetacelloStub"
[ Metacello new
baseline: 'SmalltalkCI';
repository: 'filetree://', smalltalkCIDir , '/repository';
onConflict: [:ex | ex pass];
load ] on: Warning do: [:w | w resume ].
monitor terminate.
monitor := nil.
FileStream stdout closed ifTrue: [ FileStream startUp: true ].
(Smalltalk at: #SmalltalkCI) test: stonConfig named: 'Squeak SUnit Tests'.
"Currently not reached, because SmalltalkCI>>test: closes image already"
Smalltalk snapshot: false andQuit: true.