Skip to content

test: Run the dictionary harnesses in a project of their own - #43

Merged
henrikottesorensen merged 1 commit into
test/separate-display-tablefrom
test/dictionary-specs
Dec 5, 2026
Merged

henrikottesorensen merged 1 commit into
test/separate-display-tablefrom
test/dictionary-specs

Conversation

@henrikottesorensen

Copy link
Copy Markdown
Collaborator

Stacked on #40.

Runs upstream's eight dictionary harnesses from liblouis 3.40.0: 1,953,878 cases, all passing, in about two minutes.

What changed

  • New project LibLouis.NET.DictionaryTest. It reads the harnesses from the release build/stage_tables.sh already downloads (upstream/liblouis-$(LiblouisVersion)/tests/braille-specs/) rather than committing 60MB, so they follow LiblouisVersion with nothing to re-copy. The files are listed one by one, because a *dictionary* wildcard also matches nine ordinary specs. If they haven't been staged, the build fails and says to run stage_tables.sh, rather than discovering no tests.
  • Shared harness. The spec runner moves, unchanged, out of BrailleSpecTests into BrailleSpecRunner.cs. Both projects compile that same file.
  • CI. A new dictionary-test job runs on ubuntu, windows and macos. It runs beside test rather than after it, so PRs wait no longer and a dictionary failure is its own check. publish now waits for it too.
  • README dictionary section rewritten.

Testing

On macOS arm64: LibLouis.NET.Test 237/237, LibLouis.NET.DictionaryTest 8/8 on net10.0, and the solution builds with -warnaserror. The eight files in the output directory are byte-identical to the 3.40.0 release. actionlint passes on the workflow. The new CI job's first run is on this PR.

🤖 Generated with Claude Code

The eight dictionary harnesses are 60MB and 1,953,878 cases between
them, about two minutes against the spec suite's twenty seconds. They
all pass against 3.40.0, so leaving them out of LibLouis.NET.Test cost
the tables' word lists rather than hiding a failure, but nothing ran
them.

LibLouis.NET.DictionaryTest runs them. It reads them from the release
build/stage_tables.sh already downloads rather than from a committed
copy, so the repository does not grow by 60MB and they follow
LiblouisVersion with nothing to re-copy. They are listed one by one: a
wildcard on "dictionary" also matches nine ordinary specs
LibLouis.NET.Test already runs. The build fails, naming stage_tables.sh,
if they have not been staged, rather than discovering no tests.

The harness moves out of BrailleSpecTests into BrailleSpecRunner so both
projects compile the same one. The code moves unchanged.

CI runs them in a dictionary-test job on the same three operating
systems as test, beside it rather than after it, so pull requests wait
no longer and a failure among them is reported apart from the main
suite. publish waits for it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@henrikottesorensen
henrikottesorensen merged commit 20b7fed into test/separate-display-table Dec 5, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant