summaryrefslogtreecommitdiff
path: root/tests/test-basic.sh
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-07-20 12:20:51 -0400
committerColin Walters <walters@verbum.org>2014-07-21 07:25:51 -0400
commite3928205413592ad9f687746401fe484983ecbe8 (patch)
tree2c2f94979952bf7d7766b73cf09f60da19500f04 /tests/test-basic.sh
parent1834a71b1f4856612e5d0638d1f82e9831e89a39 (diff)
downloadostree-e3928205413592ad9f687746401fe484983ecbe8.tar.gz
core: Do enumerate ff/ objects as well
An embarassing off-by-one here. I noticed we weren't pruning them. https://bugzilla.gnome.org/show_bug.cgi?id=733458
Diffstat (limited to 'tests/test-basic.sh')
-rwxr-xr-xtests/test-basic.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test-basic.sh b/tests/test-basic.sh
index dfad2551..19e98b1e 100755
--- a/tests/test-basic.sh
+++ b/tests/test-basic.sh
@@ -236,6 +236,19 @@ rm repo3 objlist-before-prune objlist-after-prune -rf
echo "ok prune"
cd ${test_tmpdir}
+rm repo3 -rf
+${CMD_PREFIX} ostree --repo=repo3 init --mode=archive-z2
+${CMD_PREFIX} ostree --repo=repo3 pull-local --remote=aremote repo test2
+rm repo3/refs/remotes -rf
+mkdir repo3/refs/remotes
+ostree --repo=repo3 prune --refs-only
+find repo3/objects -name '*.filez' > file-objects
+if test -s file-objects; then
+ assert_not_reached "prune didn't delete all objects"
+fi
+echo "ok prune in archive-z2 deleted everything"
+
+cd ${test_tmpdir}
$OSTREE commit -b test3 -s "Another commit" --tree=ref=test2
ostree --repo=repo refs > reflist
assert_file_has_content reflist '^test3$'