aboutsummaryrefslogtreecommitdiff
path: root/test/config/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/config/main.cpp')
-rw-r--r--test/config/main.cpp28
1 files changed, 0 insertions, 28 deletions
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;
-}