Merge ~ahasenack/qa-regression-testing:ndctl-mir-tests into qa-regression-testing:master

Proposed by Andreas Hasenack
Status: Merged
Merged at revision: bb1214cf8cfe26d42a7ada152f015b0942cf760e
Proposed branch: ~ahasenack/qa-regression-testing:ndctl-mir-tests
Merge into: qa-regression-testing:master
Diff against target: 468 lines (+429/-0)
3 files modified
notes_testing/ndctl/README.txt (+140/-0)
scripts/test-ndctl.py (+285/-0)
scripts/testlib.py (+4/-0)
Reviewer Review Type Date Requested Status
Steve Beattie (community) Approve
Review via email: mp+378543@code.staging.launchpad.net

Description of the change

ndctl has an approved MIR (https://bugs.launchpad.net/ubuntu/+source/ndctl/+bug/1853506), but on the condition that tests are added to q-r-t. This branch adds such tests.

More tests can be added, but the last ones are more complex and will take a bit more time to implement, and I want to get early eyes on this. Furthermore, I think this is already good coverage, and the remaining tests can be added incrementally.

In order to run these tests, a special VM needs to be created, with emulated NVDIMM hardware support. Instructions were added to notes_testing/ndctl/README.txt using multipass, but any tooling can be used as long as the vm ends up in libvirt, because the machine definition needs to be tweaked. uvt should work just fine, but I didn't test it.

These tests were originally done as DEP8 by Rafael Tinoco and copied from the upstream test suite, copyright Intel. I added links to each source for each test. The "conversion", if you will, to python, was done by me. Please advise on copyright statements and licensing issues.

To post a comment you must log in.
Revision history for this message
Steve Beattie (sbeattie) wrote :

This is looking great to me. Was able to reprocude the setup with uvt rather than multipass. Happy to merge whenever you think it's ready. Some minor inline comments follow.

Revision history for this message
Steve Beattie (sbeattie) wrote :

Bah, launchpad dropped my inline comments. Trying again.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks for the review, I addressed your comments and tweaked other bits as well. Please take another look.

Revision history for this message
Steve Beattie (sbeattie) wrote :

Thanks for fixing those up; merged.

review: Approve

There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches