diff --git a/app/aqua.hoon b/app/aqua.hoon index ce9f29f4c..a39fd714f 100644 --- a/app/aqua.hoon +++ b/app/aqua.hoon @@ -609,7 +609,7 @@ |= [who=ship thus=_this] =. this thus sleep:(pe who) - =. piers (~(got by fleet-snaps) lab.ovo) + =. piers (~(uni by piers) (~(got by fleet-snaps) lab.ovo)) =. this %+ turn-ships (turn ~(tap by piers) head) |= [who=ship thus=_this] diff --git a/app/ph.hoon b/app/ph.hoon index f2f94e4f9..b9142f413 100644 --- a/app/ph.hoon +++ b/app/ph.hoon @@ -111,7 +111,9 @@ -- :: :- %composed-child-boot-2 - %+ compose-tests (planet ~haplun-todtus) + %+ compose-tests + %+ compose-tests (planet ~mitnep-todsut) + (planet ~haplun-todtus) ^- test-core |_ [our=@p now=@da] ++ label %composed-child-boot-2 diff --git a/lib/ph.hoon b/lib/ph.hoon index 3a15b80d7..477cfa7b2 100644 --- a/lib/ph.hoon +++ b/lib/ph.hoon @@ -6,26 +6,28 @@ |% :: Defines a complete integration test. :: -:: Perhaps route should take a unix-effect rather than a sign. -:: Similarly, perhaps ++abet should produce a list of -:: unix-events. Also, perhaps we should support state. -:: -:: Perhaps closer to this: -:: ++ test-core -:: $_ ^? -:: |% -:: ++ start ^?(..abet) -:: ++ route |~([wire unix-effect] ^?(..abet)) -:: ++ abet *(list unix-event) -:: -- -:: ++ test-core $_ ^? |% + :: + :: Unique name, used as a cache label. + :: ++ label *term + :: + :: List of ships that are part of the test. + :: + :: We'll only hear effects from these ships, and only these will + :: be in the cache points. + :: ++ ships *(list ship) - ++ start |~(@da *(quip ph-event _^?(..start))) - ++ route |~([@da [ship unix-effect]] *(quip ph-event _^?(..start))) + :: + :: Called first to kick off the test. + :: + ++ start |~(now=@da *(quip ph-event _^?(..start))) + :: + :: Called on every effect from a ship. + :: + ++ route |~([now=@da ship unix-effect] *(quip ph-event _^?(..start))) -- :: ++ ph-event @@ -103,7 +105,7 @@ :: :: Cache lookup label :: - ++ label :((cury cat 3) label:a '--1-' label:b) + ++ label :((cury cat 3) label:a '--' label:b) :: :: Union of ships in a and b :: @@ -168,7 +170,7 @@ |= her=ship ^- test-core |% - ++ label (cat 3 'iinit-' (scot %p her)) + ++ label (cat 3 'init-' (scot %p her)) ++ ships ~[her] ++ start |= now=@da @@ -198,6 +200,7 @@ [%test-done &]~ == -- + :: ++ galaxy |= her=ship ?> =(%czar (clan:title her))