summaryrefslogtreecommitdiff
path: root/tests/auto/blackbox/tst_blackboxqt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/blackbox/tst_blackboxqt.cpp')
-rw-r--r--tests/auto/blackbox/tst_blackboxqt.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/blackbox/tst_blackboxqt.cpp b/tests/auto/blackbox/tst_blackboxqt.cpp
index 501991a03..c21924b25 100644
--- a/tests/auto/blackbox/tst_blackboxqt.cpp
+++ b/tests/auto/blackbox/tst_blackboxqt.cpp
@@ -259,6 +259,18 @@ void TestBlackboxQt::qtKeywords()
QCOMPARE(runQbs(params), 0);
}
+void TestBlackboxQt::quickCompiler()
+{
+ QDir::setCurrent(testDataDir + "/quick-compiler");
+ QCOMPARE(runQbs(), 0);
+ const bool hasCompiler = m_qbsStdout.contains("compiler available");
+ const bool doesNotHaveCompiler = m_qbsStdout.contains("compiler not available");
+ QVERIFY2(hasCompiler || doesNotHaveCompiler, m_qbsStdout.constData());
+ QCOMPARE(m_qbsStdout.contains("compiling test_qml.cpp"), hasCompiler);
+ if (doesNotHaveCompiler)
+ QSKIP("qtquickcompiler not available");
+}
+
void TestBlackboxQt::qtScxml()
{
QDir::setCurrent(testDataDir + "/qtscxml");