From 9f6b1099e54967f99112bcbd8ae622e84cc27592 Mon Sep 17 00:00:00 2001 From: xuhuagen Date: Mon, 13 Aug 2018 15:01:23 +0800 Subject: [PATCH] autotest: add unmap,flush,reset testing for iscsi initiator. Change-Id: Ic5fffd0fbdf7693aa85cc16ff259fe107438637d Signed-off-by: xuhuagen Reviewed-on: https://review.gerrithub.io/422031 Chandler-Test-Pool: SPDK Automated Test System Tested-by: SPDK CI Jenkins Reviewed-by: Seth Howell Reviewed-by: Changpeng Liu Reviewed-by: Ben Walker --- test/iscsi_tgt/initiator/initiator.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/iscsi_tgt/initiator/initiator.sh b/test/iscsi_tgt/initiator/initiator.sh index bcc9ac50e..5319b6a0f 100755 --- a/test/iscsi_tgt/initiator/initiator.sh +++ b/test/iscsi_tgt/initiator/initiator.sh @@ -43,6 +43,11 @@ cp $testdir/bdev.conf.in $testdir/bdev.conf echo "[iSCSI_Initiator]" >> $testdir/bdev.conf echo " URL iscsi://$TARGET_IP/iqn.2016-06.io.spdk:disk1/0 iSCSI0" >> $testdir/bdev.conf $rootdir/test/bdev/bdevperf/bdevperf -c $testdir/bdev.conf -q 128 -s 4096 -w verify -t 5 -d 512 +if [ $RUN_NIGHTLY -eq 1 ]; then + $rootdir/test/bdev/bdevperf/bdevperf -c $testdir/bdev.conf -q 128 -s 4096 -w unmap -t 5 -d 512 + $rootdir/test/bdev/bdevperf/bdevperf -c $testdir/bdev.conf -q 128 -s 4096 -w flush -t 5 -d 512 + $rootdir/test/bdev/bdevperf/bdevperf -c $testdir/bdev.conf -q 128 -s 4096 -w reset -t 10 -d 512 +fi rm -f $testdir/bdev.conf trap - SIGINT SIGTERM EXIT