mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 13:54:20 +03:00
:test %generators
This commit is contained in:
parent
044c22357d
commit
6f80d55289
@ -2,12 +2,14 @@
|
|||||||
!:
|
!:
|
||||||
|%
|
|%
|
||||||
+$ card card:agent:gall
|
+$ card card:agent:gall
|
||||||
+$ test ?(%agents %marks)
|
+$ test ?(%agents %marks %generators)
|
||||||
+$ state
|
+$ state
|
||||||
$: app=(set path)
|
$: app=(set path)
|
||||||
app-ok=?
|
app-ok=?
|
||||||
mar=(set path)
|
mar=(set path)
|
||||||
mar-ok=?
|
mar-ok=?
|
||||||
|
gen=(set path)
|
||||||
|
gen-ok=?
|
||||||
==
|
==
|
||||||
--
|
--
|
||||||
=, format
|
=, format
|
||||||
@ -28,6 +30,7 @@
|
|||||||
?- test
|
?- test
|
||||||
%marks test-marks
|
%marks test-marks
|
||||||
%agents test-agents
|
%agents test-agents
|
||||||
|
%generators test-generators
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
++ test-marks
|
++ test-marks
|
||||||
@ -76,6 +79,26 @@
|
|||||||
app.state (~(put in app.state) /app/[i.daz])
|
app.state (~(put in app.state) /app/[i.daz])
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
|
++ test-generators
|
||||||
|
=| fex=(list card)
|
||||||
|
^+ [fex this]
|
||||||
|
?> =(~ gen.state)
|
||||||
|
=. gen-ok.state %.y
|
||||||
|
=+ .^(paz=(list path) ct+(en-beam now-beak /gen))
|
||||||
|
|- ^+ [fex this]
|
||||||
|
?~ paz [fex this]
|
||||||
|
=/ xap=path (flop i.paz)
|
||||||
|
?. ?=([%hoon *] xap)
|
||||||
|
$(paz t.paz)
|
||||||
|
=/ sing=card
|
||||||
|
:+ %pass build+i.paz
|
||||||
|
[%arvo %c %warp our.bowl %home ~ %sing %a da+now.bowl i.paz]
|
||||||
|
%_ $
|
||||||
|
paz t.paz
|
||||||
|
fex [sing fex]
|
||||||
|
gen.state (~(put in gen.state) i.paz)
|
||||||
|
==
|
||||||
|
::
|
||||||
++ now-beak %_(byk.bowl r [%da now.bowl])
|
++ now-beak %_(byk.bowl r [%da now.bowl])
|
||||||
--
|
--
|
||||||
++ on-watch on-watch:def
|
++ on-watch on-watch:def
|
||||||
@ -92,7 +115,9 @@
|
|||||||
=/ =path t.wire
|
=/ =path t.wire
|
||||||
?+ path ~|(path+path !!)
|
?+ path ~|(path+path !!)
|
||||||
[%app *]
|
[%app *]
|
||||||
=/ ok ?=(^ p.sign-arvo)
|
=/ ok
|
||||||
|
?~ p.sign-arvo |
|
||||||
|
(~(nest ut -:!>(*agent:gall)) | -:!<(vase q.r.u.p.sign-arvo))
|
||||||
~& ?: ok
|
~& ?: ok
|
||||||
agent-built+path
|
agent-built+path
|
||||||
agent-failed+path
|
agent-failed+path
|
||||||
@ -116,6 +141,19 @@
|
|||||||
%all-marks-built
|
%all-marks-built
|
||||||
%some-marks-failed
|
%some-marks-failed
|
||||||
[~ this]
|
[~ this]
|
||||||
|
::
|
||||||
|
[%gen *]
|
||||||
|
=/ ok ?=(^ p.sign-arvo)
|
||||||
|
~& ?: ok
|
||||||
|
generator-built+path
|
||||||
|
generator-failed+path
|
||||||
|
=? gen-ok.state !ok %.n
|
||||||
|
=. gen.state (~(del in gen.state) path)
|
||||||
|
~? =(~ gen.state)
|
||||||
|
?: gen-ok.state
|
||||||
|
%all-generators-built
|
||||||
|
%some-generators-failed
|
||||||
|
[~ this]
|
||||||
==
|
==
|
||||||
++ on-fail on-fail:def
|
++ on-fail on-fail:def
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user