tests: Actually test pack functionality

With --keep-loose we were just using the loose objects.
This commit is contained in:
Colin Walters 2012-04-11 19:48:22 -04:00
parent 394fe75471
commit 3a847a571b
1 changed files with 2 additions and 6 deletions

View File

@ -21,7 +21,7 @@ set -e
. libtest.sh . libtest.sh
echo '1..19' echo '1..18'
setup_test_repository "archive" setup_test_repository "archive"
echo "ok setup" echo "ok setup"
@ -69,7 +69,7 @@ assert_file_has_content cow-contents "moo"
echo "ok cat-file" echo "ok cat-file"
cd ${test_tmpdir} cd ${test_tmpdir}
$OSTREE pack --keep-loose $OSTREE pack
echo "ok pack" echo "ok pack"
cd ${test_tmpdir} cd ${test_tmpdir}
@ -79,10 +79,6 @@ echo "ok fsck"
$OSTREE checkout test2 checkout-test2-from-packed $OSTREE checkout test2 checkout-test2-from-packed
echo "ok checkout union 1" echo "ok checkout union 1"
cd ${test_tmpdir}
$OSTREE pack
echo "ok pack delete loose"
cd ${test_tmpdir} cd ${test_tmpdir}
$OSTREE fsck $OSTREE fsck
echo "ok fsck" echo "ok fsck"