diff options
Diffstat (limited to 'Tests/QtAutogen/complex/resourcetester.cpp')
-rw-r--r-- | Tests/QtAutogen/complex/resourcetester.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Tests/QtAutogen/complex/resourcetester.cpp b/Tests/QtAutogen/complex/resourcetester.cpp new file mode 100644 index 0000000..4ecb6b4 --- /dev/null +++ b/Tests/QtAutogen/complex/resourcetester.cpp @@ -0,0 +1,26 @@ + +#include "resourcetester.h" + +#include <QApplication> +#include <QDebug> +#include <QFile> +#include <QTimer> + +ResourceTester::ResourceTester(QObject* parent) + : QObject(parent) +{ +} + +void ResourceTester::doTest() +{ + if (!QFile::exists(":/CMakeLists.txt")) + qApp->exit(EXIT_FAILURE); + if (!QFile::exists(":/main.cpp")) + qApp->exit(EXIT_FAILURE); +#ifdef TEST_DEBUG_CLASS + if (!QFile::exists(":/debug_class.ui")) + qApp->exit(EXIT_FAILURE); +#endif + + QTimer::singleShot(0, qApp, SLOT(quit())); +} |