ib_srpt, Testing.txt: Add a test

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4277 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2012-05-03 09:55:41 +00:00
parent 5496aa9c2d
commit 30cfdfd079

View File

@@ -156,3 +156,16 @@ Index: srpt/src/ib_srpt.c
not list any kernel threads) and that no sessions remain
(output of "ls /sys/kernel/scst_tgt/targets/ib_srpt/*/sessions" must be
empty) and that the amount of free memory remains the same.
* Run this script on the target to verify that active sessions are closed
properly when a target is disabled:
e=1
while true; do
echo $e
for f in /sys/kernel/scst_tgt/targets/ib_srpt/*/enabled; do
echo $e > $f
done
e=$((1-e))
sleep 10
done
While this script is running, repeatedly try to log in from another system.