diff options
Diffstat (limited to 'tests/auto/blackbox/testdata')
16 files changed, 68 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/group-location-warning/GroupInSameDir.qbs b/tests/auto/blackbox/testdata/group-location-warning/GroupInSameDir.qbs new file mode 100644 index 000000000..bfcc47891 --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/GroupInSameDir.qbs @@ -0,0 +1,5 @@ +import qbs + +Group { + files: ["referenced-from-group-in-same-dir.txt"] +} diff --git a/tests/auto/blackbox/testdata/group-location-warning/group-location-warning.qbs b/tests/auto/blackbox/testdata/group-location-warning/group-location-warning.qbs new file mode 100644 index 000000000..3a43d54ab --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/group-location-warning.qbs @@ -0,0 +1,27 @@ +import qbs +import "subdir/ParentInOtherDir.qbs" as ParentInOtherDir +import "subdir/AGroupInOtherDir.qbs" as AGroupInOtherDir +import "subdir/OtherGroupInOtherDir.qbs" as OtherGroupInOtherDir +import "subdir/YetAnotherGroupInOtherDir.qbs" as YetAnotherGroupInOtherDir +import "subdir/AndAnotherGroupInOtherDir.qbs" as AndAnotherGroupInOtherDir + +Project { + ParentInOtherDir { + name: "p1" + Depends { name: "gm" } + + Group { + files: ["referenced-from-product.txt"] + } + GroupInSameDir { } + AGroupInOtherDir { } + OtherGroupInOtherDir { } + YetAnotherGroupInOtherDir { } + AndAnotherGroupInOtherDir { } + } + + Product { + name: "p2" + AGroupInOtherDir { } + } +} diff --git a/tests/auto/blackbox/testdata/group-location-warning/modules/gm/gm.qbs b/tests/auto/blackbox/testdata/group-location-warning/modules/gm/gm.qbs new file mode 100644 index 000000000..8bdbbaf5b --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/modules/gm/gm.qbs @@ -0,0 +1,7 @@ +import qbs + +Module { + Group { + files: ["referenced-from-module.txt"] + } +} diff --git a/tests/auto/blackbox/testdata/group-location-warning/referenced-from-group-in-other-dir-via-wildcard.wc b/tests/auto/blackbox/testdata/group-location-warning/referenced-from-group-in-other-dir-via-wildcard.wc new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/referenced-from-group-in-other-dir-via-wildcard.wc diff --git a/tests/auto/blackbox/testdata/group-location-warning/referenced-from-group-in-other-dir.txt b/tests/auto/blackbox/testdata/group-location-warning/referenced-from-group-in-other-dir.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/referenced-from-group-in-other-dir.txt diff --git a/tests/auto/blackbox/testdata/group-location-warning/referenced-from-group-in-same-dir.txt b/tests/auto/blackbox/testdata/group-location-warning/referenced-from-group-in-same-dir.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/referenced-from-group-in-same-dir.txt diff --git a/tests/auto/blackbox/testdata/group-location-warning/referenced-from-module.txt b/tests/auto/blackbox/testdata/group-location-warning/referenced-from-module.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/referenced-from-module.txt diff --git a/tests/auto/blackbox/testdata/group-location-warning/referenced-from-parent-in-other-dir.txt b/tests/auto/blackbox/testdata/group-location-warning/referenced-from-parent-in-other-dir.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/referenced-from-parent-in-other-dir.txt diff --git a/tests/auto/blackbox/testdata/group-location-warning/referenced-from-product.txt b/tests/auto/blackbox/testdata/group-location-warning/referenced-from-product.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/referenced-from-product.txt diff --git a/tests/auto/blackbox/testdata/group-location-warning/referenced-via-absolute-path.txt b/tests/auto/blackbox/testdata/group-location-warning/referenced-via-absolute-path.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/referenced-via-absolute-path.txt diff --git a/tests/auto/blackbox/testdata/group-location-warning/referenced-via-absolute-prefix.txt b/tests/auto/blackbox/testdata/group-location-warning/referenced-via-absolute-prefix.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/auto/blackbox/testdata/group-location-warning/referenced-via-absolute-prefix.txt 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"] +} |