summaryrefslogtreecommitdiff
path: root/tests/sources/tar
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2017-04-12 13:15:22 +0100
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-04-13 19:15:33 +0900
commit21d302582756701b2d0e309611eeb867270c2574 (patch)
treeb1f46ff1861ea9541041f2e556e115ebea637c0b /tests/sources/tar
parent8d021dfeae88196bc7ebdc5bca456d3698a33c85 (diff)
downloadbuildstream-21d302582756701b2d0e309611eeb867270c2574.tar.gz
Add tests for the tar source
Diffstat (limited to 'tests/sources/tar')
-rw-r--r--tests/sources/tar/basic/project.conf2
-rw-r--r--tests/sources/tar/basic/target.bst6
-rw-r--r--tests/sources/tar/fetch/a/b/d1
-rw-r--r--tests/sources/tar/fetch/a/c1
-rw-r--r--tests/sources/tar/fetch/project.conf2
-rw-r--r--tests/sources/tar/fetch/target.bst6
-rw-r--r--tests/sources/tar/no-ref/a/b/d1
-rw-r--r--tests/sources/tar/no-ref/a/c1
-rw-r--r--tests/sources/tar/no-ref/project.conf2
-rw-r--r--tests/sources/tar/no-ref/target.bst5
10 files changed, 27 insertions, 0 deletions
diff --git a/tests/sources/tar/basic/project.conf b/tests/sources/tar/basic/project.conf
new file mode 100644
index 000000000..afa0f5475
--- /dev/null
+++ b/tests/sources/tar/basic/project.conf
@@ -0,0 +1,2 @@
+# Basic project
+name: foo
diff --git a/tests/sources/tar/basic/target.bst b/tests/sources/tar/basic/target.bst
new file mode 100644
index 000000000..1f3c3e13b
--- /dev/null
+++ b/tests/sources/tar/basic/target.bst
@@ -0,0 +1,6 @@
+kind: foo
+description: The kind of this element is irrelevant.
+sources:
+- kind: tar
+ url: http://www.example.com
+ ref: foo
diff --git a/tests/sources/tar/fetch/a/b/d b/tests/sources/tar/fetch/a/b/d
new file mode 100644
index 000000000..4bcfe98e6
--- /dev/null
+++ b/tests/sources/tar/fetch/a/b/d
@@ -0,0 +1 @@
+d
diff --git a/tests/sources/tar/fetch/a/c b/tests/sources/tar/fetch/a/c
new file mode 100644
index 000000000..f2ad6c76f
--- /dev/null
+++ b/tests/sources/tar/fetch/a/c
@@ -0,0 +1 @@
+c
diff --git a/tests/sources/tar/fetch/project.conf b/tests/sources/tar/fetch/project.conf
new file mode 100644
index 000000000..afa0f5475
--- /dev/null
+++ b/tests/sources/tar/fetch/project.conf
@@ -0,0 +1,2 @@
+# Basic project
+name: foo
diff --git a/tests/sources/tar/fetch/target.bst b/tests/sources/tar/fetch/target.bst
new file mode 100644
index 000000000..8bdf8997a
--- /dev/null
+++ b/tests/sources/tar/fetch/target.bst
@@ -0,0 +1,6 @@
+kind: foo
+description: The kind of this element is irrelevant.
+sources:
+- kind: tar
+ url: tmpdir:/a.tar.gz
+ ref: foo
diff --git a/tests/sources/tar/no-ref/a/b/d b/tests/sources/tar/no-ref/a/b/d
new file mode 100644
index 000000000..4bcfe98e6
--- /dev/null
+++ b/tests/sources/tar/no-ref/a/b/d
@@ -0,0 +1 @@
+d
diff --git a/tests/sources/tar/no-ref/a/c b/tests/sources/tar/no-ref/a/c
new file mode 100644
index 000000000..f2ad6c76f
--- /dev/null
+++ b/tests/sources/tar/no-ref/a/c
@@ -0,0 +1 @@
+c
diff --git a/tests/sources/tar/no-ref/project.conf b/tests/sources/tar/no-ref/project.conf
new file mode 100644
index 000000000..afa0f5475
--- /dev/null
+++ b/tests/sources/tar/no-ref/project.conf
@@ -0,0 +1,2 @@
+# Basic project
+name: foo
diff --git a/tests/sources/tar/no-ref/target.bst b/tests/sources/tar/no-ref/target.bst
new file mode 100644
index 000000000..84978ef23
--- /dev/null
+++ b/tests/sources/tar/no-ref/target.bst
@@ -0,0 +1,5 @@
+kind: foo
+description: The kind of this element is irrelevant.
+sources:
+- kind: tar
+ url: tmpdir:/a.tar.gz