CQtDeployer/tests/units/qttest.cpp

68 lines
1.6 KiB
C++
Raw Normal View History

2022-08-13 12:36:41 +03:00
//#
//# Copyright (C) 2020-2022 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#include "qttest.h"
2022-08-13 20:34:51 +03:00
#include "modules.h"
2022-08-13 12:36:41 +03:00
#include <configparser.h>
#include <dependenciesscanner.h>
#include <filemanager.h>
#include <packing.h>
#include <pluginsparser.h>
void QtTest::test() {
TestUtils utils;
#ifdef Q_OS_UNIX
QString bin = TestBinDir + "QtWidgetsProject";
QString qmake = TestQtDir + "bin/qmake";
#else
QString bin = TestBinDir + "QtWidgetsProject.exe";
QString qmake = TestQtDir + "bin/qmake.exe";
#endif
auto comapareTree = TestModule.qtLibs();
runTestParams({"-bin", bin, "clear" ,
"-qmake", qmake}, &comapareTree);
2022-10-22 15:01:22 +03:00
// test auto detection of detection qmake from PATH
runTestParams({"-bin", bin, "clear", "noCheckRPATH"}, &comapareTree);
2022-08-13 12:36:41 +03:00
2022-10-22 14:06:39 +03:00
//#ifdef Q_OS_UNIX
// // test auto detection of detection qmake from RPATH
// runTestParams({"-bin", bin, "clear", "noCheckPATH"}, &comapareTree);
//#endif
2022-08-13 12:36:41 +03:00
2022-10-22 14:06:39 +03:00
// comapareTree = TestModule.qtWithoutTr();
2022-08-13 12:36:41 +03:00
2022-10-22 14:06:39 +03:00
// runTestParams({"-bin", bin, "clear" ,
// "-qmake", qmake, "noTranslations"}, &comapareTree);
2022-08-13 12:36:41 +03:00
2022-10-22 13:17:21 +03:00
// comapareTree = TestModule.qmlLibs();
2022-08-13 12:36:41 +03:00
2022-10-22 13:17:21 +03:00
//#ifdef Q_OS_UNIX
// bin = TestBinDir + "TestQMLWidgets";
//#else
// bin = TestBinDir + "TestQMLWidgets.exe";
2022-08-13 12:36:41 +03:00
2022-10-22 13:17:21 +03:00
//#endif
2022-08-13 12:36:41 +03:00
2022-10-22 13:17:21 +03:00
// runTestParams({"-bin", bin, "clear" ,
// "-qmake", qmake,
// "-qmlDir", TestBinDir + "/../TestQMLWidgets"}, &comapareTree);
2022-08-13 12:36:41 +03:00
}