[ostree] tests: Add a commented out test for mirroring with deltas



commit 9acb6283d1d0b358ed406ec368b075a517d8857a
Author: Colin Walters <walters verbum org>
Date:   Mon Jun 1 18:15:42 2015 -0400

    tests: Add a commented out test for mirroring with deltas

 tests/test-pull-mirror-summary.sh |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-pull-mirror-summary.sh b/tests/test-pull-mirror-summary.sh
index 87182bc..a46f3d0 100755
--- a/tests/test-pull-mirror-summary.sh
+++ b/tests/test-pull-mirror-summary.sh
@@ -69,3 +69,16 @@ ${OSTREE} --repo=repo pull --mirror origin
 assert_has_file repo/summary
 assert_has_file repo/summary.sig
 echo "ok pull mirror with signed summary"
+
+# Uncomment when we support mirroring deltas
+#
+# ${OSTREE} --repo=${test_tmpdir}/ostree-srv/gnomerepo static-delta generate main
+# origmain=$(ostree --repo=${test_tmpdir}/ostree-srv/gnomerepo rev-parse main^)
+# newmain=$(ostree --repo=${test_tmpdir}/ostree-srv/gnomerepo rev-parse main)
+# ${OSTREE} --repo=${test_tmpdir}/ostree-srv/gnomerepo summary -u ${COMMIT_SIGN}
+# ${OSTREE} --repo=repo pull --mirror origin
+# ${OSTREE} --repo=repo static-delta list >deltas.txt
+# assert_file_has_content deltas.txt "${origmain}-${newmain}"
+
+# echo "ok pull mirror with signed summary covering static deltas"
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]