mbox series

[blktests,V2,0/1] nvme: add nvme pci timeout testcase

Message ID 20240117042206.11031-1-kch@nvidia.com (mailing list archive)
Headers show
Series nvme: add nvme pci timeout testcase | expand

Message

Chaitanya Kulkarni Jan. 17, 2024, 4:22 a.m. UTC
Hi,

Add a test to trigger nvme pci timeout handler function

Below is the test log.
	
-ck

Change log :-

1. Use test_device() and TEST_DEV.
2. Make tesctcase pci only just like in nvme/032.
3. Remove . from copyright and test description.
4. Add _have_kernel_option FAIL_IO_TIMEOUT.
5. Save and restore fault injection settings.
6. Use "$(nproc)" to get rid of shellcheck annotation.
7. Don't remove the device keep it as it is, add module remove testcase later.

Chaitanya Kulkarni (1):
  nvme: add nvme pci timeout testcase

 tests/nvme/050     | 74 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/nvme/050.out |  2 ++
 2 files changed, 76 insertions(+)
 create mode 100755 tests/nvme/050
 create mode 100644 tests/nvme/050.out


blktests (master) # modprobe  -r nvme
blktests (master) # modprobe nvme
blktests (master) # TEST_DEVS=/dev/nvme0n1 nvme_trtype=pci ./check nvme/050
nvme/050 => nvme0n1 (test nvme-pci timeout with fio jobs)    [passed]
    runtime  90.854s  ...  91.087s
blktests (master) #