Skip to content

Conversation

@cniethammer
Copy link
Contributor

Fixes problems reported in #284 for the examples/run-examples.sh script and makes it work again.

Ignore comment lines and empty lines in the example lists file.

Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
@cniethammer cniethammer requested a review from HomesGH February 8, 2024 11:40
Copy link
Contributor

@HomesGH HomesGH left a comment

Choose a reason for hiding this comment

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

Thank you for updating the script!
There is a minor mess with those test scripts as they are all kind of duplicated:

  1. run-validation.sh
  2. run-examples.sh
  3. workflow / GitHub Actions

The workflow file differs a bit from the first two scripts but does basically the same (besides also comparing the results with the master branch).
However we can think of removing the run-validation.sh script since run-examples.sh is more sophisticated.

@cniethammer
Copy link
Contributor Author

Yes, it would be good to unify the script to reduce code maintenance and use this then in the GitHub workflow as well. I will check and come back with an update for this PR.

@cniethammer cniethammer added the WIP Work In Progress label Feb 11, 2024
- Added command line options
- Add one second timeout at end of test to easy interruption
- Updated default run parameters to match run-validation script

Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
@cniethammer
Copy link
Contributor Author

Improved the run-example script so it can be reused in the run-validation script.

The github workflow requires more logic than this simple local executor script as it checks for matching outputs from different branches. So I will not address this with this PR and I consider this to be ready for merging.

@cniethammer cniethammer removed the WIP Work In Progress label Dec 8, 2024
@cniethammer cniethammer requested a review from HomesGH December 8, 2024 18:36
cniethammer and others added 2 commits December 9, 2024 15:21
Co-authored-by: FG-TUM <FG-TUM@users.noreply.github.com>
Co-authored-by: FG-TUM <FG-TUM@users.noreply.github.com>
cniethammer and others added 4 commits December 13, 2024 10:54
Co-authored-by: HomesGH <55833544+HomesGH@users.noreply.github.com>
Co-authored-by: FG-TUM <FG-TUM@users.noreply.github.com>
Fix parameter expansion so option values are kept correctly.
This fixes issues handling multi-value option arguments, e.g., allowing now
> ./run-examples.sh --mpi_args "-n 2 --oversubscribe 2 ..."

Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
@cniethammer cniethammer force-pushed the fix_local_example_run_script branch from f257e22 to b53855f Compare January 16, 2025 01:40
Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
@cniethammer cniethammer requested review from FG-TUM and HomesGH January 16, 2025 16:22
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