Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration tests improvements #112

Merged
merged 7 commits into from
Aug 15, 2023
Merged

Integration tests improvements #112

merged 7 commits into from
Aug 15, 2023

Conversation

vasdommes
Copy link
Collaborator

Some minor improvements:

  • Print stderr to console if process fails.
  • Use El::BigFloat, compare them up to a specified precision (necessary for end-to-end tests).
  • DIFF(a,b) macro printing argument names
  • Do not fail tests if we expect, e.g., exit code=1 but get 137 (real case on Yale cluster: MPI process exits with code 1, but srun returns 137).

…match

On Yale cluster, we discovered that MPI process can fail with exit code 1, but srun then exits with code 137.
The tests should pass in this case, we ensure correctness by checking required_error_msg.

Also print stderr to console for each failed test
call it only once for each top-level diff function
We'll need it in future for testing binary sdp format davidsd#79
@vasdommes vasdommes merged commit 6a7ccd4 into davidsd:master Aug 15, 2023
@vasdommes vasdommes deleted the tests branch August 16, 2023 02:23
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