Skip to content

Conversation

@garlick
Copy link
Member

@garlick garlick commented Oct 31, 2025

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.

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.
Copy link
Member

@grondo grondo left a 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 \
Copy link
Member

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
Copy link
Member

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.

Comment on lines -48 to -49
- name: check with linux/9p
run: sudo make check -C tests/kern
Copy link
Member

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.
@garlick
Copy link
Member Author

garlick commented Oct 31, 2025

Thanks! fixed those things and also tacked on a couple of minor fixes from retesting on rasbian. I'll set MWP.

@garlick
Copy link
Member Author

garlick commented Oct 31, 2025

Oh this changed the github workflow so might need a manual merge. I'll press the button.

@garlick garlick merged commit 69a7dec into chaos:master Oct 31, 2025
5 of 6 checks passed
@garlick garlick deleted the kern_tests branch October 31, 2025 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants