summaryrefslogtreecommitdiff
path: root/tests/test-delta.sh
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-02-09 16:11:37 -0500
committerGiuseppe Scrivano <gscrivan@redhat.com>2014-12-18 12:48:47 +0100
commitca678224bed203b15b96002dc7b2a949e77281d4 (patch)
treeb5785c97002b84c9337b79d31cd42daa4836ee02 /tests/test-delta.sh
parenta23b3b332e51de13e563ae247d57a9bc15b5964c (diff)
downloadostree-ca678224bed203b15b96002dc7b2a949e77281d4.tar.gz
Static deltas support
https://bugzilla.gnome.org/show_bug.cgi?id=721799
Diffstat (limited to 'tests/test-delta.sh')
-rwxr-xr-xtests/test-delta.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/test-delta.sh b/tests/test-delta.sh
index c5de5b40..29c59d9c 100755
--- a/tests/test-delta.sh
+++ b/tests/test-delta.sh
@@ -57,18 +57,20 @@ function permuteDirectory() {
permuteDirectory 1 files
ostree --repo=repo commit -b test -s test --tree=dir=files
-ostree static-delta --repo=repo
+ostree static-delta --repo=repo list
origrev=$(ostree --repo=repo rev-parse test^)
newrev=$(ostree --repo=repo rev-parse test)
-ostree static-delta --repo=repo --from=${origrev} --to=${newrev}
+ostree --repo=repo static-delta generate --from=${origrev} --to=${newrev}
-assert_has_dir repo/deltas/${origrev}-${newrev}
+origstart=$(echo ${origrev} | dd bs=1 count=2 2>/dev/null)
+origend=$(echo ${origrev} | dd bs=1 skip=2 2>/dev/null)
+assert_has_dir repo/deltas/${origstart}/${origend}-${newrev}
mkdir repo2
ostree --repo=repo2 init --mode=archive-z2
ostree --repo=repo2 pull-local repo ${origrev}
-ostree --repo=repo2 static-delta --apply=repo/deltas/${origrev}-${newrev}
+ostree --repo=repo2 static-delta apply-offline repo/deltas/${origstart}/${origend}-${newrev}
ostree --repo=repo2 fsck
ostree --repo=repo2 show ${newrev}