McuSupport: Use legacy implementation for QtMCUs 2.2

New implementation of mcu support plugin is not yet finished
so we should use legacy implementation for QtMCUs 2.2 JSON kits.

Change-Id: I8e6a8b7af2c3b4683bb19a5f05edd6ff5df46e5b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Piotr Mućko
2022-06-02 12:23:27 +02:00
parent 01ceb3a3cb
commit 3b02d7b32a
2 changed files with 4 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ using McuToolChainPackagePtr = QSharedPointer<McuToolChainPackage>;
using McuTargetPtr = QSharedPointer<McuTarget>;
static const QVersionNumber minimalVersion{2, 0, 0};
static const QVersionNumber newVersion{2, 2};
static const QVersionNumber newVersion{2, 3};
using Targets = QList<McuTargetPtr>;
using Packages = QSet<McuPackagePtr>;

View File

@@ -598,8 +598,9 @@ void McuSupportTest::test_twoDotOneUsesLegacyImplementation()
QCOMPARE(McuSupportOptions::isLegacyVersion({2, 0}), true);
QCOMPARE(McuSupportOptions::isLegacyVersion({2, 0, 0}), true);
QCOMPARE(McuSupportOptions::isLegacyVersion({2, 0, 1}), true);
QCOMPARE(McuSupportOptions::isLegacyVersion({2, 2, 0}), false);
QCOMPARE(McuSupportOptions::isLegacyVersion({2, 2, 1}), false);
QCOMPARE(McuSupportOptions::isLegacyVersion({2, 2, 0}), true);
QCOMPARE(McuSupportOptions::isLegacyVersion({2, 2, 1}), true);
QCOMPARE(McuSupportOptions::isLegacyVersion({2, 3, 0}), false);
}
void McuSupportTest::test_useFallbackPathForToolchainWhenPathFromSettingsIsNotAvailable()
{