summaryrefslogtreecommitdiff
path: root/tests.as-root
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-03-11 13:45:34 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2013-03-13 15:20:02 +0000
commitd1b40f5b50941f617937d010da6e5fadcd782630 (patch)
treefadfaf8c488bbf2123422a0b2d2976bbb5cb8d3e /tests.as-root
parent6cc75e0a7e348c1ab92a0ec4de43cf20dd3e2c72 (diff)
downloadmorph-d1b40f5b50941f617937d010da6e5fadcd782630.tar.gz
Change test to also verify that artifact is not compressed
Diffstat (limited to 'tests.as-root')
-rwxr-xr-xtests.as-root/tarball-image-is-sensible.script7
-rw-r--r--tests.as-root/tarball-image-is-sensible.stderr1
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