summaryrefslogtreecommitdiff
path: root/tests.build/morphless-chunks.script
diff options
context:
space:
mode:
Diffstat (limited to 'tests.build/morphless-chunks.script')
-rwxr-xr-xtests.build/morphless-chunks.script13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests.build/morphless-chunks.script b/tests.build/morphless-chunks.script
index b46fa635..f0eb1518 100755
--- a/tests.build/morphless-chunks.script
+++ b/tests.build/morphless-chunks.script
@@ -40,3 +40,16 @@ git commit -q -m "Convert hello into an autodetectable chunk"
"$SRCDIR/scripts/test-morph" build-morphology \
test:morphs-repo master hello-system
+
+cd "$DATADIR"
+"$SRCDIR/scripts/test-morph" init workspace
+cd "$DATADIR/workspace"
+"$SRCDIR/scripts/test-morph" checkout test:morphs-repo master
+cd "$DATADIR/workspace/master/test/morphs-repo"
+
+refs=`"$SRCDIR/scripts/test-morph" query-cache hello-system.morph hello`
+for ref in $refs
+do
+ ostree --repo="$DATADIR/cache/artifacts/repo" checkout --fsync=false \
+ "$ref" "$DATADIR/$ref"
+done | cat >/dev/null