tests/unit: always build the pbkdf crypto unit test
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 29 Aug 2024 13:50:33 +0000 (14:50 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 9 Sep 2024 14:13:38 +0000 (15:13 +0100)
commitb0fe44b56b6d02e6f57577cdf69dfb54fd6ada99
tree246ef1b827a317d17c7ba705a87e67cf4b423c61
parente6c09ea4f9e5f8af92a6453642b84b9efd52892f
tests/unit: always build the pbkdf crypto unit test

The meson rules were excluding the pbkdf crypto test when gnutls was the
crypto backend. It was then excluded again in #if statements in the test
file.

Rather than update these conditions, remove them all, and use the result
of the qcrypto_pbkdf_supports() function to determine whether to skip
test registration.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/unit/meson.build
tests/unit/test-crypto-pbkdf.c