commit 3d7994bcaa30e0bae9d2ebea44eaeb35397063c3
Author: Ben Sima <ben@bensima.com>
Date: Wed Nov 26 16:21:06 2025
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
diff --git a/Omni/Bild.hs b/Omni/Bild.hs
index 1bb1c83a..cfc8168d 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