Skip to content

Commit 7baa454

Browse files
dwsusekawasaki
authored andcommitted
doc: document how to configure bcache tests
Add a bcache entry in running-tests which explains how to configure blktests for the bcache tests. Signed-off-by: Daniel Wagner <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
1 parent cd200a7 commit 7baa454

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Documentation/running-tests.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,16 @@ To run with both null_blk and scsi_debug:
189189
THROTL_BLKDEV_TYPES="nullb sdebug" ./check throtl/
190190
```
191191

192+
### Bcache test configuration
193+
194+
The bcache tests require multiple devices to run simultaneously. By default,
195+
blktests run each test case for each device in TEST_DEVS. This behavior
196+
prevents testing with multiple devices. The TEST_CASE_DEV_ARRAY resolves this by
197+
enabling multiple device configurations per test. Bcache tests need at
198+
least three devices, which can be specified in your configuration as follows:
199+
200+
TEST_CASE_DEV_ARRAY[bcache/*]="/dev/nvme0n1 /dev/vdb /dev/vdc"
201+
192202
### Normal user
193203

194204
To run test cases which require normal user privilege, prepare a user and

0 commit comments

Comments
 (0)