SmtpClient-for-Qt/test/main.cpp

27 lines
506 B
C++
Raw Normal View History

#include <QCoreApplication>
#include <QtTest/QTest>
#include <QDebug>
#include "connectiontest.h"
bool success = true;
static void runTest(QObject *test, int argc, char** argv) {
int retVal = QTest::qExec(test, argc, argv);
2013-02-10 13:41:39 +00:00
delete test;
success &= retVal == 0;
}
int main(int argc, char *argv[])
{
2013-02-10 13:40:10 +00:00
QCoreApplication a(argc, argv);
runTest(new ConnectionTest(), argc, argv);
if (success)
qDebug() << "SUCCESS";
else
qDebug() << "FAIL";
return success;
}