-
Notifications
You must be signed in to change notification settings - Fork 65
testsuite: complete sharness framework conversion #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Problem: the kern/t14 statfs is duplicated in t0010-v9fs-runasuser.t. Drop the old test.
Problem: the kern/t45 pathwalk test lives in the old test framework. Migrate to sharness.
Problem: the kern/t16 stat test is duplicated in t0010-v9fs-runasuser.t. Drop the old test.
Problem: kern/tsuppgrp.c has no users. Drop it.
Problem: the kern/t25 setgroupid directory test lives in the old test framework. Create a new test in t0012-v9fs-multiuser.t. Drop the old one.
Problem: the kern/t13 rename test is duplicated in t0010-v9fs-runasuser.t. Drop the old test.
grondo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a few commit message typos.
| test_tattach \ | ||
| test_loadgen \ | ||
| test_pathwalk \ | ||
| test_flock \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit message typo: 'the ... test live' -> ' the ... tests live'
| --debug=0x1 \ | ||
| --export=$exportdir | ||
|
|
||
| if PATH_GETFATTR=$(which getfattr) && PATH_SETFATTR=$(which setfattr); then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit message: "kern/42" should be "kern/t42" I assume.
Also duplicate "test" at end of line 1.
| - name: check with linux/9p | ||
| run: sudo make check -C tests/kern |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit message typo: expicit
Problem: the kern/t18 and t24 flock tests live in the old test framework. Create new tests in t0010-v9fs-runasuser.t. Drop the old ones.
Problem: the kern/t42, t46, and t47 extended attribute tests live in the old test framework. Create new tests in t0012-v9fs-multiuser.t. Drop the old ones.
Problem: the kern/t12 create-with-mode test lives in the old test framework. Create a new test in t0010-v9fs-runasuser.t. Drop the old one.
Problem: the kern/t44 atomic create test lives in the old test framework. Create a new test in t0010-v9fs-runasuser.t. Drop the old one.
Problem: the kern/t15 fsync test is duplicated in t0010-v9fs-runasuser.t. Drop the old test.
Problem: the kern/t17 mode test is duplicated in t0010-v9fs-runasuser.t. Drop the old test.
Problem: fstest, fsstress, and fsx are vendored tests that appear to be abandoned or at least not widely used. Drop for now.
Problem: the .gitignore names a bunch of files and directories that no longer exist. Remove them.
Problem: tests/kern has been removed but the github workflow still tries to run it. Don't do that.
Problem: compilation fails on debian 12/aarch64:
diodcli.c: In function ‘print_stat’:
diodcli.c:838:66: error: format ‘%lu’ expects argument of type
‘long unsigned int’, but argument 7 has type ‘__blksize_t’
{aka ‘int’} [-Werror=format=]
diodcli.c:838:13: error: format ‘%lu’ expects argument of type
‘long unsigned int’, but argument 8 has type ‘__nlink_t’
{aka ‘unsigned int’} [-Werror=format=]
Add a cast.
Problem: apparently raspbian doesn't configure v9fs with 9P_FS_SECURITY, so the xattr tests on the "security." prefix fail with "Operation not supported". Add a SECURITY test prereq so these tests are skipped by default. Later we can look into how to automatically enable them when the feature is available.
|
Thanks! fixed those things and also tacked on a couple of minor fixes from retesting on rasbian. I'll set MWP. |
|
Oh this changed the github workflow so might need a manual merge. I'll press the button. |
This completes the project's conversion to the sharness test framework.
I did drop three test suites: fsx, fstest, and fsstress. These projects are old and don't seem to be well supported, and in the past when we've had test failures, it has been a total pain to interpret what has gone wrong. I'd rather give them up and start fresh. We can pull in other tests as modern, supported ones are identified.