aboutsummaryrefslogtreecommitdiff
path: root/lib/pluginloader/test
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pluginloader/test')
-rw-r--r--lib/pluginloader/test/pluginloader-sigmatch.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/pluginloader/test/pluginloader-sigmatch.cpp b/lib/pluginloader/test/pluginloader-sigmatch.cpp
new file mode 100644
index 0000000..2e5a1ff
--- /dev/null
+++ b/lib/pluginloader/test/pluginloader-sigmatch.cpp
@@ -0,0 +1,17 @@
+#include "pluginloader.h"
+#include <gtest/gtest.h>
+
+PluginLoader *loader = nullptr;
+
+TEST(PluginLoader, SignatureMatcher) {
+ EXPECT_TRUE(loader->verify());
+}
+
+int main(int argc, char **argv)
+{
+ const PluginLoader::SignatureState state(false, true, false);
+ loader = new PluginLoader(qgetenv("SIGNEDFILE"), state);
+
+ testing::InitGoogleTest(&argc, argv);
+ return RUN_ALL_TESTS();
+}