t/zbd: add run-tests-against-nullb script This script combines the t/zbd/run-tests-against-zoned-nullb script functionality with t/zbd/run-tests-against-regular-nullb and adds more zoned device configurations to test. This considerably improves ZBD test coverage. The added script makes the two old scripts named above obsolete, remove them. Modify t/run-fio-tests.py and Makefile to refer to the new script instead of the old one. Since the full test now runs significantly longer than the two old ones combined due to many more zoned configurations, only execute a few individual sections as a part of testing n "make fulltest" and run-fio-tests.py. One extra test section with 10% conventional zones is executed from the Makefile. The Python tests only exercise all-conventional and all-sequential configurations, exactly as before. The script returns a non-zero return code if at least one of the executed sections had a failed test. Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com> Reviewed-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/zbd: Support testing zone capacity smaller than zone size with null_blk To test zone capacity support by fio using null_blk, add -zone-cap option to run-tests-against-zoned-nullb. With this option, the script creates a null_blk device which has zone capacity smaller than zone size and run test-zbd-support script for the device. Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/zbd: improve error handling for test scripts Use exit instead of return to abort the scripts if modprobe null_blk fails. With return, the script continues to run after printing an error message. Also abort if the null block device setup fails for the regular null block device test script. Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Vincent Fu <vincent.fu@wdc.com>
zbd: Fix test scripts Fix handling of the path to the test-zbd-support script to avoid an error when the tests are run directly when in fio/t/zbd using the command "./run-against...". Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Add scripts for testing the fio zoned block device support code These scripts can be run e.g. as follows: t/zbd/run-tests-against-zoned-nullb && t/zbd/run-tests-against-regular-nullb && t/zbd/test-zbd-support /dev/disk/by-id/scsi-SHGST_HSH721414AL52M0_VEG007HG && echo All tests passed Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>