diff options
| author | Ben Sima <ben@bensima.com> | 2025-11-26 16:21:06 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-11-26 16:21:06 -0500 |
| commit | 3d7994bcaa30e0bae9d2ebea44eaeb35397063c3 (patch) | |
| tree | d9eb52e6ce30c202a1237bedbe10571520a5d1d3 /Omni | |
| parent | 7ef4033d87ebb5c7594362a216c6463312c664b3 (diff) | |
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
Diffstat (limited to 'Omni')
| -rw-r--r-- | Omni/Bild.hs | 8 |
1 files changed, 4 insertions, 4 deletions
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 |
