Skip to content

Add a smoke test for the native solver - #27

Merged
wjohnald merged 1 commit into
mainfrom
smoke-test-native-solver
Oct 16, 2026
Merged

wjohnald merged 1 commit into
mainfrom
smoke-test-native-solver

Conversation

@wjohnald

Copy link
Copy Markdown

Stacked on #26.

What

  • Add a test that loads the native library and solves two small problems with known answers.
  • Fork the test JVM so the library loads outside the sbt class loaders.

Why

CI built the library on four platforms but never ran it. A library that builds yet fails to load would pass CI and break mithril later. The matrix runs this test on each runner.

🤖 Generated with Claude Code

@wjohnald
wjohnald marked this pull request as ready for review October 12, 2026 14:11
Load the native library in a forked test JVM and solve two small problems
with known answers, so each CI runner exercises the library it built.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@wjohnald
wjohnald force-pushed the smoke-test-native-solver branch from 8b7976e to 0c8a579 Compare October 16, 2026 18:48
@wjohnald
wjohnald changed the base branch from publish-one-jar-for-all-platforms to main October 16, 2026 18:48
}

"NativeECOS" should "report the ECOS version" in {
new NativeECOS().EcosVer() should not be empty

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing this will throw versus empty, but either way the test will fail, so that's fine.

@wjohnald
wjohnald merged commit a3bbdf3 into main Oct 16, 2026
5 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.

2 participants