2013-09-15 16:41:07 +04:00
|
|
|
|
|
|
|
#include "resourcetester.h"
|
|
|
|
|
|
|
|
#include <QApplication>
|
2016-04-29 17:53:13 +03:00
|
|
|
#include <QDebug>
|
2013-09-15 16:41:07 +04:00
|
|
|
#include <QFile>
|
|
|
|
#include <QTimer>
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
ResourceTester::ResourceTester(QObject* parent)
|
2013-09-15 16:41:07 +04:00
|
|
|
: QObject(parent)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void ResourceTester::doTest()
|
|
|
|
{
|
|
|
|
if (!QFile::exists(":/CMakeLists.txt"))
|
2016-05-16 17:34:04 +03:00
|
|
|
qApp->exit(EXIT_FAILURE);
|
2014-03-25 04:16:49 +04:00
|
|
|
if (!QFile::exists(":/main.cpp"))
|
2016-05-16 17:34:04 +03:00
|
|
|
qApp->exit(EXIT_FAILURE);
|
2014-02-13 20:25:00 +04:00
|
|
|
#ifdef TEST_DEBUG_CLASS
|
|
|
|
if (!QFile::exists(":/debug_class.ui"))
|
2016-05-16 17:34:04 +03:00
|
|
|
qApp->exit(EXIT_FAILURE);
|
2014-02-13 20:25:00 +04:00
|
|
|
#endif
|
2013-09-15 16:41:07 +04:00
|
|
|
|
|
|
|
QTimer::singleShot(0, qApp, SLOT(quit()));
|
|
|
|
}
|