Basic infrastructure for test tools to check that things are working
This commit is contained in:
parent
f088eb6948
commit
9a3fd3819f
6 changed files with 130 additions and 1 deletions
13
src/libdanbooru/tests/test_apis.cpp
Normal file
13
src/libdanbooru/tests/test_apis.cpp
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue