diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2020-08-03 23:03:54 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2020-08-04 16:38:50 +0000 |
commit | 1428a3f8f08759239d30fc92337d83c7b0b94305 (patch) | |
tree | 0df3c3bf44f7d2618a2348f5ee33d02ae8049b92 /tests/auto/blackbox/tst_blackboxbaremetal.cpp | |
parent | ec3181bb83f223b18b029d5776f427a3019f2381 (diff) |
baremetal: Add new 'external-static-libraries' test
This test checks the cpp.libraryPaths and the cpp.staticLibraries
properties.
This test excluded for the KEIL C51/C251/C166 toolchains,
because this toolchains has not the options to specify the
library search paths:
* https://www.keil.com/support/docs/1298.htm
Change-Id: I17b5dc64ae3baacb32621b359863ba42c908d416
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'tests/auto/blackbox/tst_blackboxbaremetal.cpp')
-rw-r--r-- | tests/auto/blackbox/tst_blackboxbaremetal.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/blackbox/tst_blackboxbaremetal.cpp b/tests/auto/blackbox/tst_blackboxbaremetal.cpp index ba71ae954..99b86b930 100644 --- a/tests/auto/blackbox/tst_blackboxbaremetal.cpp +++ b/tests/auto/blackbox/tst_blackboxbaremetal.cpp @@ -107,6 +107,21 @@ void TestBlackboxBareMetal::staticLibraryDependencies() QVERIFY(output.contains("lib-e")); } +void TestBlackboxBareMetal::externalStaticLibraries() +{ + QDir::setCurrent(testDataDir + "/external-static-libraries"); + QCOMPARE(runQbs(QbsRunParameters("resolve", QStringList("-n"))), 0); + if (!m_qbsStdout.contains("unsupported toolset:")) { + QCOMPARE(runQbs(), 0); + } else { + QByteArray toolchain; + QByteArray architecture; + extractUnsupportedToolset(m_qbsStdout, toolchain, architecture); + QSKIP("Unsupported toolchain '" + toolchain + + "' for architecture '" + architecture + "'"); + } +} + void TestBlackboxBareMetal::userIncludePaths() { QDir::setCurrent(testDataDir + "/user-include-paths"); |