diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-04-17 18:08:31 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-04-21 20:14:57 +0300 |
commit | a88921e71b7832216dedff7d2feba902390f23e5 (patch) | |
tree | 7d862d68262109ab61edf44ba2b7bad9dc0ec148 /staging/smolblok/test | |
parent | Parse type options into std::bitset (diff) | |
download | smolbote-a88921e71b7832216dedff7d2feba902390f23e5.tar.xz |
smolblok: rewrite filtermanager
Diffstat (limited to 'staging/smolblok/test')
-rw-r--r-- | staging/smolblok/test/main.cpp | 18 | ||||
-rw-r--r-- | staging/smolblok/test/sample-filters.txt | 4 |
2 files changed, 22 insertions, 0 deletions
diff --git a/staging/smolblok/test/main.cpp b/staging/smolblok/test/main.cpp new file mode 100644 index 0000000..11f2b80 --- /dev/null +++ b/staging/smolblok/test/main.cpp @@ -0,0 +1,18 @@ +#include "filtermanager.hpp" + +int main(int argc, char **argv) +{ + if(argc != 2) { + qDebug("Usage: %s filters.txt", argv[0]); + return 77; + } + + FilterManager sub; + const auto r = sub.installSubscriptions(argv[1]); + + if(!r.success) { + return 77; + } + + return 0; +} diff --git a/staging/smolblok/test/sample-filters.txt b/staging/smolblok/test/sample-filters.txt new file mode 100644 index 0000000..574501f --- /dev/null +++ b/staging/smolblok/test/sample-filters.txt @@ -0,0 +1,4 @@ +[easylist-noelemhide] +File = easylist_noelemhide.txt +Href = https://easylist-downloads.adblockplus.org/easylist_noelemhide.txt + |