Tests: Fix DB.

This commit is contained in:
Nodir Temirkhodjaev 2019-03-30 14:25:25 +05:00
parent a6c256c2b0
commit bd21d481b2
5 changed files with 20 additions and 9 deletions

View File

@ -2,4 +2,4 @@
#include "test.h"
QTEST_APPLESS_MAIN(Test)
QTEST_MAIN(Test)

View File

@ -28,4 +28,9 @@ HEADERS += \
$$UIPATH/util/fileutil.h \
$$UIPATH/util/net/netutil.h
include($$UIPATH/db/sqlite/sqlite.pri)
# Database Migrations
RESOURCES += $$UIPATH/db/migrations.qrc
# 3rd party integrations
CONFIG += sqlite
include($$UIPATH/3rdparty/3rdparty.pri)

View File

@ -5,11 +5,11 @@
#include "commontest.h"
#include "db/databasemanager.h"
#include "db/quotamanager.h"
#include "db/sqlite/sqlitedb.h"
#include "db/sqlite/sqlitestmt.h"
#include "fortsettings.h"
#include "util/dateutil.h"
#include "util/fileutil.h"
#include <sqlite/sqlitedb.h>
#include <sqlite/sqlitestmt.h>
void Test::dbWriteRead()
{
@ -21,9 +21,9 @@ void Test::dbWriteRead()
QVERIFY(databaseManager.initialize());
const QStringList appPaths = QStringList()
<< "C:\test\test.exe"
<< "C:\test\test2.exe"
<< "C:\test\test3.exe";
<< "C:\\test\\test.exe"
<< "C:\\test\\test2.exe"
<< "C:\\test\\test3.exe";
const quint16 procCount = 3;
QCOMPARE(int(procCount), appPaths.size());

View File

@ -1,4 +1,9 @@
include (qcustomplot/qcustomplot.pri)
include (sqlite/sqlite.pri)
qcustomplot {
include (qcustomplot/qcustomplot.pri)
}
sqlite {
include (sqlite/sqlite.pri)
}
INCLUDEPATH += $$PWD

View File

@ -186,4 +186,5 @@ installer_build {
}
# 3rd party integrations
CONFIG += qcustomplot sqlite
include(3rdparty/3rdparty.pri)