summaryrefslogtreecommitdiff
path: root/src/test/test-dlopen-so.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-12-09 21:13:58 +0100
committerLennart Poettering <lennart@poettering.net>2020-12-17 20:02:24 +0100
commita60d5b2f38b2e74bd8273ce81031b7b828c90202 (patch)
treee981c3f525fc592726c8db20b8e1cea0e6dde8ca /src/test/test-dlopen-so.c
parent889914ef6cfe4519b70fa2f724ed201b1c90ad1e (diff)
downloadsystemd-a60d5b2f38b2e74bd8273ce81031b7b828c90202.tar.gz
test: add tpm2 and fido2 libs to dlopen test
Diffstat (limited to 'src/test/test-dlopen-so.c')
-rw-r--r--src/test/test-dlopen-so.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/test-dlopen-so.c b/src/test/test-dlopen-so.c
index 6436dc600f..8e1ce6a0d0 100644
--- a/src/test/test-dlopen-so.c
+++ b/src/test/test-dlopen-so.c
@@ -5,11 +5,13 @@
#include "cryptsetup-util.h"
#include "idn-util.h"
+#include "libfido2-util.h"
#include "macro.h"
#include "main-func.h"
#include "pwquality-util.h"
#include "qrcode-util.h"
#include "tests.h"
+#include "tpm2-util.h"
static int run(int argc, char **argv) {
test_setup_logging(LOG_DEBUG);
@@ -34,6 +36,14 @@ static int run(int argc, char **argv) {
assert_se(dlopen_qrencode() >= 0);
#endif
+#if HAVE_TPM2
+ assert_se(dlopen_tpm2() >= 0);
+#endif
+
+#if HAVE_LIBFIDO2
+ assert_se(dlopen_libfido2() >= 0);
+#endif
+
return 0;
}