CQtDeployer/tests/units/testbase.h
EndrII 99c03a50c8
Some checks failed
buildbot/AndroidBuilder_v8 Build finished.
buildbot/WindowsBuilder Build finished.
buildbot/WindowsCMakeBuilder Build finished.
buildbot/LinuxCMakeBuilderQt6 Build finished.
buildbot/IOSCMakeBuilder Build finished.
simple fixes
2022-08-25 23:44:52 +03:00

45 lines
1.0 KiB
C++

#ifndef TESTBASE_H
#define TESTBASE_H
#include "deploy.h"
#include "test.h"
#include <QString>
#include <deployconfig.h>
#include <qaservice.h>
class FilesTreeService: public QSet<QString>, public QuasarAppUtils::Service<FilesTreeService>{};
class TestBase: public Test
{
public:
TestBase();
void deploytest();
int generateLib(const QString &paath);
void deleteLib(const QString &paath);
void initTestCase();
void cleanupTestCase();
void checkResults(const QSet<QString> &tree,
bool noWarnings,
bool onlySize);
void costomScript();
void runTestParams(QStringList list,
QSet<QString> *tree = nullptr,
bool noWarnings = false,
bool onlySize = false,
exitCodes exitCode = exitCodes::Good,
const std::function<void (const DeployConfig *)> &cb = {});
static const QString TestBinDir;
static const QString TestQtDir;
};
#endif // TESTBASE_H