projects
/
platform
/
upstream
/
cryptsetup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9ce221
)
Add check of decrypted image to test.
author
Milan Broz
<gmazyland@gmail.com>
Mon, 25 Jul 2011 21:49:14 +0000
(21:49 +0000)
committer
Milan Broz
<gmazyland@gmail.com>
Mon, 25 Jul 2011 21:49:14 +0000
(21:49 +0000)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@581
36d66b0a
-2a48-0410-832c-
cd162a569da5
tests/compat-test
patch
|
blob
|
history
diff --git
a/tests/compat-test
b/tests/compat-test
index
04e85a3
..
dcf3d5a
100755
(executable)
--- a/
tests/compat-test
+++ b/
tests/compat-test
@@
-102,6
+102,8
@@
function check_exists()
prepare "[1] open - compat image - acceptance check" new
echo "compatkey" | $CRYPTSETUP luksOpen $LOOPDEV $DEV_NAME || fail
check_exists
+ORG_SHA1=$(sha1sum -b /dev/mapper/$DEV_NAME | cut -f 1 -d' ')
+[ "$ORG_SHA1" = 676062b66ebf36669dab705442ea0762dfc091b0 ] || fail
prepare "[2] open - compat image - denial check" new
echo "wrongkey" | $CRYPTSETUP luksOpen $LOOPDEV $DEV_NAME 2>/dev/null && fail