unit/namecheck

Unit tests are deterministic tests that complement the ZTS testing infrastructure. They were first implemented by robn in test_zap.c to cover the ZAP API including microzap and fatzap.

My commit introduces a new namecheck validity testing framework for zfs pools, datasets, snapshots etc. It covers the full namecheck.c functions.

To run the test execute make unit T=namecheck

> make unit T=namecheck
UNITTEST tests/unit/test_namecheck
Running test suite with seed 0x5842ef3e...
namecheck.pool [ OK ] [ 0.00000954 / 0.00000873 CPU ]
namecheck.dataset [ OK ] [ 0.00001064 / 0.00000984 CPU ]
namecheck.snapshot [ OK ] [ 0.00000589 / 0.00000590 CPU ]
namecheck.bookmark [ OK ] [ 0.00000654 / 0.00000605 CPU ]
namecheck.component [ OK ] [ 0.00000508 / 0.00000508 CPU ]
namecheck.permset [ OK ] [ 0.00000608 / 0.00000561 CPU ]
namecheck.mountpoint [ OK ] [ 0.00000337 / 0.00000329 CPU ]
namecheck.depth [ OK ] [ 0.00000204 / 0.00000159 CPU ]
8 of 8 (100%) tests successful, 0 (0%) test skipped.

https://github.com/chrislongros/zfs/commit/7e054b2e7ea80c7c838f7fd44b7d517eea5c9d18


Leave a comment

Discover more from /root

Subscribe now to keep reading and get access to the full archive.

Continue reading