summaryrefslogtreecommitdiff
path: root/tests.as-root
diff options
context:
space:
mode:
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