Skip to content

Conversation

@llandsmeer
Copy link
Collaborator

No actual numerical validation, just

  • test if we can compile it
  • test if we can run it

@llandsmeer llandsmeer requested a review from thorstenhater March 9, 2023 15:14
Copy link
Owner

@thorstenhater thorstenhater left a comment

Choose a reason for hiding this comment

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

Hey, nice addition. Minor comments.

use tempfile;

fn get_runtime_types(lems: &mut LemsFile, nml: &[String]) -> Result<()> {
// from main.rs .. should import actually
Copy link
Owner

Choose a reason for hiding this comment

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

Yes, please make a export for it.

.args(["run.sh", "network_L5bPyrCellHayEtAl2011"])
.current_dir(tmpdir.path())
.status()?;
tmpdir.close()?;
Copy link
Owner

Choose a reason for hiding this comment

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

Can we do a bit better than just checking it doesn't crash? Example:
Check (with tolerance!) against a known trace.

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.

3 participants