tools.deploy.test: shake-and-bake is a long-unit-test
parent
00c4069640
commit
a09cc13a17
|
@ -1,7 +1,7 @@
|
|||
USING: accessors arrays bootstrap.image continuations
|
||||
io.directories io.files.info io.files.temp io.launcher
|
||||
io.backend kernel layouts math sequences system
|
||||
tools.deploy.backend tools.deploy.config.editor ;
|
||||
USING: accessors arrays bootstrap.image io.backend
|
||||
io.directories io.files.info io.files.temp io.launcher kernel
|
||||
layouts math namespaces sequences system tools.deploy.backend
|
||||
tools.deploy.config.editor tools.test ;
|
||||
IN: tools.deploy.test
|
||||
|
||||
: test-image ( -- str )
|
||||
|
@ -11,11 +11,15 @@ IN: tools.deploy.test
|
|||
test-image temp-file ;
|
||||
|
||||
: shake-and-bake ( vocab -- )
|
||||
test-image-path ?delete-file
|
||||
[
|
||||
[ vm-path test-image temp-file ] dip
|
||||
dup deploy-config make-deploy-image drop
|
||||
] with-resource-directory ;
|
||||
long-unit-tests-enabled? get [
|
||||
test-image-path ?delete-file
|
||||
[
|
||||
[ vm-path test-image temp-file ] dip
|
||||
dup deploy-config make-deploy-image drop
|
||||
] with-resource-directory
|
||||
] [
|
||||
drop
|
||||
] if ;
|
||||
|
||||
ERROR: image-too-big actual-size max-size ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue