factor/extra/builder/test/test.factor

51 lines
1.3 KiB
Factor
Raw Normal View History

2008-02-06 05:26:13 -05:00
2008-02-11 19:35:27 -05:00
USING: kernel namespaces sequences assocs builder continuations
vocabs vocabs.loader
2008-02-06 05:26:13 -05:00
io
io.files
2008-02-11 19:35:27 -05:00
prettyprint
2008-03-13 04:51:39 -04:00
tools.vocabs
2008-02-11 19:34:02 -05:00
tools.test
io.encodings.utf8
combinators.cleave
help.lint
2008-02-14 02:07:18 -05:00
bootstrap.stage2 benchmark 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-03-14 03:26:39 -04:00
! : do-tests ( -- )
! run-all-tests keys "../test-all-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-tests ( -- )
! run-all-tests
! "../test-all-vocabs" utf8
! [
! [ keys . ]
! [ test-failures. ]
! bi
! ]
! with-file-writer ;
2008-02-11 23:22:49 -05: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 ] runtime "../load-time" utf8 [ . ] with-file-writer
[ do-tests ] runtime "../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