io.files.temp kernel tools.deploy.config\r
tools.deploy.config.editor tools.deploy.backend math sequences\r
io.launcher arrays namespaces continuations layouts accessors\r
-io.encodings.ascii urls math.parser io.directories ;\r
-\r
-: shake-and-bake ( vocab -- )\r
- [ "test.image" temp-file delete-file ] ignore-errors\r
- "resource:" [\r
- [ vm "test.image" temp-file ] dip\r
- dup deploy-config make-deploy-image\r
- ] with-directory ;\r
-\r
-: small-enough? ( n -- ? )\r
- [ "test.image" temp-file file-info size>> ] [ cell 4 / * ] bi* <= ;\r
+io.encodings.ascii urls math.parser io.directories\r
+tools.deploy.test ;\r
\r
[ t ] [ "hello-world" shake-and-bake 500000 small-enough? ] unit-test\r
\r
[ t ] [ "webkit-demo" shake-and-bake 500000 small-enough? ] unit-test\r
] when\r
\r
-: run-temp-image ( -- )\r
- vm\r
- "-i=" "test.image" temp-file append\r
- 2array try-process ;\r
-\r
{\r
"tools.deploy.test.1"\r
"tools.deploy.test.2"\r
"tools.deploy.test.9" shake-and-bake\r
run-temp-image\r
] unit-test\r
+\r
+[ ] [\r
+ "tools.deploy.test.10" shake-and-bake\r
+ run-temp-image\r
+] unit-test\r
--- /dev/null
+! Copyright (C) 2009 Slava Pestov.
+! See http://factorcode.org/license.txt for BSD license.
+USING: tools.test tools.deploy.test.10 ;
+IN: tools.deploy.test.10.tests
--- /dev/null
+! Copyright (C) 2009 Slava Pestov.
+! See http://factorcode.org/license.txt for BSD license.
+USING: prettyprint ;
+IN: tools.deploy.test.10
+
+: main ( -- ) C{ 0 1 } pprint ;
+
+MAIN: main
\ No newline at end of file
--- /dev/null
+Slava Pestov
\ No newline at end of file
--- /dev/null
+USING: tools.deploy.config ;
+H{
+ { deploy-reflection 3 }
+ { deploy-unicode? f }
+ { deploy-io 2 }
+ { deploy-word-props? f }
+ { deploy-compiler? f }
+ { deploy-threads? f }
+ { deploy-word-defs? f }
+ { "stop-after-last-window?" t }
+ { deploy-ui? f }
+ { deploy-math? t }
+ { deploy-c-types? f }
+ { deploy-name "tools.deploy.test.10" }
+}
--- /dev/null
+USING: accessors arrays continuations io.directories io.files.info
+io.files.temp io.launcher kernel layouts math sequences system
+tools.deploy.backend tools.deploy.config.editor ;
+IN: tools.deploy.test
+
+: shake-and-bake ( vocab -- )
+ [ "test.image" temp-file delete-file ] ignore-errors
+ "resource:" [
+ [ vm "test.image" temp-file ] dip
+ dup deploy-config make-deploy-image
+ ] with-directory ;
+
+: small-enough? ( n -- ? )
+ [ "test.image" temp-file file-info size>> ] [ cell 4 / * ] bi* <= ;
+
+: run-temp-image ( -- )
+ vm
+ "-i=" "test.image" temp-file append
+ 2array try-process ;
\ No newline at end of file