X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Fcompat-test;h=dcf3d5a1ead2e182edd4aa4f22973f8aa431826c;hb=c30fe505c55c55823ef9cb0c8785e18058df0603;hp=04e85a3902189f142bf37af2967e09a342e5f8c9;hpb=a9ce2210bc0040ab7f1d9b8c39d190d387664d41;p=platform%2Fupstream%2Fcryptsetup.git diff --git a/tests/compat-test b/tests/compat-test index 04e85a3..dcf3d5a 100755 --- 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