From 992a1b3d2653ed527c2a301f80140bc35d84e832 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 2 Jan 2023 19:59:41 +0100 Subject: Switch from ImageMagick to GraphicsMagick for deterministic data; added tests --- tests/test-compiledsql.cpp | 57 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 tests/test-compiledsql.cpp (limited to 'tests/test-compiledsql.cpp') diff --git a/tests/test-compiledsql.cpp b/tests/test-compiledsql.cpp new file mode 100644 index 0000000..4fe29e0 --- /dev/null +++ b/tests/test-compiledsql.cpp @@ -0,0 +1,57 @@ +#include + +#include +#include +#include +#include + +#include "libreichwein/file.h" + +#include "config.h" +#include "storage.h" +#include "whiteboard.h" + +namespace fs = std::filesystem; + +namespace { + const std::string testConfigFilename{"./test.conf"}; + const std::string testDbFilename{"./whiteboard.db3"}; +} + +class CompiledSQLTest: public ::testing::Test +{ +protected: + CompiledSQLTest(){ + } + + ~CompiledSQLTest() override{ + } + + void SetUp() override + { + File::setFile(testConfigFilename, R"CONFIG( + + . + 2592000 + +)CONFIG"); + std::error_code ec; + fs::remove(testDbFilename, ec); + + m_config = std::make_shared(testConfigFilename); + } + + void TearDown() override + { + std::error_code ec; + fs::remove(testDbFilename, ec); + fs::remove(testConfigFilename, ec); + } + + std::shared_ptr m_config; +}; + +TEST_F(CompiledSQLTest, connection) +{ +} + -- cgit v1.2.3