summaryrefslogtreecommitdiff
path: root/tests/auto/pkgconfig
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/pkgconfig')
-rw-r--r--tests/auto/pkgconfig/tst_pkgconfig.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/pkgconfig/tst_pkgconfig.cpp b/tests/auto/pkgconfig/tst_pkgconfig.cpp
index 1e2ef9e2a..ec62e1a7f 100644
--- a/tests/auto/pkgconfig/tst_pkgconfig.cpp
+++ b/tests/auto/pkgconfig/tst_pkgconfig.cpp
@@ -93,6 +93,7 @@ void TestPkgConfig::pkgConfig()
auto variables = json["Vars"].toMap();
variables["pcfiledir"] = QFileInfo(m_workingDataDir).absoluteFilePath();
+ QCOMPARE(size_t(variables.size()), package.variables.size());
for (const auto &[key, value]: package.variables) {
QCOMPARE(QString::fromStdString(value),
variables.value(QString::fromStdString(key)).toString());
@@ -191,6 +192,10 @@ void TestPkgConfig::pkgConfig_data()
<< QStringLiteral("tilde") << QString() << QVariantMap();
QTest::newRow("variables")
<< QStringLiteral("variables") << QString() << QVariantMap();
+ QTest::newRow("variables-merged")
+ << QStringLiteral("variables")
+ << QString()
+ << QVariantMap({{"mergeDependencies", true}});
QTest::newRow("whitespace")
<< QStringLiteral("whitespace") << QString() << QVariantMap();
QTest::newRow("base.name")