[sheepdog] [PATCH 2/4] tests/028: show md5 hash values
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Fri Sep 14 10:24:27 CEST 2012
The VDI contents of this test are not random, so it's better to show
their md5 hash values to know which VDIs are corrupted.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
tests/028 | 15 ++++-----------
tests/028.out | 5 ++++-
2 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/tests/028 b/tests/028
index de595df..53d4ecf 100755
--- a/tests/028
+++ b/tests/028
@@ -27,7 +27,7 @@ for i in `seq 0 24`; do
echo $i | $COLLIE vdi write test $((i * 4 * 1024 * 1024)) 512
done
-$COLLIE vdi read test | md5sum > /tmp/csum.0
+$COLLIE vdi read test | md5sum
for i in 2 3; do
_start_sheep $i
@@ -41,7 +41,7 @@ for i in `seq 0 24`; do
echo $(($i+1)) | $COLLIE vdi write test $((i * 4 * 1024 * 1024)) 512 -p 7002
done
-$COLLIE vdi read test -p 7002 | md5sum > /tmp/csum.1
+$COLLIE vdi read test -p 7002 | md5sum
for i in 2 3; do
_start_sheep $(($i-2))
@@ -50,18 +50,11 @@ for i in 2 3; do
_wait_for_sheep_recovery $(($i-2))
done
-$COLLIE vdi read test | md5sum > /tmp/csum.2
-$COLLIE vdi read test -p 7001 | md5sum > /tmp/csum.3
+$COLLIE vdi read test | md5sum
+$COLLIE vdi read test -p 7001 | md5sum
$COLLIE vdi object test
for i in `seq 0 24`; do
$COLLIE vdi object -i $i test
done
-
-if [ "$(diff -u /tmp/csum.0 /tmp/csum.1)" ]; then
- echo "update test successfully"
-fi
-
-diff -u /tmp/csum.1 /tmp/csum.2
-diff -u /tmp/csum.1 /tmp/csum.3
diff --git a/tests/028.out b/tests/028.out
index 5bb80ed..852a792 100644
--- a/tests/028.out
+++ b/tests/028.out
@@ -1,5 +1,9 @@
QA output created by 028
using backend farm store
+9c7766570b3be3aff2724f587c2f4107 -
+a6c5d562057d0b8e7c90df17e5ea9450 -
+a6c5d562057d0b8e7c90df17e5ea9450 -
+a6c5d562057d0b8e7c90df17e5ea9450 -
Looking for the inode object 0x7c2b25 with 2 nodes
127.0.0.1:7000 has the object (should be 2 copies)
@@ -104,4 +108,3 @@ Looking for the object 0x7c2b2500000018 (the inode vid 0x7c2b25 idx 24) with 2 n
127.0.0.1:7000 has the object (should be 2 copies)
127.0.0.1:7001 has the object (should be 2 copies)
-update test successfully
--
1.7.2.5
More information about the sheepdog
mailing list