Run unionmount testsuite with new overlay/union test group
RFC PATCH 1/1 Run unionmount testsuite with new overlay/union test group
This test group requires that unionmount-testsuite is installed under src dir.
These tests use tmpfs and have no need for test nor scratch partition.
---
Eryu,
unionmount-testsuite, written by David Howells, is a powerfull tool for validating "union mounts", which nowadays, mostly means overlayfs.
The testsuite was enhanced with directory rename tests for kernel v4.10, and with constant inode number verification for kernel v4.12. The most recent repository is maintained on my github [1].
The tool is written in python. By default, it uses tmpfs for the overlayfs layers and a complete run of all the tests in the most basic configuration takes ~10 seconds on my laptop.
I have been using xfstests as a test harness to run unionmount-testsuite with several configuration (e.g. layers on same/non-same fs) and I am quite certain that more people can benefit from this setup.
The proposed patch is how I use the harness, but it raises some questions:
- How does xfstests community feel about relying on external repositories?
- How does xfstests community feel about including python sources in the xfstests repository?
There are probably very few, if any, people running the testsuite, besides Miklos and myself and I personally have no strong preference towards maintaining the tool in an external repository or in xfstests repository.
Thoughts?
Amir.
[1] https://github.com/amir73il/unionmount-testsuite
common/rc | 8 +++++++ tests/overlay/100 | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ tests/overlay/100.out | 2 ++ tests/overlay/101 | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ tests/overlay/101.out | 2 ++ tests/overlay/102 | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ tests/overlay/102.out | 2 ++ tests/overlay/103 | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ tests/overlay/103.out | 2 ++ tests/overlay/group | 4 ++++ 10 files changed, 264 insertions(+) create mode 100755 tests/overlay/100 create mode 100644 tests/overlay/100.out create mode 100755 tests/overlay/101 create mode 100644 tests/overlay/101.out create mode 100755 tests/overlay/102 create mode 100644 tests/overlay/102.out create mode 100755 tests/overlay/103 create mode 100644 tests/overlay/103.out
common/rc +8 -0
@@ -1986,6 +1986,14 @@ _require_test_program() [ -x $SRC_TEST ] || _notrun "$SRC_TEST not built" } +# this test requires that the unionmount testsuite is installed under src/ +_require_unionmount_testsuite() +{ + UNIONMOUNT_TESTSUITE=src/unionmount-testsuite + [ -x "$UNIONMOUNT_TESTSUITE/run" ] || \ + _notrun "unionmount testsuite required." +} + # run an aio-dio program # $1 - command _run_aiodio()
tests/overlay/100 new file +61 -0
61 lines not on this page · raw message
tests/overlay/100.out new file +2 -0
@@ -0,0 +1,2 @@ +QA output created by 100 +Silence is golden
tests/overlay/101 new file +61 -0
61 lines not on this page · raw message
tests/overlay/101.out new file +2 -0
@@ -0,0 +1,2 @@ +QA output created by 101 +Silence is golden
tests/overlay/102 new file +61 -0
61 lines not on this page · raw message
tests/overlay/102.out new file +2 -0
@@ -0,0 +1,2 @@ +QA output created by 102 +Silence is golden
tests/overlay/103 new file +61 -0
61 lines not on this page · raw message
tests/overlay/103.out new file +2 -0
@@ -0,0 +1,2 @@ +QA output created by 103 +Silence is golden
tests/overlay/group +4 -0
@@ -37,3 +37,7 @@ 032 auto quick copyup hardlink 033 auto quick copyup hardlink 034 auto quick copyup hardlink +100 auto quick union nonsamefs +101 auto quick union samefs +102 auto union rotate nonsamefs +103 auto union rotate samefs
Signature · 1 line
2.7.4
Quoted 8 lines · Amir Goldstein
This test group requires that unionmount-testsuite is installed under src dir.
These tests use tmpfs and have no need for test nor scratch partition.
Signed-off-by Amir Goldstein <[email protected]>---
Quoted 8 lines
Eryu,
unionmount-testsuite, written by David Howells, is a powerfull tool for validating "union mounts", which nowadays, mostly means overlayfs.
The testsuite was enhanced with directory rename tests for kernel v4.10, and with constant inode number verification for kernel v4.12. The most recent repository is maintained on my github [1].
Are you planning to push all your enhancements to upstream? Red Hat QE is using unionmount-testsuite to test overlayfs :) But it's downloaded from David's repo[1], which hasn't been updated for two years.
[1] git://git.infradead.org/users/dhowells/unionmount-testsuite.git
Quoted 11 lines
The tool is written in python. By default, it uses tmpfs for the overlayfs layers and a complete run of all the tests in the most basic configuration takes ~10 seconds on my laptop.
I have been using xfstests as a test harness to run unionmount-testsuite with several configuration (e.g. layers on same/non-same fs) and I am quite certain that more people can benefit from this setup.
The proposed patch is how I use the harness, but it raises some questions:
- How does xfstests community feel about relying on external repositories?
I'd like to see either porting all the tests from external repositories to fstests or keeping them separate as they're two independent testsuites. I'm reluctant to make fstests rely on an external testsuite and make fstests a wrapper of it. I think it's easier to maintain for both projects, and things are simpler this way and well self-contained.
Quoted 2 lines
- How does xfstests community feel about including python sources in the xfstests repository?
I think it's OK to include python sources if it's really needed. But we tend to not add more dependencies to fstests, if we have better choice, e.g. use perl instead. There's only one python script right now, tools/sort-group, but it's not used by the tests.
Thanks,
Eryu
Quoted 10 lines
There are probably very few, if any, people running the testsuite, besides Miklos and myself and I personally have no strong preference towards maintaining the tool in an external repository or in xfstests repository.
Thoughts?
Amir.
Quoted 11 lines · Eryu Guan
Quoted 10 lines · Amir Goldstein
This test group requires that unionmount-testsuite is installed under src dir.
These tests use tmpfs and have no need for test nor scratch partition.
Signed-off-by Amir Goldstein <[email protected]>---
Eryu,
Quoted 8 lines
Quoted 6 lines
unionmount-testsuite, written by David Howells, is a powerfull tool for validating "union mounts", which nowadays, mostly means overlayfs.
The testsuite was enhanced with directory rename tests for kernel v4.10, and with constant inode number verification for kernel v4.12. The most recent repository is maintained on my github [1].
Are you planning to push all your enhancements to upstream?
I don't mind pushing 'upstream' and don't mind becoming 'upstream' as well.
I declared my 'master' branch forward-only a while ago, when Vivek showed interest to use it and I try to make sure that all changes that go into master branch are backward compat with older kernels.
Quoted 6 lines
Red Hat QE
is using unionmount-testsuite to test overlayfs :) But it's downloaded from David's repo[1], which hasn't been updated for two years.[1]
git://git.infradead.org/users/dhowells/unionmount-testsuite.git
Well, that repo is not so useful anymore for testing overlayfs on kernel >= 4.10 with OVERLAYFS_REDIRECT_DIR=y
It fails some dir rename tests, which is easy to fix, but it's test coverage for directory rename with multiple layers is insufficient.
Quoted 18 lines
Quoted 11 lines
The tool is written in python. By default, it uses tmpfs for the overlayfs layers and a complete run of all the tests in the most basic configuration takes ~10 seconds on my laptop.
I have been using xfstests as a test harness to run unionmount-testsuite with several configuration (e.g. layers on same/non-same fs) and I am quite certain that more people can benefit from this setup.
The proposed patch is how I use the harness, but it raises some questions:
- How does xfstests community feel about relying on external repositories?I'd like to see either porting all the tests from external repositories to fstests or keeping them separate as they're two independent testsuites. I'm reluctant to make fstests rely on an external testsuite and make fstests a wrapper of it. I think it's easier to maintain for both projects, and things are simpler this way and well self-contained.
Quoted 8 lines
Quoted 2 lines
- How does xfstests community feel about including python sources in the xfstests repository?
I think it's OK to include python sources if it's really needed. But we tend to not add more dependencies to fstests, if we have better choice, e.g. use perl instead. There's only one python script right now,
tools/sort-group, but it's not used by the tests.
So the bottom line is that I carry this patch myself
and the many test cases that unionmount-testsuite adds for overlayfs won't be covered by a random overlayfs developer who runs ./check -g auto.
I have no problem with this consequence myself,
I understand the complications that an external project dependency brings. Just wanted to know if others feel differently.
Cheers,
Amir.