aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/tst_blackbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/blackbox/tst_blackbox.cpp')
-rw-r--r--tests/auto/blackbox/tst_blackbox.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp
index 8fe5f4922..8eed518be 100644
--- a/tests/auto/blackbox/tst_blackbox.cpp
+++ b/tests/auto/blackbox/tst_blackbox.cpp
@@ -2613,6 +2613,18 @@ void TestBlackbox::nestedProperties()
QVERIFY2(m_qbsStdout.contains("value in higherlevel"), m_qbsStdout.constData());
}
+void TestBlackbox::newOutputArtifact()
+{
+ QDir::setCurrent(testDataDir + "/new-output-artifact");
+ QCOMPARE(runQbs(), 0);
+ QVERIFY(regularFileExists(relativeBuildDir() + "/install-root/output_98.out"));
+ const QString the100thArtifact = relativeBuildDir() + "/install-root/output_99.out";
+ QVERIFY(!regularFileExists(the100thArtifact));
+ QbsRunParameters params(QStringList() << "theProduct.artifactCount:100");
+ QCOMPARE(runQbs(params), 0);
+ QVERIFY(regularFileExists(the100thArtifact));
+}
+
void TestBlackbox::nonBrokenFilesInBrokenProduct()
{
QDir::setCurrent(testDataDir + "/non-broken-files-in-broken-product");