test/encoding/check-generated: skip some tests if non-determinstic encoding

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2015-08-08 07:28:38 -04:00
parent 2bcab0319b
commit 62f94221c5

View File

@ -53,14 +53,17 @@ for type in `./ceph-dencoder list_types`; do
failed=$(($failed + 1))
fi
./ceph-dencoder type $type select_test $n encode export $tmp1
./ceph-dencoder type $type select_test $n encode decode encode export $tmp2
if ! cmp $tmp1 $tmp2; then
echo "**** $type test $n binary reencode check failed ****"
echo " ceph-dencoder type $type select_test $n encode export $tmp1"
echo " ceph-dencoder type $type select_test $n encode decode encode export $tmp2"
echo " cmp $tmp1 $tmp2"
failed=$(($failed + 1))
if ./ceph-dencoder type $type is_deterministic
then
./ceph-dencoder type $type select_test $n encode export $tmp1
./ceph-dencoder type $type select_test $n encode decode encode export $tmp2
if ! cmp $tmp1 $tmp2; then
echo "**** $type test $n binary reencode check failed ****"
echo " ceph-dencoder type $type select_test $n encode export $tmp1"
echo " ceph-dencoder type $type select_test $n encode decode encode export $tmp2"
echo " cmp $tmp1 $tmp2"
failed=$(($failed + 1))
fi
fi