openPMD-api: CTest & Install Tests#25300
Merged
ax3l merged 1 commit intospack:developfrom Aug 6, 2021
Merged
Conversation
Run CTest at build time with: ``` spack install --test=root openpmd-api@<version> ``` and run smoke-tests after install and loading of the package via ``` spack load -r /<spec> spack test run /<spec> ```
Contributor
|
@tldahlgren can you please backport this to e4s branch we need this test |
tgamblin
approved these changes
Aug 6, 2021
Contributor
|
@ax3l What was the problem you were having that cause you to need to load the module first? |
Member
Author
|
@tldahlgren |
ax3l
commented
Aug 11, 2021
| for exe in exes: | ||
| spec_vers_str = '{0}'.format(self.spec.version) | ||
| reason = 'test version of {0} is {1}'.format(exe, spec_vers_str) | ||
| self.run_test(exe, ['--version'], [spec_vers_str], |
Member
Author
There was a problem hiding this comment.
@tldahlgren this line essentially does not work if not loaded
Contributor
There was a problem hiding this comment.
There's something in the process that I'm missing that I need to look into. Thanks.
Member
|
@shahzebsiddiqui can you please submit a PR backporting this to the E4S branch? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Run CTest at build time with:
Ref.: https://spack.readthedocs.io/en/latest/packaging_guide.html#stand-alone-or-smoke-tests
Run smoke-tests after install and loading of the package via
x-ref: https://github.com/buildtesters/buildtest-cori/issues/56