summaryrefslogtreecommitdiff
path: root/tests/format/junctions/duplicates-simple-link
diff options
context:
space:
mode:
authorTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-06-14 23:11:23 +0900
committerTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-06-24 15:08:03 +0900
commit938ce5a5339d259b2e76878807c05002db01e34d (patch)
treea2f435a58975edb234bd121c40c18d8d2f134d52 /tests/format/junctions/duplicates-simple-link
parent9da47db4e11aa613a85233ae7519d94eeea48c14 (diff)
downloadbuildstream-938ce5a5339d259b2e76878807c05002db01e34d.tar.gz
tests/format/junctions.py: Adding tests for duplicate junctions
Diffstat (limited to 'tests/format/junctions/duplicates-simple-link')
-rw-r--r--tests/format/junctions/duplicates-simple-link/project.conf8
-rw-r--r--tests/format/junctions/duplicates-simple-link/subproject1.bst4
-rw-r--r--tests/format/junctions/duplicates-simple-link/subproject1/project.conf2
-rw-r--r--tests/format/junctions/duplicates-simple-link/subproject1/sub.txt1
-rw-r--r--tests/format/junctions/duplicates-simple-link/subproject1/target.bst4
-rw-r--r--tests/format/junctions/duplicates-simple-link/subproject2-link.bst4
-rw-r--r--tests/format/junctions/duplicates-simple-link/subproject2.bst4
-rw-r--r--tests/format/junctions/duplicates-simple-link/subproject2/project.conf2
-rw-r--r--tests/format/junctions/duplicates-simple-link/subproject2/sub2.txt1
-rw-r--r--tests/format/junctions/duplicates-simple-link/subproject2/target.bst4
-rw-r--r--tests/format/junctions/duplicates-simple-link/target.bst5
11 files changed, 39 insertions, 0 deletions
diff --git a/tests/format/junctions/duplicates-simple-link/project.conf b/tests/format/junctions/duplicates-simple-link/project.conf
new file mode 100644
index 000000000..1e1ebae69
--- /dev/null
+++ b/tests/format/junctions/duplicates-simple-link/project.conf
@@ -0,0 +1,8 @@
+name: test
+min-version: 2.0
+
+junctions:
+ duplicates:
+ subtest:
+ - subproject1.bst
+ - subproject2-link.bst
diff --git a/tests/format/junctions/duplicates-simple-link/subproject1.bst b/tests/format/junctions/duplicates-simple-link/subproject1.bst
new file mode 100644
index 000000000..bfd692d00
--- /dev/null
+++ b/tests/format/junctions/duplicates-simple-link/subproject1.bst
@@ -0,0 +1,4 @@
+kind: junction
+sources:
+- kind: local
+ path: subproject1
diff --git a/tests/format/junctions/duplicates-simple-link/subproject1/project.conf b/tests/format/junctions/duplicates-simple-link/subproject1/project.conf
new file mode 100644
index 000000000..39a53e2ab
--- /dev/null
+++ b/tests/format/junctions/duplicates-simple-link/subproject1/project.conf
@@ -0,0 +1,2 @@
+name: subtest
+min-version: 2.0
diff --git a/tests/format/junctions/duplicates-simple-link/subproject1/sub.txt b/tests/format/junctions/duplicates-simple-link/subproject1/sub.txt
new file mode 100644
index 000000000..f73f3093f
--- /dev/null
+++ b/tests/format/junctions/duplicates-simple-link/subproject1/sub.txt
@@ -0,0 +1 @@
+file
diff --git a/tests/format/junctions/duplicates-simple-link/subproject1/target.bst b/tests/format/junctions/duplicates-simple-link/subproject1/target.bst
new file mode 100644
index 000000000..e24d9bbb4
--- /dev/null
+++ b/tests/format/junctions/duplicates-simple-link/subproject1/target.bst
@@ -0,0 +1,4 @@
+kind: import
+sources:
+- kind: local
+ path: sub.txt
diff --git a/tests/format/junctions/duplicates-simple-link/subproject2-link.bst b/tests/format/junctions/duplicates-simple-link/subproject2-link.bst
new file mode 100644
index 000000000..a8aebfa2c
--- /dev/null
+++ b/tests/format/junctions/duplicates-simple-link/subproject2-link.bst
@@ -0,0 +1,4 @@
+kind: link
+
+config:
+ target: subproject2.bst
diff --git a/tests/format/junctions/duplicates-simple-link/subproject2.bst b/tests/format/junctions/duplicates-simple-link/subproject2.bst
new file mode 100644
index 000000000..2343652e1
--- /dev/null
+++ b/tests/format/junctions/duplicates-simple-link/subproject2.bst
@@ -0,0 +1,4 @@
+kind: junction
+sources:
+- kind: local
+ path: subproject2
diff --git a/tests/format/junctions/duplicates-simple-link/subproject2/project.conf b/tests/format/junctions/duplicates-simple-link/subproject2/project.conf
new file mode 100644
index 000000000..39a53e2ab
--- /dev/null
+++ b/tests/format/junctions/duplicates-simple-link/subproject2/project.conf
@@ -0,0 +1,2 @@
+name: subtest
+min-version: 2.0
diff --git a/tests/format/junctions/duplicates-simple-link/subproject2/sub2.txt b/tests/format/junctions/duplicates-simple-link/subproject2/sub2.txt
new file mode 100644
index 000000000..f73f3093f
--- /dev/null
+++ b/tests/format/junctions/duplicates-simple-link/subproject2/sub2.txt
@@ -0,0 +1 @@
+file
diff --git a/tests/format/junctions/duplicates-simple-link/subproject2/target.bst b/tests/format/junctions/duplicates-simple-link/subproject2/target.bst
new file mode 100644
index 000000000..a1d15e942
--- /dev/null
+++ b/tests/format/junctions/duplicates-simple-link/subproject2/target.bst
@@ -0,0 +1,4 @@
+kind: import
+sources:
+- kind: local
+ path: sub2.txt
diff --git a/tests/format/junctions/duplicates-simple-link/target.bst b/tests/format/junctions/duplicates-simple-link/target.bst
new file mode 100644
index 000000000..b674ed66c
--- /dev/null
+++ b/tests/format/junctions/duplicates-simple-link/target.bst
@@ -0,0 +1,5 @@
+kind: stack
+
+depends:
+- subproject1.bst:target.bst
+- subproject2-link.bst:target.bst