From: Bart Van Assche Date: Fri, 4 Jan 2019 23:48:15 +0000 (-0800) Subject: tests/srp/013: Provide detailed information about the progress of this test X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5f1e24c3f4cee300e37e52d5054b10ae691c648f;p=users%2Fsagi%2Fblktests.git tests/srp/013: Provide detailed information about the progress of this test This makes it easier to determine what went wrong if this test fails. Signed-off-by: Bart Van Assche --- diff --git a/tests/srp/013 b/tests/srp/013 index 817f15c..734b896 100755 --- a/tests/srp/013 +++ b/tests/srp/013 @@ -12,18 +12,23 @@ discontiguous_io() { use_blk_mq y y || return $? dev=$(get_bdev 0) || return $? + echo "Reading first 512 bytes with dd" dd if="${dev}" bs=512 count=1 iflag=direct status=none | od -An -v -tu1 -w1 | while read -r byte; do # shellcheck disable=SC2059 printf "\\x$(printf "%x" $((byte ^ 0xa5)))" done >"${TMPDIR}/data_block" + echo -n "Number of bytes read: " wc -c < "${TMPDIR}/data_block" + echo "Writing data ^ 0xa5 ..." src/discontiguous-io -s -w "${dev}" <"${TMPDIR}/data_block" >>"$FULL" || return $? + echo "Rereading data with dd ..." dd if="${dev}" bs=512 count=1 iflag=direct status=none | cmp - "${TMPDIR}/data_block" || return $? + echo "Rereading data with discontiguous-io ..." src/discontiguous-io -s "${dev}" 2>>"$FULL" | cmp - "${TMPDIR}/data_block" || return $? diff --git a/tests/srp/013.out b/tests/srp/013.out index e368128..6d6e281 100644 --- a/tests/srp/013.out +++ b/tests/srp/013.out @@ -1,3 +1,7 @@ Configured SRP target driver -512 +Reading first 512 bytes with dd +Number of bytes read: 512 +Writing data ^ 0xa5 ... +Rereading data with dd ... +Rereading data with discontiguous-io ... Passed