mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-27 10:14:32 +00:00
46 lines
1.1 KiB
C++
46 lines
1.1 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();
|
|
|
|
virtual QString testName() const;
|
|
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
|