зеркало из https://github.com/microsoft/git.git
Merge branch 'jk/t5000-gzip-simplify'
Test fix. * jk/t5000-gzip-simplify: t5000: simplify gzip prerequisite checks
This commit is contained in:
Коммит
aa13132d90
|
@ -25,8 +25,6 @@ commit id embedding:
|
||||||
'
|
'
|
||||||
|
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
GZIP=${GZIP:-gzip}
|
|
||||||
GUNZIP=${GUNZIP:-gzip -d}
|
|
||||||
|
|
||||||
SUBSTFORMAT=%H%n
|
SUBSTFORMAT=%H%n
|
||||||
|
|
||||||
|
@ -39,6 +37,8 @@ test_lazy_prereq TAR_NEEDS_PAX_FALLBACK '
|
||||||
)
|
)
|
||||||
'
|
'
|
||||||
|
|
||||||
|
test_lazy_prereq GZIP 'gzip --version'
|
||||||
|
|
||||||
get_pax_header() {
|
get_pax_header() {
|
||||||
file=$1
|
file=$1
|
||||||
header=$2=
|
header=$2=
|
||||||
|
@ -265,12 +265,6 @@ test_expect_success 'only enabled filters are available remotely' '
|
||||||
test_cmp remote.bar config.bar
|
test_cmp remote.bar config.bar
|
||||||
'
|
'
|
||||||
|
|
||||||
if $GZIP --version >/dev/null 2>&1; then
|
|
||||||
test_set_prereq GZIP
|
|
||||||
else
|
|
||||||
say "Skipping some tar.gz tests because gzip not found"
|
|
||||||
fi
|
|
||||||
|
|
||||||
test_expect_success GZIP 'git archive --format=tgz' '
|
test_expect_success GZIP 'git archive --format=tgz' '
|
||||||
git archive --format=tgz HEAD >j.tgz
|
git archive --format=tgz HEAD >j.tgz
|
||||||
'
|
'
|
||||||
|
@ -290,14 +284,8 @@ test_expect_success GZIP 'infer tgz from .tar.gz filename' '
|
||||||
test_cmp j.tgz j3.tar.gz
|
test_cmp j.tgz j3.tar.gz
|
||||||
'
|
'
|
||||||
|
|
||||||
if $GUNZIP --version >/dev/null 2>&1; then
|
test_expect_success GZIP 'extract tgz file' '
|
||||||
test_set_prereq GUNZIP
|
gzip -d -c <j.tgz >j.tar &&
|
||||||
else
|
|
||||||
say "Skipping some tar.gz tests because gunzip was not found"
|
|
||||||
fi
|
|
||||||
|
|
||||||
test_expect_success GZIP,GUNZIP 'extract tgz file' '
|
|
||||||
$GUNZIP -c <j.tgz >j.tar &&
|
|
||||||
test_cmp b.tar j.tar
|
test_cmp b.tar j.tar
|
||||||
'
|
'
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче