summaryrefslogtreecommitdiff
path: root/tests.build/build-system.script
diff options
context:
space:
mode:
Diffstat (limited to 'tests.build/build-system.script')
-rwxr-xr-xtests.build/build-system.script13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests.build/build-system.script b/tests.build/build-system.script
index 0180939a..d3e338cf 100755
--- a/tests.build/build-system.script
+++ b/tests.build/build-system.script
@@ -22,5 +22,14 @@ set -eu
"$SRCDIR/scripts/test-morph" build-morphology \
test:morphs-repo master hello-system
-system=$(ls "$DATADIR/cache/artifacts/"*hello-system-rootfs)
-tar tf $system | LC_ALL=C sort | sed '/^\.\/./s:^\./::' | grep -v '^baserock/'
+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"
+
+ref=`"$SRCDIR/scripts/test-morph" query-cache hello-system.morph`
+ostree --repo="$DATADIR/cache/artifacts/repo" checkout --fsync=false \
+ "$ref" "$DATADIR/$ref"
+find $DATADIR/$ref/* | sed "s:^$DATADIR/$ref/::" | LC_ALL=C sort |
+sed '/^\.\/./s:^\./::' | grep -v '^baserock'