aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2012-12-03 12:34:22 +0100
committerChristian Kandeler <christian.kandeler@digia.com>2012-12-03 13:02:04 +0100
commita1d3d727f53874451bb07e66f275969d9b0e9b02 (patch)
treebe8fc2c06737956f1ce178b1e8450c5b0d53f79d
parent8bff8ddd397cf7c7b7d2c5d38b2153c5133d406f (diff)
added autotest for source paths that contain dots
Change-Id: I7700caf482f6dfc2e60e0bb3a0142cd4cd92adbf Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
-rw-r--r--tests/auto/blackbox/testdata/lotsofdots/dotty.matrix.ui21
-rw-r--r--tests/auto/blackbox/testdata/lotsofdots/lots.of.dots.qbs20
-rw-r--r--tests/auto/blackbox/testdata/lotsofdots/m.a.i.n.cpp10
-rw-r--r--tests/auto/blackbox/testdata/lotsofdots/object.narf.cpp7
-rw-r--r--tests/auto/blackbox/testdata/lotsofdots/object.narf.h13
-rw-r--r--tests/auto/blackbox/testdata/lotsofdots/polka.dots.qrc5
-rw-r--r--tests/auto/blackbox/tst_blackbox.cpp4
7 files changed, 80 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/lotsofdots/dotty.matrix.ui b/tests/auto/blackbox/testdata/lotsofdots/dotty.matrix.ui
new file mode 100644
index 000000000..4b7d6a45f
--- /dev/null
+++ b/tests/auto/blackbox/testdata/lotsofdots/dotty.matrix.ui
@@ -0,0 +1,21 @@
+<ui version="4.0" >
+ <author></author>
+ <comment></comment>
+ <exportmacro></exportmacro>
+ <class>Form</class>
+ <widget class="QWidget" name="Form" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>400</width>
+ <height>300</height>
+ </rect>
+ </property>
+ <property name="windowTitle" >
+ <string>Form</string>
+ </property>
+ </widget>
+ <pixmapfunction></pixmapfunction>
+ <connections/>
+</ui>
diff --git a/tests/auto/blackbox/testdata/lotsofdots/lots.of.dots.qbs b/tests/auto/blackbox/testdata/lotsofdots/lots.of.dots.qbs
new file mode 100644
index 000000000..b263fb873
--- /dev/null
+++ b/tests/auto/blackbox/testdata/lotsofdots/lots.of.dots.qbs
@@ -0,0 +1,20 @@
+import qbs.base 1.0
+
+Project {
+ Product {
+ type: "application"
+ name: "lots.of.dots"
+
+// Depends { name: "qt.core" }
+ Depends { name: "qt.gui" }
+
+ files : [
+ "m.a.i.n.cpp",
+ "object.narf.h",
+ "object.narf.cpp",
+ "polka.dots.qrc",
+ "dotty.matrix.ui"
+ ]
+ }
+}
+
diff --git a/tests/auto/blackbox/testdata/lotsofdots/m.a.i.n.cpp b/tests/auto/blackbox/testdata/lotsofdots/m.a.i.n.cpp
new file mode 100644
index 000000000..4975bc680
--- /dev/null
+++ b/tests/auto/blackbox/testdata/lotsofdots/m.a.i.n.cpp
@@ -0,0 +1,10 @@
+#include "object.narf.h"
+#include <ui_dotty.matrix.h>
+#include <cstdio>
+
+int main()
+{
+ ObjectNarf obj;
+ puts("...");
+}
+
diff --git a/tests/auto/blackbox/testdata/lotsofdots/object.narf.cpp b/tests/auto/blackbox/testdata/lotsofdots/object.narf.cpp
new file mode 100644
index 000000000..a8761e53b
--- /dev/null
+++ b/tests/auto/blackbox/testdata/lotsofdots/object.narf.cpp
@@ -0,0 +1,7 @@
+#include "object.narf.h"
+#include <cstdio>
+
+ObjectNarf::ObjectNarf(QObject *parent)
+ : QObject(parent)
+{}
+
diff --git a/tests/auto/blackbox/testdata/lotsofdots/object.narf.h b/tests/auto/blackbox/testdata/lotsofdots/object.narf.h
new file mode 100644
index 000000000..bb1868cc0
--- /dev/null
+++ b/tests/auto/blackbox/testdata/lotsofdots/object.narf.h
@@ -0,0 +1,13 @@
+#ifndef OBJECT_H
+#define OBJECT_H
+#include <QObject>
+
+class ObjectNarf : public QObject
+{
+ Q_OBJECT
+public:
+ ObjectNarf(QObject *parent = 0);
+};
+
+#endif
+
diff --git a/tests/auto/blackbox/testdata/lotsofdots/polka.dots.qrc b/tests/auto/blackbox/testdata/lotsofdots/polka.dots.qrc
new file mode 100644
index 000000000..815b11002
--- /dev/null
+++ b/tests/auto/blackbox/testdata/lotsofdots/polka.dots.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="/bernadotte">
+ <file>m.a.i.n.cpp</file>
+ </qresource>
+</RCC>
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp
index a4038db60..576ac3952 100644
--- a/tests/auto/blackbox/tst_blackbox.cpp
+++ b/tests/auto/blackbox/tst_blackbox.cpp
@@ -163,6 +163,10 @@ void TestBlackbox::build_project_data()
QTest::newRow("BPs in Sources")
<< QString("buildproperties_source")
<< QString(HostOsInfo::appendExecutableSuffix(buildDir + "/HelloWorld"));
+ QTest::newRow("lots of dots")
+ << QString("lotsofdots")
+ << QString(buildDir + QLatin1String("/")
+ + HostOsInfo::appendExecutableSuffix("lots.of.dots"));
QTest::newRow("Qt5 plugin")
<< QString("qt5plugin")
<< QString(buildDir + QLatin1String("/") + HostOsInfo::dynamicLibraryName("echoplugin"));