diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-26 23:14:53 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-27 15:58:31 +0200 |
commit | 0bf5450365934c39ed0bb480712adaab2fa54386 (patch) | |
tree | 15b90e626ca7f29c9fa219addf17e9cf618b6496 /lib/pluginloader/test | |
parent | Move compiler flags to meson.build from pkgbuild (diff) | |
download | smolbote-0bf5450365934c39ed0bb480712adaab2fa54386.tar.xz |
pluginloader: add test for PluginLoader::verify
Diffstat (limited to 'lib/pluginloader/test')
-rw-r--r-- | lib/pluginloader/test/pluginloader-sigmatch.cpp | 17 |
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(); +} |