summaryrefslogtreecommitdiff
path: root/tests.as-root/building-a-system-branch-works-anywhere.script
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-11-06 17:06:38 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2012-11-12 16:48:18 +0000
commitcbaa45c1dccec5bc5e7fd1650a6a2f99638ee65e (patch)
treee7e89af59724bdc346861d8b764789e891dbe5bd /tests.as-root/building-a-system-branch-works-anywhere.script
parenta49db7757e2d2902989dc0601eda93557d1ee55c (diff)
downloadmorph-cbaa45c1dccec5bc5e7fd1650a6a2f99638ee65e.tar.gz
morph build: Use the user's own repos when building
This means that Morph no longer requires changes to be pushed in order to build them. The repos from the system branch are currently cached in the local repo cache as part of the build process, which is far from ideal. Tests for 'morph build' now test build without push. The build metadata now includes a repo path that is inside the TMPDIR, so the tests have been rewritten to avoid having any hardcoded cache keys because the cache keys are no longer static.
Diffstat (limited to 'tests.as-root/building-a-system-branch-works-anywhere.script')
-rwxr-xr-xtests.as-root/building-a-system-branch-works-anywhere.script7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests.as-root/building-a-system-branch-works-anywhere.script b/tests.as-root/building-a-system-branch-works-anywhere.script
index 1ce59b0f..2bba83dc 100755
--- a/tests.as-root/building-a-system-branch-works-anywhere.script
+++ b/tests.as-root/building-a-system-branch-works-anywhere.script
@@ -52,11 +52,10 @@ cd "$DATADIR/workspace/branch1/test:kernel-repo"
"$SRCDIR/scripts/list-tree" "$DATADIR/cache/artifacts" > "$DATADIR/output4"
rm -rf "$DATADIR/cache/artifacts"/*
-# Verify that we're always building the same and that we're building
-# the right things after all.
-cat "$DATADIR/output1"
+# Verify that we build the right number of artifacts
+[ $(wc < "$DATADIR/output1" -l) -eq 10 ]
-# Print diffs of the build results, all of which should be empty.
+# List of files in the artifact cache should be identical after each build
diff "$DATADIR/output1" "$DATADIR/output2"
diff "$DATADIR/output2" "$DATADIR/output3"
diff "$DATADIR/output3" "$DATADIR/output4"