Skip to content

New pytest test runner#310

Open
mandli wants to merge 14 commits intoclawpack:masterfrom
mandli:new-pytest-test-runner
Open

New pytest test runner#310
mandli wants to merge 14 commits intoclawpack:masterfrom
mandli:new-pytest-test-runner

Conversation

@mandli
Copy link
Member

@mandli mandli commented Sep 15, 2025

Uses the new ClawpackTestRunner to do testing. See clawpack/clawutil#187 for discussion and details.

@mandli mandli marked this pull request as draft September 15, 2025 16:03
@mandli mandli marked this pull request as ready for review March 16, 2026 18:08
@mandli mandli force-pushed the new-pytest-test-runner branch from 63c061f to 0d9fb1a Compare March 16, 2026 20:44
mandli added 12 commits March 16, 2026 16:52
This also required updating of the regression data as one of the gauges
ended up having an extra time point due to unrelated changes.  All
differences were around 10^-16.
Requires a new argument to test runner build_executable to allow make
variables in the command
This is an attempt to support adjoint testing without redoing each adjoint
run twice and providing more stability and less fragility.  A new helper
function has been added to the AMRClaw test python module.  Hopefully this
will also work in GeoClaw.
@mandli mandli force-pushed the new-pytest-test-runner branch from 0d9fb1a to c2a9245 Compare March 16, 2026 21:00
@mandli
Copy link
Member Author

mandli commented Mar 16, 2026

Turns out that some of the optimization flags are more sensitive that I had thought. All the tests are passing in the entire matrix now though! Note that for optimization flags that something more aggressive than -O1 may not work.

@mjberger
Copy link
Contributor

mjberger commented Mar 17, 2026 via email

@mandli
Copy link
Member Author

mandli commented Mar 17, 2026

Yes, the tests themselves are susceptible to this, but in general this is not an issue. The adjoint tests seem to be the most sensitive, but the acoustics 2D radial problem also seems to have issues.

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