summaryrefslogtreecommitdiff
path: root/tests/format/link/simple
diff options
context:
space:
mode:
authorTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-05-30 19:34:34 +0900
committerTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-06-01 23:11:04 +0900
commit35f0545e0781294cab8e69c64f76c611a64640d9 (patch)
tree1768850f6fc5dfe55c612ff6b8e5cdd660fa2736 /tests/format/link/simple
parentf774efaa72f3400ff8bd506a0fd7c536fd8f608f (diff)
downloadbuildstream-35f0545e0781294cab8e69c64f76c611a64640d9.tar.gz
tests/format/link.py: Adding tests for the link element
Diffstat (limited to 'tests/format/link/simple')
-rw-r--r--tests/format/link/simple/elements/hello-link.bst4
-rw-r--r--tests/format/link/simple/elements/hello.bst5
-rw-r--r--tests/format/link/simple/elements/target.bst4
-rw-r--r--tests/format/link/simple/files/hello.txt1
-rw-r--r--tests/format/link/simple/project.conf4
5 files changed, 18 insertions, 0 deletions
diff --git a/tests/format/link/simple/elements/hello-link.bst b/tests/format/link/simple/elements/hello-link.bst
new file mode 100644
index 000000000..83b0fbe46
--- /dev/null
+++ b/tests/format/link/simple/elements/hello-link.bst
@@ -0,0 +1,4 @@
+kind: link
+
+config:
+ target: hello.bst
diff --git a/tests/format/link/simple/elements/hello.bst b/tests/format/link/simple/elements/hello.bst
new file mode 100644
index 000000000..a04a856cd
--- /dev/null
+++ b/tests/format/link/simple/elements/hello.bst
@@ -0,0 +1,5 @@
+kind: import
+
+sources:
+- kind: local
+ path: files/hello.txt
diff --git a/tests/format/link/simple/elements/target.bst b/tests/format/link/simple/elements/target.bst
new file mode 100644
index 000000000..7c1be3a42
--- /dev/null
+++ b/tests/format/link/simple/elements/target.bst
@@ -0,0 +1,4 @@
+kind: stack
+
+depends:
+- hello-link.bst
diff --git a/tests/format/link/simple/files/hello.txt b/tests/format/link/simple/files/hello.txt
new file mode 100644
index 000000000..ce0136250
--- /dev/null
+++ b/tests/format/link/simple/files/hello.txt
@@ -0,0 +1 @@
+hello
diff --git a/tests/format/link/simple/project.conf b/tests/format/link/simple/project.conf
new file mode 100644
index 000000000..4e2fb0063
--- /dev/null
+++ b/tests/format/link/simple/project.conf
@@ -0,0 +1,4 @@
+name: simple
+min-version: 2.0
+
+element-path: elements