diff options
Diffstat (limited to 'test')
| l--------- | test/bookmarks.xbel | 1 | ||||
| -rw-r--r-- | test/config/config.qrc | 5 | ||||
| -rw-r--r-- | test/config/main.cpp | 28 | ||||
| -rw-r--r-- | test/config/poi.cfg | 1 | ||||
| -rw-r--r-- | test/filter.json | 15 | ||||
| l--------- | test/poi.conf | 1 | ||||
| -rw-r--r-- | test/test.qbs | 38 | 
7 files changed, 0 insertions, 89 deletions
diff --git a/test/bookmarks.xbel b/test/bookmarks.xbel deleted file mode 120000 index 8644c64..0000000 --- a/test/bookmarks.xbel +++ /dev/null @@ -1 +0,0 @@ -../data/bookmarks.xbel
\ No newline at end of file diff --git a/test/config/config.qrc b/test/config/config.qrc deleted file mode 100644 index ab60a1b..0000000 --- a/test/config/config.qrc +++ /dev/null @@ -1,5 +0,0 @@ -<RCC> -    <qresource prefix="/"> -        <file>poi.cfg</file> -    </qresource> -</RCC> diff --git a/test/config/main.cpp b/test/config/main.cpp deleted file mode 100644 index 7be84d0..0000000 --- a/test/config/main.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of smolbote. It's copyrighted by the contributors recorded - * in the version control history of the file, available from its original - * location: git://neueland.iserlohn-fortress.net/smolbote.git - *  - * SPDX-License-Identifier: GPL-3.0 - */ - -#include <iostream> -#include "settings/configuration.h" - -#include <QFile> - -int main(int argc, char** argv) -{ -    Configuration *settings = new Configuration(); - -    // Use QFile so we can easily access qrc: -    QFile defaultCfg(":/poi.cfg"); -    defaultCfg.open(QIODevice::ReadOnly); - -    std::cout << "UserCfg: " << (settings->readUserConfiguration("file.cfg") ? "true" : "false") << std::endl; -    std::cout << "DefaultCfg: " << (settings->readDefaultConfiguration(defaultCfg.readAll().toStdString()) ? "true" : "false") << std::endl; - -    std::cout << "test = " << settings->value<std::string>("test").value_or("unknown") << std::endl; - -    return 0; -} diff --git a/test/config/poi.cfg b/test/config/poi.cfg deleted file mode 100644 index 5fd6f29..0000000 --- a/test/config/poi.cfg +++ /dev/null @@ -1 +0,0 @@ -test = "value";  diff --git a/test/filter.json b/test/filter.json deleted file mode 100644 index d52efe7..0000000 --- a/test/filter.json +++ /dev/null @@ -1,15 +0,0 @@ -{ -    "name": "Poi Test Filter List", -    "url": "https://neueland.iserlohn-fortress.net/filter.json", -    "rules": { -        "": { -            "google-analytics.com": true, -            "js-agent.newrelic.com": true, -            "js": true -        }, -        "duckduckgo.com": { -            "css": false, -            "js": false -        } -    } -} diff --git a/test/poi.conf b/test/poi.conf deleted file mode 120000 index a713f73..0000000 --- a/test/poi.conf +++ /dev/null @@ -1 +0,0 @@ -../data/poi.toml
\ No newline at end of file diff --git a/test/test.qbs b/test/test.qbs deleted file mode 100644 index 3088a90..0000000 --- a/test/test.qbs +++ /dev/null @@ -1,38 +0,0 @@ -import qbs -import qbs.Probes - -Project { -    name: "Tests" -     -    Probes.PkgConfigProbe { -        id: libconfig -        name: "libconfig++" -    } - -    // References aren't needed because test.qbs is the last reference in smolbote.qbs -//    references: [ -//        "../lib/settings/settings.qbs" -//    ] - -    CppApplication { -        name: "configtest" -         -        cpp.includePaths: ['../lib'] -        cpp.cxxLanguageVersion: "c++17" -        cpp.cxxFlags: libconfig.cflags -        cpp.linkerFlags: libconfig.libs -         -        Depends { -            name: "Qt" -            versionAtLeast: "5.9.0" -            submodules: ["core"] -        } -        Depends { name: "settings" } -         -        files: [ -            "config/config.qrc", -            "config/main.cpp", -        ] -         -    } -}  | 
