#!/bin/sh test_description='pack-object compression configuration' . ./test-lib.sh # This should be moved to test-lib.sh together with the # copy in t0021 after both topics have graduated to 'master'. file_size () { perl -e 'print -s $ARGV[0]' "$1" } test_expect_success setup ' printf "%2000000s" X | git hash-object -w --stdin >object-name && # make sure it resulted in a loose object ob=$(sed -e "s/\(..\).*/\1/" object-name) && ject=$(sed -e "s/..\(.*\)/\1/" object-name) && test -f .git/objects/$ob/$ject ' while read expect config do test_expect_success "pack-objects with $config" ' test_when_finished "rm -f pack-*.*" && git $config pack-objects pack