iotests/common.rc: Add _require_working_luks
commitdc4ab0291983d4d0df7c32566e45da42817a343a
authorMax Reitz <mreitz@redhat.com>
Thu, 25 Jun 2020 12:55:32 +0000 (25 14:55 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 6 Jul 2020 06:33:06 +0000 (6 08:33 +0200)
tree077a30d71539b192dc3ac0cbbe8a1b5524d83646
parentcbb32e79dd13cc46137697de2c89d35b2b74a3f6
iotests/common.rc: Add _require_working_luks

That the luks driver is present is little indication on whether it is
actually working.  Without the crypto libraries linked in, it does not
work.  So add this function, which tries to create a luks image to see
whether that actually works.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200625125548.870061-4-mreitz@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
tests/qemu-iotests/common.rc