summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-04-20 12:24:34 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-04-20 12:26:15 +0000
commit5e21ce8d89b071ebd1750734b2ca1fd4f361e8c1 (patch)
treef3ffa7e1a5be78213f16029ee84a30f30b06a157
parent29495567ce1787e426687d7d59653874e2efdcf4 (diff)
downloadmorph-5e21ce8d89b071ebd1750734b2ca1fd4f361e8c1.tar.gz
morphless chunks test: fix output
The test needs to check whether the chunk has the expected contents. It used to mistakenly check if there were any chunks in the git cache.
-rwxr-xr-xtests/morphless-chunks.script7
-rw-r--r--tests/morphless-chunks.stdout5
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/morphless-chunks.script b/tests/morphless-chunks.script
index 0d4c725e..7dc7b7d5 100755
--- a/tests/morphless-chunks.script
+++ b/tests/morphless-chunks.script
@@ -58,4 +58,9 @@ git commit --quiet -m initial
"$SRCDIR/scripts/test-morph" build stratum master alfred.morph
-ls -l "$DATADIR/cache/gits/"*.chunk.*
+for chunk in "$DATADIR/cache/"*.chunk.*
+do
+ echo "$chunk:" | sed 's/[^.]*//'
+ tar -tf "$chunk" | LC_ALL=C sort | sed '/^\.\/./s:^\./::'
+ echo
+done
diff --git a/tests/morphless-chunks.stdout b/tests/morphless-chunks.stdout
new file mode 100644
index 00000000..8e17b29a
--- /dev/null
+++ b/tests/morphless-chunks.stdout
@@ -0,0 +1,5 @@
+.chunk.morphless:
+./
+baserock/
+baserock/morphless.meta
+