summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/unpack/tar-removing-leading-slash/build-spec
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/unpack/tar-removing-leading-slash/build-spec')
-rw-r--r--t/recipes/checks/unpack/tar-removing-leading-slash/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/unpack/tar-removing-leading-slash/build-spec/tar-data7
2 files changed, 10 insertions, 0 deletions
diff --git a/t/recipes/checks/unpack/tar-removing-leading-slash/build-spec/fill-values b/t/recipes/checks/unpack/tar-removing-leading-slash/build-spec/fill-values
new file mode 100644
index 0000000..814c999
--- /dev/null
+++ b/t/recipes/checks/unpack/tar-removing-leading-slash/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: deb
+Testname: tar-removing-leading-slash
+Description: Test package emitting errors from tar
diff --git a/t/recipes/checks/unpack/tar-removing-leading-slash/build-spec/tar-data b/t/recipes/checks/unpack/tar-removing-leading-slash/build-spec/tar-data
new file mode 100755
index 0000000..3512cc0
--- /dev/null
+++ b/t/recipes/checks/unpack/tar-removing-leading-slash/build-spec/tar-data
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+rootdir="$1"
+
+tar --create --file members/data.tar.gz --gzip --xform 's,^,/,' --directory "$rootdir" usr/