4
1
mirror of https://github.com/QuasarApp/CQtDeployer.git synced 2025-05-05 22:19:36 +00:00

ref fixed the testCheckQt method

This commit is contained in:
Andrei Yankovich 2020-10-14 15:55:13 +03:00
parent 2b243d2e3e
commit fecccc8076

@ -847,8 +847,8 @@ void deploytest::testCheckQt() {
{TestQtDir + "/", false},
{TestQtDir + "", false},
{TestQtDir + "/bin/file1", false},
{TestQtDir + "/lib/file12", false},
{TestQtDir + "/resurces/file13", false},
{TestQtDir + "/lib/file12.so", false},
{TestQtDir + "/resurces/file13.dll", false},
{TestQtDir + "/libexec/f", false},
{TestQtDir + "/mkspecs", false},
{TestQtDir + "/qml", false},
@ -860,8 +860,8 @@ void deploytest::testCheckQt() {
{TestQtDir + "\\bin\\file1", false},
{TestQtDir + "\\lib\\file12", false},
{TestQtDir + "\\resurces\\file13", false},
{TestQtDir + "\\libexec\\f", false},
{TestQtDir + "\\mkspecs", false},
{TestQtDir + "\\libexec\\f.so", false},
{TestQtDir + "\\mkspecs.dll", false},
{TestQtDir + "\\qml", false},
{TestQtDir + "\\plugins", false},
{TestQtDir + "\\file", false},
@ -892,30 +892,34 @@ void deploytest::testCheckQt() {
cases = QList<QPair<QString, bool>>{
{TestQtDir + "/", false},
{TestQtDir + "", false},
{TestQtDir + "/bin/file1", true},
{TestQtDir + "/lib/file12", true},
{TestQtDir + "/resources/file13", true},
{TestQtDir + "/libexec/f", true},
{TestQtDir + "/bin/file1", false},
{TestQtDir + "/lib/file12", false},
{TestQtDir + "/bin/file1Qt.so", true},
{TestQtDir + "/lib/file12", false},
{TestQtDir + "/resources/Qtfile13.so", true},
{TestQtDir + "/libexec/Qtf.dll", true},
{TestQtDir + "/mkspecs", false},
{TestQtDir + "/qml", true},
{TestQtDir + "/plugins", true},
{TestQtDir + "/qml", false},
{TestQtDir + "/plugins", false},
{TestQtDir + "/file", false},
{TestQtDir + "\\", false},
{TestQtDir + "", false},
{TestQtDir + "\\bin\\file1", true},
{TestQtDir + "\\lib\\file12", true},
{TestQtDir + "\\resources\\file13", true},
{TestQtDir + "\\libexec\\f", true},
{TestQtDir + "\\bin\\Qtfile1.dll", true},
{TestQtDir + "\\lib\\file12", false},
{TestQtDir + "\\resources\\fileQt13.dll", true},
{TestQtDir + "\\libexec\\fQt", false},
{TestQtDir + "\\mkspecs", false},
{TestQtDir + "\\qml", true},
{TestQtDir + "\\plugins", true},
{TestQtDir + "\\qml", false},
{TestQtDir + "\\plugins", false},
{TestQtDir + "\\file", false},
};
for (const auto &i: cases) {
QVERIFY(DeployCore::isQtLib(i.first) == i.second);
auto dexription = QString("The isQtLib(%0) function should be return %1").arg(
i.first).arg(i.second);
QVERIFY2(DeployCore::isQtLib(i.first) == i.second, dexription.toLatin1().data());
}
delete deployer;