diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-11-03 20:51:25 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-11-03 21:32:10 +0900 |
commit | 069dcb4f43e64197224fd9d9bc56c6d6d54ac847 (patch) | |
tree | 6912a534f90fe423a5ee5d0ca5f6ef2655dac99f /tests/sources/tar/explicit-basedir | |
parent | 45501e618079245e22f5f337cd0d77a939bbfeef (diff) | |
download | buildstream-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/d | 1 | ||||
-rw-r--r-- | tests/sources/tar/explicit-basedir/content/a/c | 1 | ||||
-rw-r--r-- | tests/sources/tar/explicit-basedir/target.bst | 7 |
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' |