1# Block device testing 2 3__WARNING: All of the following tests are destructive, and they may not 4ask for confirmation before executing. Run at your own risk.__ 5 6## Protocol testing 7 8*blktest* is an integration which may be used to check adherence to the block protocol. 9 10```shell 11$ blktest -d /dev/class/block/000 12``` 13 14## Filesystem testing 15 16*fs-test* is a filesystem integration test suite that can be used to verify 17Fuchsia filesystem correctness on a filesystem. 18 19To avoid racing with the auto-mounter, it is recommended to run this 20test with the kernel command line option "zircon.system.disable-automount=true". 21 22TODO(ZX-1604): Ensure this filesystem test suite can execute on large 23partitions. It is currently recommended to use this test on a 1-2 GB GPT 24partition on the block device. 25 26```shell 27$ /boot/test/fs/fs-test -d /dev/class/block/000 -f minfs 28``` 29 30## Correctness testing 31 32*iochk* is a tool which pseudorandomly reads and writes to a block device to check for errors. 33 34```shell 35$ iochk -bs 32k -t 8 /dev/class/block/000 36``` 37 38## Performance testing 39 40*iotime* is a benchmarking tool which tests the read and write performance of block devices. 41 42```shell 43$ iotime read fifo /dev/class/block/000 64m 4k 44``` 45 46 47