From 5e21ce8d89b071ebd1750734b2ca1fd4f361e8c1 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Fri, 20 Apr 2012 12:24:34 +0000 Subject: 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. --- tests/morphless-chunks.script | 7 ++++++- tests/morphless-chunks.stdout | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tests/morphless-chunks.stdout (limited to 'tests') 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 + -- cgit v1.2.1