2008-03-01 17:00:45 -05:00
|
|
|
IN: tools.deploy.tests
|
2008-02-28 02:21:30 -05:00
|
|
|
USING: tools.test system io.files kernel tools.deploy.config
|
|
|
|
tools.deploy.backend math ;
|
|
|
|
|
|
|
|
: shake-and-bake
|
|
|
|
"." resource-path [
|
|
|
|
vm
|
2008-03-13 04:46:25 -04:00
|
|
|
"test.image" temp-file
|
2008-02-28 02:21:30 -05:00
|
|
|
rot dup deploy-config make-deploy-image
|
|
|
|
] with-directory ;
|
|
|
|
|
|
|
|
[ ] [ "hello-world" shake-and-bake ] unit-test
|
|
|
|
|
|
|
|
[ t ] [
|
|
|
|
"hello.image" temp-file file-length 500000 <=
|
|
|
|
] unit-test
|
|
|
|
|
2008-03-13 04:46:25 -04:00
|
|
|
[ ] [ "sudoku" shake-and-bake ] unit-test
|
|
|
|
|
|
|
|
[ t ] [
|
|
|
|
"hello.image" temp-file file-length 1500000 <=
|
|
|
|
] unit-test
|
|
|
|
|
2008-02-28 02:21:30 -05:00
|
|
|
[ ] [ "hello-ui" shake-and-bake ] unit-test
|
|
|
|
|
|
|
|
[ t ] [
|
|
|
|
"hello.image" temp-file file-length 2000000 <=
|
|
|
|
] unit-test
|
2008-03-13 04:46:25 -04:00
|
|
|
|
|
|
|
[ ] [ "bunny" shake-and-bake ] unit-test
|
|
|
|
|
|
|
|
[ t ] [
|
|
|
|
"hello.image" temp-file file-length 3000000 <=
|
|
|
|
] unit-test
|
|
|
|
|
|
|
|
[ ] [
|
|
|
|
"tools.deploy.test.1" shake-and-bake
|
|
|
|
vm "-i=" "test.image" temp-file append try-process
|
|
|
|
] unit-test
|
|
|
|
|
|
|
|
[ ] [
|
|
|
|
"tools.deploy.test.2" shake-and-bake
|
|
|
|
vm "-i=" "test.image" temp-file append try-process
|
|
|
|
] unit-test
|