//# //# Copyright (C) 2020-2024 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 "trtest.h" #include #include #include #include #include void TrTest::test() { TestUtils utils; #ifdef Q_OS_UNIX QString bin = TestBinDir + "TestOnlyC"; #else QString bin = TestBinDir + "TestOnlyC.exe"; #endif runTestParams({"-bin", bin, "clear" , "-tr", ":/testResurces/testRes/TestTr.qm",}); QVERIFY(QFile::exists("./" + DISTRO_DIR + "/translations/TestTr.qm")); runTestParams({"-bin", bin, "clear" , "-tr", ":/testResurces/testRes/"}); QVERIFY(QFile::exists("./" + DISTRO_DIR + "/translations/TestTr.qm")); }