aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/probeProperties/probeProperties.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/blackbox/testdata/probeProperties/probeProperties.qbs')
-rw-r--r--tests/auto/blackbox/testdata/probeProperties/probeProperties.qbs30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/probeProperties/probeProperties.qbs b/tests/auto/blackbox/testdata/probeProperties/probeProperties.qbs
new file mode 100644
index 000000000..36842e40b
--- /dev/null
+++ b/tests/auto/blackbox/testdata/probeProperties/probeProperties.qbs
@@ -0,0 +1,30 @@
+import qbs
+import qbs.Probes
+
+CppApplication {
+ Probes.PathProbe {
+ id: probe1
+ names: ["bin/tool"]
+ platformPaths: [product.sourceDirectory]
+ }
+
+ Probes.PathProbe {
+ id: probe2
+ names: ["tool"]
+ platformPaths: [product.sourceDirectory + "/bin"]
+ }
+
+ targetName: {
+ console.info("probe1.fileName=" + probe1.fileName);
+ console.info("probe1.path=" + probe1.path);
+ console.info("probe1.filePath=" + probe1.filePath);
+
+ console.info("probe2.fileName=" + probe2.fileName);
+ console.info("probe2.path=" + probe2.path);
+ console.info("probe2.filePath=" + probe2.filePath);
+
+ return name;
+ }
+
+ files: ["main.c"]
+}