On Wed, Jun 06, 2018 at 04:06:40PM +0800, bingjingc wrote: > We'd like to leverage this test framework for testing linux raid > software. There are several resync tasks in md/raid. For this commit, > we are trying to add creation resync and basic recovery tests for > every raid type. > > RAID is different from other block devices. It requires several > raid devices and hotspare devices for being assembled, disambled, > expended or recovered in the runtime. So we don't test devices > iteratively in TEST_DEVS list. We define RAID_DEVS and > RAID_SPARE_DEVS lists for providing block devices instead. > > We want to test the software not devices. We also provide a > LIMIT_DEV_SIZE option for limiting the tested array size by limiting > used space for each block device. > > [Getting Started] > > Additional dependencies are also minimal: > - mdadm > - cmp > > And please provide a file named config: > RAID_DEVS=(/dev/loop0 /dev/loop1 /dev/loop2 /dev/loop3 /dev/loop4) > RAID_SPARE_DEVS=(/dev/loop100 /dev/loop101) > LIMIT_DEV_SIZE=20480 # optional > > And as root, you can run the md set of tests by typing > ./check md > > For someone who don't want to run md tests, they just keep RAID_DEVS > and RAID_SPARE_DEVS not assigned, all md tests will be skipped. While I'm very much in support for the idea, please be aware that md has an own test suite by itself and please Cc the md mailing list as well. Thanks, Johannes -- Johannes Thumshirn Storage jthumshirn@xxxxxxx +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850