Page MenuHomeFreeBSD

glabel: add a basic test
ClosedPublic

Authored by brd on Oct 17 2025, 7:56 PM.
Tags
None
Referenced Files
F139598947: D53178.id164455.diff
Sun, Dec 14, 12:05 AM
F139596219: D53178.id164455.diff
Sat, Dec 13, 11:19 PM
Unknown Object (File)
Thu, Dec 11, 8:52 PM
Unknown Object (File)
Mon, Dec 1, 11:24 AM
Unknown Object (File)
Thu, Nov 27, 10:45 PM
Unknown Object (File)
Mon, Nov 24, 8:31 PM
Unknown Object (File)
Thu, Nov 20, 8:55 PM
Unknown Object (File)
Thu, Nov 20, 5:28 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 67883
Build 64766: arc lint + arc unit

Event Timeline

brd requested review of this revision.Oct 17 2025, 7:56 PM
asomers requested changes to this revision.Oct 17 2025, 8:17 PM

Looks like a good start.

tests/sys/geom/class/label/basic.sh
33

There's no cleanup method either. Either add one, or else remove the cleanup keyword.

52

detach_md should be moved to a cleanup method, so it will still be executed on failure. I suggest using tests/sys/geom/class/nop/nop_test.sh as an example.

58

I suggest you rename the test, since it doesn't actually exercise the create command.

This revision now requires changes to proceed.Oct 17 2025, 8:17 PM
brd marked 3 inline comments as done.Oct 17 2025, 8:42 PM

Thanks for the feedback

This revision is now accepted and ready to land.Oct 17 2025, 8:48 PM
This revision was automatically updated to reflect the committed changes.

I think this commit is missing an addition to BSD.tests.dist because I get an error during make installworld. I've posted a quick github PR here, could you review and merge if it's correct? https://github.com/freebsd/freebsd-src/pull/1877

I think this commit is missing an addition to BSD.tests.dist because I get an error during make installworld. I've posted a quick github PR here, could you review and merge if it's correct? https://github.com/freebsd/freebsd-src/pull/1877

Cool, thanks!