aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/blackbox/testdata')
-rw-r--r--tests/auto/blackbox/testdata/appWithoutSources/a.cpp1
-rw-r--r--tests/auto/blackbox/testdata/appWithoutSources/b.cpp10
-rw-r--r--tests/auto/blackbox/testdata/appWithoutSources/project.qbs30
3 files changed, 41 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/appWithoutSources/a.cpp b/tests/auto/blackbox/testdata/appWithoutSources/a.cpp
new file mode 100644
index 000000000..bf7759e11
--- /dev/null
+++ b/tests/auto/blackbox/testdata/appWithoutSources/a.cpp
@@ -0,0 +1 @@
+int foo() { return 42; }
diff --git a/tests/auto/blackbox/testdata/appWithoutSources/b.cpp b/tests/auto/blackbox/testdata/appWithoutSources/b.cpp
new file mode 100644
index 000000000..76c93685d
--- /dev/null
+++ b/tests/auto/blackbox/testdata/appWithoutSources/b.cpp
@@ -0,0 +1,10 @@
+#include <cstdio>
+
+int foo(); // defined in a.cpp
+
+int main()
+{
+ printf("The answer is %d.\n", foo());
+ return 0;
+}
+
diff --git a/tests/auto/blackbox/testdata/appWithoutSources/project.qbs b/tests/auto/blackbox/testdata/appWithoutSources/project.qbs
new file mode 100644
index 000000000..983cc9bab
--- /dev/null
+++ b/tests/auto/blackbox/testdata/appWithoutSources/project.qbs
@@ -0,0 +1,30 @@
+import qbs 1.0
+
+Project {
+ StaticLibrary {
+ name: "a"
+
+ Depends { name: "cpp" }
+
+ files: [
+ "a.cpp",
+ ]
+ }
+
+ StaticLibrary {
+ name: "b"
+
+ Depends { name: "a" }
+ Depends { name: "cpp" }
+
+ files: [
+ "b.cpp",
+ ]
+ }
+
+ CppApplication {
+ name: "appWithoutSources"
+ Depends { name: "a" }
+ Depends { name: "b" }
+ }
+}