factor/extra/mason/child/child-tests.factor

62 lines
1.3 KiB
Factor
Raw Normal View History

2008-09-16 00:20:33 -04:00
IN: mason.child.tests
2009-04-18 05:08:09 -04:00
USING: mason.child mason.config tools.test namespaces io kernel sequences ;
2008-09-16 00:20:33 -04:00
2010-01-25 00:02:38 -05:00
[ { "nmake" "/f" "nmakefile" } ] [
2008-09-16 00:20:33 -04:00
[
"winnt" target-os set
"x86.32" target-cpu set
make-cmd
] with-scope
] unit-test
2008-11-17 21:28:52 -05:00
[ { "make" "macosx-x86-32" } ] [
2008-09-16 00:20:33 -04:00
[
"macosx" target-os set
"x86.32" target-cpu set
make-cmd
] with-scope
] unit-test
2008-11-17 21:28:52 -05:00
[ { "gmake" "netbsd-ppc" } ] [
2008-09-16 00:20:33 -04:00
[
"netbsd" target-os set
"ppc" target-cpu set
make-cmd
] with-scope
] unit-test
[ { "./factor" "-i=boot.macosx-ppc.image" "-no-user-init" } ] [
[
"macosx" target-os set
"ppc" target-cpu set
boot-cmd
] with-scope
] unit-test
2009-04-03 17:30:59 -04:00
[ { "./factor.com" "-i=boot.winnt-x86.32.image" "-no-user-init" } ] [
2009-04-03 17:30:59 -04:00
[
"winnt" target-os set
"x86.32" target-cpu set
boot-cmd
] with-scope
] unit-test
[ [ "Hi" print ] [ drop 3 ] [ 4 ] recover-else ] must-infer
[ 4 ] [ [ "Hi" print ] [ drop 3 ] [ 4 ] recover-else ] unit-test
[ 3 ] [ [ "Hi" throw ] [ drop 3 ] [ 4 ] recover-else ] unit-test
[ "A" ] [
{
{ [ 3 throw ] [ { "X" "Y" "Z" "A" } nth ] }
[ "B" ]
} recover-cond
] unit-test
[ "B" ] [
{
{ [ ] [ ] }
[ "B" ]
} recover-cond
] unit-test