factor/extra/builder/test/test.factor

35 lines
961 B
Factor
Raw Normal View History

2008-02-06 05:26:13 -05:00
USING: kernel namespaces assocs
io.files io.encodings.utf8 prettyprint
help.lint
benchmark
2008-05-09 11:00:24 -04:00
tools.time
bootstrap.stage2
tools.test tools.vocabs
builder.util ;
2008-02-06 05:26:13 -05:00
IN: builder.test
: do-load ( -- )
try-everything keys "../load-everything-vocabs" utf8 [ . ] with-file-writer ;
2008-02-06 05:26:13 -05:00
: do-tests ( -- )
2008-03-14 03:26:39 -04:00
run-all-tests
[ keys "../test-all-vocabs" utf8 [ . ] with-file-writer ]
[ "../test-failures" utf8 [ test-failures. ] with-file-writer ]
bi ;
2008-03-14 02:17:17 -04:00
: do-help-lint ( -- )
"" run-help-lint "../help-lint" utf8 [ typos. ] with-file-writer ;
: do-benchmarks ( -- )
run-benchmarks "../benchmarks" utf8 [ . ] with-file-writer ;
2008-02-13 06:50:45 -05:00
: do-all ( -- )
bootstrap-time get "../boot-time" utf8 [ . ] with-file-writer
[ do-load ] benchmark "../load-time" utf8 [ . ] with-file-writer
[ do-tests ] benchmark "../test-time" utf8 [ . ] with-file-writer
do-help-lint
2008-02-13 06:50:45 -05:00
do-benchmarks ;
2008-02-06 05:26:13 -05:00
MAIN: do-all