All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lakshmipathi.G" <lakshmipathi.g@gmail.com>
To: linux-btrfs@vger.kernel.org
Cc: "Lakshmipathi.G" <Lakshmipathi.G@giis.co.in>
Subject: [PATCH][btrfs-progs] Include file verification with convert-tests
Date: Mon, 25 Jan 2016 21:38:33 +0530	[thread overview]
Message-ID: <1453738113-19583-1-git-send-email-Lakshmipathi.G@giis.co.in> (raw)

From: "Lakshmipathi.G" <Lakshmipathi.G@giis.co.in>

Signed-off-by: Lakshmipathi.G <Lakshmipathi.G@giis.co.in>
---
 tests/convert-tests.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/convert-tests.sh b/tests/convert-tests.sh
index b26c069..b3d9797 100755
--- a/tests/convert-tests.sh
+++ b/tests/convert-tests.sh
@@ -45,10 +45,14 @@ convert_test() {
 	run_check $SUDO_HELPER mount -o loop $IMAGE $TEST_MNT
 	run_check $SUDO_HELPER dd if=/dev/zero of=$TEST_MNT/test bs=$nodesize \
 		count=1 1>/dev/null 2>&1
+        run_check_stdout $SUDO_HELPER md5sum $TEST_MNT/test > $TEST_MNT/test.md5sum
 	run_check $SUDO_HELPER umount $TEST_MNT
 	run_check $TOP/btrfs-convert ${features:+-O "$features"} -N "$nodesize" $IMAGE
 	run_check $TOP/btrfs check $IMAGE
 	run_check $TOP/btrfs-show-super $IMAGE
+	run_check $SUDO_HELPER mount -o loop $IMAGE $TEST_MNT
+	run_check_stdout $SUDO_HELPER md5sum -c $TEST_MNT/test.md5sum | grep -q 'OK' || _fail "file validation failed."
+	run_check $SUDO_HELPER umount $TEST_MNT
 }
 
 if ! [ -z "$TEST" ]; then
-- 
1.8.3.1


             reply	other threads:[~2016-01-25 16:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-25 16:08 Lakshmipathi.G [this message]
2016-02-11 17:53 ` [PATCH][btrfs-progs] Include file verification with convert-tests David Sterba
2016-02-17 21:26 Lakshmipathi.G

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1453738113-19583-1-git-send-email-Lakshmipathi.G@giis.co.in \
    --to=lakshmipathi.g@gmail.com \
    --cc=Lakshmipathi.G@giis.co.in \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.