Add tmt tests for simple smoke tests - #7934
Conversation
|
/packit test |
|
Could we make tmt also triggered automatically with commit, as the PR test is manually triggered? |
|
@LecrisUT Please sign http://www.mpich.org/documentation/contributor-docs/ and send it to cla@lists.mpich.org |
Only with labels, otherwise it will always show it as pending. There are 3 options:
|
|
I mean to make it act the same as packit building CI, to automatically work on push to main branch 🤔 |
Ah sure, I usually don't do that to avoid duplication, but in this case it may make sense because otherwise they might not be run at all. Just do not want to repeat the design decisions in cp2k that had the jobs failing for a whole release cycle |
Pull Request Description
Followup to #7910 (comment), this adds the basic framework for testing-farm tests. Right now these are quite simple, just trying to compile some of the hello-world examples and checking the exit code. For more complex checks like grepping the output,
beakerlibcould be used, or any preferred scripting language.Here's a bit of quick reference for how you can run some quick introspection and tests locally (after getting
tmtinstalled in your preferred method):tmt (plans|tests) show: does quick validation and shows the content of the.fmffiles with all inheritance, merge etc resolvedtmt run -a provision --how=container: run the plan (basically collection of tests) locally with thempichversion in the repostmt run -a provision --how=container --image fedora:44 prepare --insert --how=artifact --provide=copr.build:10808121:fedora-44-x86_64 --order=40: same as before, but now use the rpms from copr build 10808121 (and chrootfedora-44-x86_64, matching the requested container)Author Checklist
Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
Commits are self-contained and do not do two things at once.
Commit message is of the form:
module: short descriptionCommit message explains what's in the commit.
Whitespace checker. Warnings test. Additional tests via comments.
For non-Argonne authors, check contribution agreement.
If necessary, request an explicit comment from your companies PR approval manager.