diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2016-12-01 12:06:40 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2016-12-06 11:00:18 +0000 |
commit | 8e2d2afcd38c8e89b8e7c5329ee29e15f4e5d518 (patch) | |
tree | 2f4ab1c7b04d524da77381b03e01fec827b762cb /tests/auto/blackbox/testdata/group-location-warning/subdir | |
parent | d70a44607c142be32677fd8d2435c1e571c65b9f (diff) |
Emit deprecation warnings for relative paths in certain contexts
Namely, for those in groups not located in the same directory as the
product. We will change the base directory to a more sensible one in
1.8, and this patch gives users the chance to adapt in advance.
Change-Id: I3a470b7f0664dc399633292d3f026f9636ca7aad
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata/group-location-warning/subdir')
5 files changed, 29 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/group-location-warning/subdir/AGroupInOtherDir.qbs b/tests/auto/blackbox/testdata/group-location-warning/subdir/AGroupInOtherDir.qbs new file mode 100644 index 000000000..104b389bf --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/subdir/AGroupInOtherDir.qbs @@ -0,0 +1,5 @@ +import qbs + +Group { + files: ["referenced-from-group-in-other-dir.txt"] +} diff --git a/tests/auto/blackbox/testdata/group-location-warning/subdir/AndAnotherGroupInOtherDir.qbs b/tests/auto/blackbox/testdata/group-location-warning/subdir/AndAnotherGroupInOtherDir.qbs new file mode 100644 index 000000000..f122fc396 --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/subdir/AndAnotherGroupInOtherDir.qbs @@ -0,0 +1,6 @@ +import qbs + +Group { + prefix: "./" + files: ["*.wc"] +} diff --git a/tests/auto/blackbox/testdata/group-location-warning/subdir/OtherGroupInOtherDir.qbs b/tests/auto/blackbox/testdata/group-location-warning/subdir/OtherGroupInOtherDir.qbs new file mode 100644 index 000000000..8c51ef2f8 --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/subdir/OtherGroupInOtherDir.qbs @@ -0,0 +1,5 @@ +import qbs + +Group { + files: [product.sourceDirectory + "/referenced-via-absolute-path.txt"] +} diff --git a/tests/auto/blackbox/testdata/group-location-warning/subdir/ParentInOtherDir.qbs b/tests/auto/blackbox/testdata/group-location-warning/subdir/ParentInOtherDir.qbs new file mode 100644 index 000000000..c1458624a --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/subdir/ParentInOtherDir.qbs @@ -0,0 +1,7 @@ +import qbs + +Product { + Group { + files: ["referenced-from-parent-in-other-dir.txt"] + } +} diff --git a/tests/auto/blackbox/testdata/group-location-warning/subdir/YetAnotherGroupInOtherDir.qbs b/tests/auto/blackbox/testdata/group-location-warning/subdir/YetAnotherGroupInOtherDir.qbs new file mode 100644 index 000000000..a3e977682 --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/subdir/YetAnotherGroupInOtherDir.qbs @@ -0,0 +1,6 @@ +import qbs + +Group { + prefix: product.sourceDirectory + '/' + files: ["referenced-via-absolute-prefix.txt"] +} |