CQtDeployer/tests/units/testbase.h

46 lines
1.1 KiB
C
Raw Permalink Normal View History

2022-08-09 00:03:17 +03:00
#ifndef TESTBASE_H
#define TESTBASE_H
#include "deploy.h"
#include "test.h"
#include <QString>
#include <deployconfig.h>
2022-08-25 23:44:52 +03:00
#include <qaservice.h>
2022-08-09 00:03:17 +03:00
2022-08-25 23:44:52 +03:00
class FilesTreeService: public QSet<QString>, public QuasarAppUtils::Service<FilesTreeService>{};
2022-08-09 00:03:17 +03:00
class TestBase: public Test
{
public:
TestBase();
2024-03-06 10:13:37 +01:00
virtual QString testName() const;
2022-08-09 00:03:17 +03:00
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 = {});
2022-08-13 20:34:51 +03:00
static const QString TestBinDir;
static const QString TestQtDir;
2022-08-09 00:03:17 +03:00
};
#endif // TESTBASE_H