aboutsummaryrefslogtreecommitdiff
path: root/staging/smolblok/test/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'staging/smolblok/test/main.cpp')
-rw-r--r--staging/smolblok/test/main.cpp18
1 files changed, 18 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;
+}