mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-05-06 06:29:35 +00:00
added new test for qmake
This commit is contained in:
parent
b1cacbfe2d
commit
dda08c049c
UnitTests
@ -20,6 +20,10 @@ include('$$PWD/../Deploy/Deploy.pri')
|
||||
include('$$PWD/../pe/pe-parser-library/pe-parser-library.pri')
|
||||
|
||||
|
||||
QT_DIR = $$dirname(QMAKE_QMAKE)/../../
|
||||
message(QT_DIR $$QT_DIR)
|
||||
DEFINES+=QT_BASE_DIR='\\"$$QT_DIR\\"'
|
||||
|
||||
CONFIG += qt console warn_on depend_includepath testcase
|
||||
CONFIG -= app_bundle
|
||||
|
||||
|
@ -48,6 +48,9 @@ private slots:
|
||||
void testQmlExtract();
|
||||
|
||||
void mainTestOnlyC();
|
||||
void mainTestQMake();
|
||||
void mainTestQML();
|
||||
|
||||
};
|
||||
|
||||
deploytest::deploytest(){}
|
||||
@ -357,6 +360,34 @@ void deploytest::mainTestOnlyC()
|
||||
#endif
|
||||
}
|
||||
|
||||
void deploytest::mainTestQMake() {
|
||||
#ifdef WITH_ALL_TESTS
|
||||
|
||||
QString QtDir = QT_BASE_DIR;
|
||||
|
||||
|
||||
int argc = 3;
|
||||
const char * argv[] = {"./",
|
||||
"-bin", "./../../../tests/build/TestOnlyC"};
|
||||
|
||||
QVERIFY(QuasarAppUtils::Params::parseParams(argc, argv));
|
||||
|
||||
Deploy deploy;
|
||||
|
||||
QVERIFY(DeployUtils::parseQt(&deploy));
|
||||
|
||||
deploy.deploy();
|
||||
|
||||
QDir info("./Distro");
|
||||
QVERIFY(info.removeRecursively());
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
void deploytest::mainTestQML() {
|
||||
|
||||
}
|
||||
|
||||
void deploytest::testTranslations() {
|
||||
QStringList trList = {
|
||||
("./test/QtDir/translations/qtbase_ru.qm"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user