diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-04-14 22:09:01 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-04-21 20:14:56 +0300 |
commit | 68da62a64cd65a8b28dcfe61b2174e55a47b7517 (patch) | |
tree | c7058ef19c30c86c0d1626c3fcb691b944f02e02 /staging/adblock/meson.build | |
parent | Add tests for MatcherRule and RegexRule (diff) | |
download | smolbote-68da62a64cd65a8b28dcfe61b2174e55a47b7517.tar.xz |
Add some FilterList tests
Diffstat (limited to 'staging/adblock/meson.build')
-rw-r--r-- | staging/adblock/meson.build | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/staging/adblock/meson.build b/staging/adblock/meson.build index 972b7cf..f0a0e07 100644 --- a/staging/adblock/meson.build +++ b/staging/adblock/meson.build @@ -4,20 +4,27 @@ lib_adblockfilter = static_library('adblockfilter', dependencies: [ dep_qt5 ] ) -AdblockPlusFilterPlugin = shared_library('AdblockPlusPlugin', - [ 'plugin/plugin.cpp', - mod_qt5.preprocess(include_directories: smolbote_interfaces, - moc_headers: 'plugin/plugin.h', dependencies: dep_qt5) - ], - include_directories: smolbote_interfaces, +#AdblockPlusFilterPlugin = shared_library('AdblockPlusPlugin', +# [ 'plugin/plugin.cpp', +# mod_qt5.preprocess(include_directories: smolbote_interfaces, +# moc_headers: 'plugin/plugin.h', dependencies: dep_qt5) +# ], +# include_directories: smolbote_interfaces, +# link_with: lib_adblockfilter, +# dependencies: dep_qt5, +# install: true, +# install_dir: get_option('libdir')/'smolbote/plugins' +#) + +test('adblock: rule', executable('libadblockfilter_rule', + sources: 'test/rule.cpp', link_with: lib_adblockfilter, - dependencies: dep_qt5, - install: true, - install_dir: get_option('libdir')/'smolbote/plugins' -) + dependencies: [ dep_qt5, dep_catch ] +)) -test('filter: adblock format rules', executable('libadblockfilter_rules', - sources: 'test/rules.cpp', +test('adblock: filterlist', executable('libadblockfilter_filterlist', + sources: 'test/filterlist.cpp', + include_directories: smolbote_interfaces, link_with: lib_adblockfilter, dependencies: [ dep_qt5, dep_catch ] )) |