urbit/app/test.hoon

112 lines
3.2 KiB
Plaintext
Raw Normal View History

::
2017-02-14 01:57:07 +03:00
=, gall
=, ford
2017-11-14 03:31:46 +03:00
=, format
2016-11-17 02:05:24 +03:00
|_ {bowl $~}
++ peek _~
++ report-error
|= [a=spur b=(each cage tang)] ^- tang
=/ should-fail (~(get by failing) (flop a))
?- -.b
%&
?~ should-fail ~
:~ leaf+"warn: expected failure, {<`tape`u.should-fail>}"
leaf+"warn: built succesfully"
(sell q.p.b)
==
::
%|
?^ should-fail
~[>[%failed-known `tape`(weld "TODO: " u.should-fail)]<]
(flop p.b)
==
::
2017-11-14 03:31:46 +03:00
++ made-a-core
|= {a/spur @uvH b/gage}
:_ +>.$
?> ?=([%tabl [(each) (each)] ~] b)
%- (slog (report-error a p.i.p.b))
2017-11-14 03:31:46 +03:00
=/ nex/(list spur)
=<(p ;;(,[%& %cont * p=(list spur)] q.i.p.b))
2018-03-08 06:19:42 +03:00
?~ nex ~&(%cores-tested ~)
2017-11-14 03:31:46 +03:00
[ost (build-core nex)]~
::
++ build-core
|= [a=spur b=(list spur)]
~& >> (flop a)
:^ %exec a-core+a our
%- some
^- bilk
:- now-beak
:~ %tabl
[[%core now-beak a] [%$ %cont !>(b)]]
==
2016-11-17 02:05:24 +03:00
::
++ poke-noun
2017-12-07 01:58:34 +03:00
|= [%cores a=path] ::TODO restore historical [%marks ~] handler
2017-11-14 03:31:46 +03:00
:_ +>
?: [dry=|]
~&((list-cores a) ~)
[ost (build-core [- +]:(list-cores a))]~
::
++ list-cores
|= a/path ^- (list spur)
=/ sup (flop a)
2018-03-08 04:45:04 +03:00
~& [%findining-hoons under=a]
2017-11-14 03:31:46 +03:00
|- ^- (list spur)
2017-11-30 00:32:22 +03:00
%- zing
%+ turn
=- (sort ~(tap by -) aor)
dir:.^(arch %cy (en-beam now-beak sup))
|= [a=knot ~] ^- (list spur)
2017-11-14 03:31:46 +03:00
=. sup [a sup]
=/ ded (~(get by skip-completely) (flop sup))
2018-03-28 00:34:58 +03:00
?^ ded
~&(> [(flop sup) %skipped `tape`u.ded] ~)
2017-11-30 00:32:22 +03:00
?~ [fil:.^(arch %cy (en-beam now-beak [%hoon sup]))]
^$
~& (flop sup)
[sup ^$]
2016-11-17 02:05:24 +03:00
::
++ now-beak %_(byk r [%da now])
++ skip-completely
2018-03-28 00:34:58 +03:00
^~ ^- (map path tape)
%- my :~ ::TODO don't hardcode
:- /ren/test-tree "recursive"
:- /sys "generally out of scope"
::
2018-03-28 00:34:58 +03:00
:- /app/gh "hangs for some reason"
:- /mar/gh "hangs for some reason"
2018-03-28 01:05:31 +03:00
:- /app/twit "slow and/or crash"
:- /gen/twit "slow and/or crash"
2018-03-28 00:34:58 +03:00
:- /mar/twit "slow and/or crash"
==
::
++ failing
^~ ^- (map path tape)
%- my :~ ::TODO don't hardcode
2018-03-08 05:13:57 +03:00
::
2018-03-28 00:34:58 +03:00
:- /app/pipe "wants 'flavor:hall' to exist"
:- /gen/capitalize "wants unicode-data/txt"
2018-03-08 05:13:57 +03:00
::
2018-03-28 00:34:58 +03:00
:- /lib/down-jet/parse "// nonsense"
:- /lib/down-jet/rend "// nonsense"
:- /lib/hood/kiln "ford can't handle surs from libs"
:- /lib/sole "ford can't handle surs from libs"
:- /lib/hall "ford can't handle surs from libs"
:- /lib/twitter "ford can't handle surs from libs"
:- /ren/css "not meant to be called outside /web/pack"
:- /ren/js "not meant to be called outside /web/pack"
:- /ren/rss-xml "uses /$"
:- /ren/run "not meant to be called except on a (different) hoon file"
:- /ren/tree/body "uses ren/tree"
:- /ren/tree/head "uses /$"
:- /ren/tree/json "uses /$"
:- /ren/urb "uses ren/tree"
:- /ren/urb/tree "uses ren/tree"
:- /sys/arvo "BROKEN"
:- /sys/vane/jael "expects our"
:- /sys/vane/xmas "expects our"
2018-03-08 05:13:57 +03:00
==
--