factor/extra/mason/platform/platform-tests.factor

21 lines
446 B
Factor
Raw Permalink Normal View History

USING: mason.config mason.platform namespaces tools.test
strings system ;
2011-08-23 01:14:38 -04:00
{ t } [ platform string? ] unit-test
2018-02-15 11:45:08 -05:00
{ "linux-x86-32" } [
H{
{ target-os linux }
{ target-cpu x86.32 }
{ target-variant f }
} [ platform ] with-variables
] unit-test
2018-02-15 11:45:08 -05:00
{ "windows-x86-32-xp" } [
H{
{ target-os windows }
{ target-cpu x86.32 }
{ target-variant "xp" }
} [ platform ] with-variables
] unit-test