]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add tpm2 and fido2 libs to dlopen test
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Dec 2020 20:13:58 +0000 (21:13 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 17 Dec 2020 19:02:24 +0000 (20:02 +0100)
src/test/test-dlopen-so.c
test/test-functions

index 6436dc600fcc07ec5081d7b2d923a0218bc4e508..8e1ce6a0d00aa627fd5348fe394f3c0cc99c06e3 100644 (file)
@@ -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;
 }
 
index ce2c42b954b4f5bb703eefbe0c5de20e8066d405..482cb7b490bd01a4e7d838221bdc5a8912c21ea5 100644 (file)
@@ -697,7 +697,7 @@ install_missing_libraries() {
 
     # A number of dependencies is now optional via dlopen, so the install
     # script will not pick them up, since it looks at linkage.
-    for lib in libcryptsetup libidn libidn2 pwquality libqrencode; do
+    for lib in libcryptsetup libidn libidn2 pwquality libqrencode tss2-esys tss2-rc tss2-mu libfido2; do
             if pkg-config --exists ${lib}; then
                     path=$(pkg-config --variable=libdir ${lib})
                     if ! [[ ${lib} =~ ^lib ]]; then