diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-03-11 13:45:34 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-03-11 18:06:48 +0000 |
commit | ac4eb19ca9cee87e93368d80114d8c44eb5b8d3c (patch) | |
tree | b3e52e5e6eb37e86100c04724bf4bfdc312e0ad3 /tests.as-root | |
parent | bf1d9618cfd88430a2fd8bd4fcba0c7dd61c3ffc (diff) | |
download | morph-ac4eb19ca9cee87e93368d80114d8c44eb5b8d3c.tar.gz |
Change test to also verify that artifact is not compressed
Diffstat (limited to 'tests.as-root')
-rwxr-xr-x | tests.as-root/tarball-image-is-sensible.script | 7 | ||||
-rw-r--r-- | tests.as-root/tarball-image-is-sensible.stderr | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests.as-root/tarball-image-is-sensible.script b/tests.as-root/tarball-image-is-sensible.script index 1b4d60ae..e36cdb5a 100755 --- a/tests.as-root/tarball-image-is-sensible.script +++ b/tests.as-root/tarball-image-is-sensible.script @@ -29,6 +29,13 @@ set -eu tar=$("$SRCDIR/scripts/test-morph" --find-system-artifact \ build-morphology test:morphs tarball-links hello-tarball) +# Verify that the tar archive is not compressed. +if gunzip -t "$tar" > /dev/null +then + echo "ERROR: $tar is gzip'd!" 1>&2 + exit 1 +fi + extracted="$DATADIR/extracted" mkdir -p "$extracted" cd "$extracted" diff --git a/tests.as-root/tarball-image-is-sensible.stderr b/tests.as-root/tarball-image-is-sensible.stderr new file mode 100644 index 00000000..9db65e02 --- /dev/null +++ b/tests.as-root/tarball-image-is-sensible.stderr @@ -0,0 +1 @@ +gunzip: invalid magic |