]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
tests/srp/013: Provide detailed information about the progress of this test
authorBart Van Assche <bvanassche@acm.org>
Fri, 4 Jan 2019 23:48:15 +0000 (15:48 -0800)
committerBart Van Assche <bvanassche@acm.org>
Mon, 11 Feb 2019 18:08:14 +0000 (10:08 -0800)
This makes it easier to determine what went wrong if this test fails.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
tests/srp/013
tests/srp/013.out

index 817f15cadad3eda05b8b1c87b6bd9834f0b348dd..734b896fd4fb53075936abb31a06375cd0464634 100755 (executable)
@@ -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 $?
index e36812823797aade3a42757694bda832c7c36cbf..6d6e2815d4377d30e5033440eb71ce6596be96c4 100644 (file)
@@ -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