Basic infrastructure for test tools to check that things are working

This commit is contained in:
Luca Beltrame 2015-08-23 15:31:18 +02:00
parent f088eb6948
commit 9a3fd3819f
6 changed files with 130 additions and 1 deletions

View file

@ -0,0 +1,13 @@
#include "test_konachan.h"
#include <QApplication>
#include <QTimer>
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
qDebug() << "Starting Konachan API test";
Danbooru::KonachanServiceTest* testSvc = new Danbooru::KonachanServiceTest();
QTimer::singleShot(2000, testSvc, &Danbooru::KonachanServiceTest::testPostService);
app.exec();
}