mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-05-06 06:29:35 +00:00
support of all tests
This commit is contained in:
parent
7a3ebb003d
commit
102bbd6909
@ -17,11 +17,7 @@ CONFIG += ordered
|
||||
tests/TestQtWidgets \
|
||||
tests/TestQMLWidgets
|
||||
|
||||
|
||||
contains(DEFINES, WITH_ALL_TESTS) {
|
||||
SUBDIRS += tests/quicknanobrowser
|
||||
}
|
||||
|
||||
unix:SUBDIRS += tests/quicknanobrowser
|
||||
|
||||
contains(DEFINES, WITHOUT_TESTS) {
|
||||
SUBDIRS -= UnitTests \
|
||||
|
@ -149,7 +149,8 @@ QSet<QString> ModulesQt514::qtWebEngine()
|
||||
"./" + DISTRO_DIR + "/qml/QtQml/WorkerScript.2/libworkerscriptplugin.so",
|
||||
"./" + DISTRO_DIR + "/qml/QtQml/WorkerScript.2/plugins.qmltypes",
|
||||
"./" + DISTRO_DIR + "/qml/QtQml/WorkerScript.2/qmldir",
|
||||
"./" + DISTRO_DIR + "/qml/QtQml/libqmlplugin.so"
|
||||
"./" + DISTRO_DIR + "/qml/QtQml/libqmlplugin.so",
|
||||
"./" + DISTRO_DIR + "/translations/qtwebengine_ca.qm"
|
||||
});
|
||||
#endif
|
||||
return res;
|
||||
|
@ -474,8 +474,6 @@ void deploytest::testMSVC() {
|
||||
void deploytest::testEmptyParamsString() {
|
||||
TestUtils utils;
|
||||
|
||||
#ifdef WITH_ALL_TESTS
|
||||
|
||||
QDir("./" + DISTRO_DIR).removeRecursively();
|
||||
|
||||
auto comapareTree = Modules::testEmptyParamsTree();
|
||||
@ -496,28 +494,17 @@ void deploytest::testEmptyParamsString() {
|
||||
comapareTree = utils.createTree({});
|
||||
|
||||
runTestParams({"clear", "-targetDir", "./testDeployDir"}, &comapareTree);
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
void deploytest::testWebEngine() {
|
||||
#ifdef WITH_ALL_TESTS
|
||||
#ifdef Q_OS_UNIX
|
||||
TestUtils utils;
|
||||
|
||||
|
||||
#ifdef Q_OS_UNIX
|
||||
QString bin = TestBinDir + "quicknanobrowser";
|
||||
QString qmake = TestQtDir + "bin/qmake";
|
||||
|
||||
#else
|
||||
QString bin = TestBinDir + "quicknanobrowser.exe";
|
||||
QString qmake = TestQtDir + "bin/qmake.exe";
|
||||
|
||||
#endif
|
||||
|
||||
auto comapareTree = Modules::qtWebEngine();
|
||||
|
||||
|
||||
runTestParams({"-bin", bin, "clear" ,
|
||||
"-qmake", qmake,
|
||||
"-qmlDir", TestBinDir + "/../quicknanobrowser"}, &comapareTree);
|
||||
@ -1141,7 +1128,7 @@ void deploytest::testBinDir() {
|
||||
"./" + DISTRO_DIR + "/qt.conf"});
|
||||
#endif
|
||||
|
||||
#ifdef WITH_ALL_TESTS
|
||||
#ifdef Q_OS_UNIX
|
||||
comapareTree += utils.createTree(
|
||||
{"./" + DISTRO_DIR + "/bin/quicknanobrowser",
|
||||
"./" + DISTRO_DIR + "/quicknanobrowser.sh"});
|
||||
@ -1176,7 +1163,7 @@ void deploytest::testConfFile() {
|
||||
"./" + DISTRO_DIR + "/TestQMLWidgets.exe"});
|
||||
#endif
|
||||
|
||||
#ifdef WITH_ALL_TESTS
|
||||
#ifdef Q_OS_UNIX
|
||||
comapareTree += utils.createTree(
|
||||
{"./" + DISTRO_DIR + "/bin/quicknanobrowser",
|
||||
"./" + DISTRO_DIR + "/quicknanobrowser.sh"});
|
||||
|
Loading…
x
Reference in New Issue
Block a user