Add sqliteversion test

This commit is contained in:
def 2021-11-26 11:13:31 +01:00
parent 3a2850b7f7
commit 41910ff5fd

View file

@ -4,7 +4,8 @@
#include <engine/server/databases/connection.h> #include <engine/server/databases/connection.h>
#include <engine/shared/config.h> #include <engine/shared/config.h>
#include <game/server/scoreworker.h> #include <game/server/scoreworker.h>
#include <iostream>
#include <sqlite3.h>
char *CSaveTeam::GetString() char *CSaveTeam::GetString()
{ {
@ -37,6 +38,11 @@ protected:
char aError[256] = {}; char aError[256] = {};
}; };
TEST_F(Score, SQLiteVersion)
{
ASSERT_GE(sqlite3_libversion_number(), 3025000) << "SQLite >= 3.25.0 required for Window functions";
}
TEST_F(Score, SaveScore) TEST_F(Score, SaveScore)
{ {
ASSERT_FALSE(conn->Connect(aError, sizeof(aError))) << aError; ASSERT_FALSE(conn->Connect(aError, sizeof(aError))) << aError;