diff --git a/srpt/Testing.txt b/srpt/Testing.txt index fc8c68873..d9c82c52a 100644 --- a/srpt/Testing.txt +++ b/srpt/Testing.txt @@ -23,23 +23,7 @@ The following tests must be run at least before releasing a new SRPT version: * Verify that an I/O stress test runs fine by running the following command on an initiator system after having created two partitions: -fio < /sys/class/infiniband_srp/srp-mlx4_0-1/add_target; sleep 2; done - and verify that nothin unexpected happens. + and verify that nothing unexpected happens. + +* Log in twice from an initiator system, and verify that the first session + receives a DREQ upon the second login: + + target_id="id_ext=0002c9030003cca2,ioc_guid=0002c9030003cca2,dgid=fe800000000000000002c9030003cca3,pkey=ffff,service_id=0009030003cca2,ioc_guid=0002c9030003cca2,dgid=fe800000000000000002c9030003cca3,pkey=ffff,service_id=0002c9030003cca2" + dmesg -c + echo "${target_id}" > /sys/class/infiniband_srp/srp-mlx4_0-1/add_target + dmesg -c + echo "${target_id}" > /sys/class/infiniband_srp/srp-mlx4_0-1/add_target + dmesg -c + echo "${target_id}" > /sys/class/infiniband_srp/srp-mlx4_0-1/add_target + +* Test low memory conditions: load SRPT, reduce the amount of available + memory by creating a large file on a tmpfs file system and run a stress test + on an initiator system. + +* Test the state machine for SCST commands in SRPT by using SCST's error + injection mechanism. Add the following to scst/src/Makefile, log in from + an initiator system and trigger SRP I/O: + EXTRA_CFLAGS += -DCONFIG_SCST_DEBUG -g + EXTRA_CFLAGS += -DCONFIG_SCST_DEBUG_TM -DCONFIG_SCST_TM_DBG_GO_OFFLINE +