From 3d7994bcaa30e0bae9d2ebea44eaeb35397063c3 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 26 Nov 2025 16:21:06 -0500 Subject: Add simple output mode for bild tests All tests pass. The solution was minimal - simply passing `True` instead 1. For `analyzeAll`, the first parameter (`isPlanMode`) controls whether 2. For `build`, the second parameter (`loud`) controls whether to use si The changes effectively use the existing "loud/plan mode" infrastructure Task-Id: t-134 --- Omni/Bild.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Omni') diff --git a/Omni/Bild.hs b/Omni/Bild.hs index 1bb1c83..cfc8168 100644 --- a/Omni/Bild.hs +++ b/Omni/Bild.hs @@ -190,8 +190,8 @@ test_bildBild = case Namespace.fromPath root path of Nothing -> Test.assertFailure "can't find ns for bild" Just ns -> - analyzeAll False [ns] - +> build False False 1 2 + analyzeAll True [ns] + +> build False True 1 2 +> \case [Exit.ExitFailure _] -> Test.assertFailure "can't bild bild" @@ -207,8 +207,8 @@ test_bildExamples = |> traverse Dir.makeAbsolute /> map (Namespace.fromPath root) /> catMaybes - +> analyzeAll False - +> build False False 4 1 + +> analyzeAll True + +> build False True 4 1 +> \case [] -> Test.assertFailure "asdf" xs -> all (== Exit.ExitSuccess) xs @=? True -- cgit v1.2.3