aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-04-29 18:45:17 +0300
committerAqua-sama <aqua@iserlohn-fortress.net>2020-04-29 18:51:00 +0300
commit221d00c4945c027b83d2ea72bc213e465d16884d (patch)
tree2c3e52b0b88e1c9ebb75debd61ec1f319b0cbcb5 /plugins
parentCleanup (diff)
downloadsmolbote-221d00c4945c027b83d2ea72bc213e465d16884d.tar.xz
Expand pluginloader test coverage
- add poi-plugin-load to test compatibility of plugins - rewrite tests to use catch2 - use cpp stdlib to read files - clang-tidy and clang-format pass
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ProfileEditor/meson.build11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/ProfileEditor/meson.build b/plugins/ProfileEditor/meson.build
index c44f5c4..caa3a75 100644
--- a/plugins/ProfileEditor/meson.build
+++ b/plugins/ProfileEditor/meson.build
@@ -11,3 +11,14 @@ ProfileEditorPlugin_lib = shared_library('ProfileEditorPlugin',
include_directories: include,
install: true, install_dir: join_paths(get_option('libdir'), 'smolbote/plugins')
)
+
+test('run', executable('ProfileEditor', 'test/main.cpp',
+ link_with: ProfileEditorPlugin,
+ include_directories: plugininterfaces_include,
+ dependencies: [ dep_qt5 ]),
+ args: [ '-platform', 'offscreen' ],
+ env: 'autoclose=1',
+ suite: 'ProfileEdtitorPlugin'
+)
+
+test('load', poi_plugin_loader, suite: 'ProfileEditorPlugin', args: ProfileEditorPlugin.full_path())