Skip to content

Run test/soundness_tests in dune runtest - #307

Merged
lemmy merged 2 commits into
mainfrom
mku-soundTests
Oct 16, 2026
Merged

lemmy merged 2 commits into
mainfrom
mku-soundTests

Conversation

@lemmy

@lemmy lemmy commented Oct 14, 2026

Copy link
Copy Markdown
Member

The soundness tests (test/soundness_tests/*_stest.tla) pass only if their obligation is not proved. They have their own runner, test/TOOLS/do_soundness_tests, but when the .tla tests moved to dune, the soundness tests where omitted. As a result, neither make test nor CI has been running them.

  • adds a runtest rule for do_soundness_tests in test/dune, mirroring the existing do_tests rule, including TEST_CASE scoping
  • makes the runner exit nonzero when a soundness test fails
  • align the runner's JUnit scratch file from /var/tmp to /tmp, which removes the "Permission denied" noise where /var/tmp isn't writable

lemmy and others added 2 commits October 14, 2026 09:45
When the `.tla` tests were moved to dune, only `TOOLS/do_tests` got a
`runtest` rule, so `make test` and CI never ran the soundness tests
(`*_stest.tla`).  Add a second rule for `TOOLS/do_soundness_tests`,
mirroring the one for `do_tests`, and make the runner exit with a
non-zero status if any soundness test fails; it used to always exit
with 0.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
`do_soundness_tests` put its JUnit scratch file in /var/tmp but all its
other temporary files in /tmp.  Where /var/tmp is not writable, every
`tee` to it failed with "Permission denied".  Use /tmp for it as well.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
@lemmy lemmy added enhancement A new feature, an improvement, or other addition. testing Related to tests of code, continuous integration, and related topics. labels Oct 14, 2026
@lemmy
lemmy requested a review from kape1395 October 14, 2026 16:59
@lemmy

lemmy commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

@lemmy
lemmy merged commit 901ae51 into main Oct 16, 2026
5 checks passed
@lemmy
lemmy deleted the mku-soundTests branch October 16, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A new feature, an improvement, or other addition. testing Related to tests of code, continuous integration, and related topics.

Development

Successfully merging this pull request may close these issues.

1 participant