summaryrefslogtreecommitdiff
path: root/tests/sources/tar/explicit-basedir
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-11-03 20:51:25 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-11-03 21:32:10 +0900
commit069dcb4f43e64197224fd9d9bc56c6d6d54ac847 (patch)
tree6912a534f90fe423a5ee5d0ca5f6ef2655dac99f /tests/sources/tar/explicit-basedir
parent45501e618079245e22f5f337cd0d77a939bbfeef (diff)
downloadbuildstream-069dcb4f43e64197224fd9d9bc56c6d6d54ac847.tar.gz
tests/sources/tar.py: Converted tar test to use the CLI and enhanced
Now test to also ensure that base-dir expressions always behave the same way regardless of whether the tarball was created with a leading '.' or not.
Diffstat (limited to 'tests/sources/tar/explicit-basedir')
-rw-r--r--tests/sources/tar/explicit-basedir/content/a/b/d1
-rw-r--r--tests/sources/tar/explicit-basedir/content/a/c1
-rw-r--r--tests/sources/tar/explicit-basedir/target.bst7
3 files changed, 9 insertions, 0 deletions
diff --git a/tests/sources/tar/explicit-basedir/content/a/b/d b/tests/sources/tar/explicit-basedir/content/a/b/d
new file mode 100644
index 000000000..4bcfe98e6
--- /dev/null
+++ b/tests/sources/tar/explicit-basedir/content/a/b/d
@@ -0,0 +1 @@
+d
diff --git a/tests/sources/tar/explicit-basedir/content/a/c b/tests/sources/tar/explicit-basedir/content/a/c
new file mode 100644
index 000000000..f2ad6c76f
--- /dev/null
+++ b/tests/sources/tar/explicit-basedir/content/a/c
@@ -0,0 +1 @@
+c
diff --git a/tests/sources/tar/explicit-basedir/target.bst b/tests/sources/tar/explicit-basedir/target.bst
new file mode 100644
index 000000000..fb85bdf42
--- /dev/null
+++ b/tests/sources/tar/explicit-basedir/target.bst
@@ -0,0 +1,7 @@
+kind: import
+description: The kind of this element is irrelevant.
+sources:
+- kind: tar
+ url: tmpdir:/a.tar.gz
+ ref: foo
+ base-dir: 'a'