IN: mason.child.tests
-USING: mason.child mason.config tools.test namespaces io kernel sequences ;
+USING: mason.child mason.config tools.test namespaces io kernel
+sequences system ;
[ { "nmake" "/f" "nmakefile" "x86-32" } ] [
[
- "winnt" target-os set
- "x86.32" target-cpu set
+ winnt target-os set
+ x86.32 target-cpu set
make-cmd
] with-scope
] unit-test
[ { "make" "macosx-x86-32" } ] [
[
- "macosx" target-os set
- "x86.32" target-cpu set
+ macosx target-os set
+ x86.32 target-cpu set
make-cmd
] with-scope
] unit-test
[ { "./factor.com" "-i=boot.winnt-x86.32.image" "-no-user-init" } ] [
[
- "winnt" target-os set
- "x86.32" target-cpu set
+ winnt target-os set
+ x86.32 target-cpu set
boot-cmd
] with-scope
] unit-test
{ [ ] [ ] }
[ "B" ]
} recover-cond
-] unit-test
\ No newline at end of file
+] unit-test
: nmake-cmd ( -- args )
{ "nmake" "/f" "nmakefile" }
- target-cpu get "." split "-" join suffix ;
+ target-cpu get name>> "." split "-" join suffix ;
: gnu-make-cmd ( -- args )
gnu-make platform 2array ;
: make-cmd ( -- args )
{
- { [ target-os get "winnt" = ] [ nmake-cmd ] }
+ { [ target-os get winnt = ] [ nmake-cmd ] }
[ gnu-make-cmd ]
} cond ;
] with-directory ;
: factor-vm ( -- string )
- target-os get "winnt" = "./factor.com" "./factor" ? ;
+ target-os get winnt = "./factor.com" "./factor" ? ;
: boot-cmd ( -- cmd )
[
{ [ notify-boot boot ] [ boot-failed ] }
{ [ notify-test test ] [ test-failed ] }
[ success ]
- } recover-cond ;
\ No newline at end of file
+ } recover-cond ;
IN: mason.email.tests
-USING: mason.email mason.common mason.config namespaces tools.test ;
+USING: mason.email mason.common mason.config namespaces
+tools.test system ;
[ "mason on linux-x86-64: 12345 -- error" ] [
[
- "linux" target-os set
- "x86.64" target-cpu set
+ linux target-os set
+ x86.64 target-cpu set
"12345" current-git-id set
status-error report-subject
] with-scope
IN: mason.platform
: (platform) ( os cpu -- string )
+ [ name>> ] bi@
{ { CHAR: . CHAR: - } } substitute "-" glue ;
: platform ( -- string )
target-os get target-cpu get (platform) ;
: gnu-make ( -- string )
- target-os get { "freebsd" "openbsd" "netbsd" } member? "gmake" "make" ? ;
+ target-os get { freebsd openbsd netbsd } member? "gmake" "make" ? ;
: boot-image-arch ( -- string )
target-os get target-cpu get arch ;
IN: mason.release.branch.tests
-USING: mason.release.branch mason.config tools.test namespaces ;
+USING: mason.release.branch mason.config tools.test namespaces
+system ;
[ { "git" "push" "-f" "joe@blah.com:/my/git" "master:clean-linux-x86-32" } ] [
[
"joe" branch-username set
"blah.com" branch-host set
"/my/git" branch-directory set
- "linux" target-os set
- "x86.32" target-cpu set
+ linux target-os set
+ x86.32 target-cpu set
push-to-clean-branch-cmd
] with-scope
] unit-test
"joe" image-username set
"blah.com" image-host set
"/stuff/clean" image-directory set
- "netbsd" target-os set
- "x86.64" target-cpu set
+ netbsd target-os set
+ x86.64 target-cpu set
upload-clean-image-cmd
] with-scope
] unit-test