mirror of
https://github.com/git/git
synced 2024-10-30 04:01:21 +00:00
c150064dbe
Mark various existing tests in t00*.sh that invoke git built-ins with TEST_PASSES_SANITIZE_LEAK=true as passing when git is compiled with SANITIZE=leak. They'll now be listed as running under the "GIT_TEST_PASSING_SANITIZE_LEAK=true" test mode (the "linux-leaks" CI target). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
39 lines
654 B
Bash
Executable file
39 lines
654 B
Bash
Executable file
#!/bin/sh
|
|
|
|
test_description='respect crlf in git archive'
|
|
|
|
TEST_PASSES_SANITIZE_LEAK=true
|
|
. ./test-lib.sh
|
|
|
|
test_expect_success setup '
|
|
|
|
git config core.autocrlf true &&
|
|
|
|
printf "CRLF line ending\r\nAnd another\r\n" > sample &&
|
|
git add sample &&
|
|
|
|
test_tick &&
|
|
git commit -m Initial
|
|
|
|
'
|
|
|
|
test_expect_success 'tar archive' '
|
|
|
|
git archive --format=tar HEAD |
|
|
( mkdir untarred && cd untarred && "$TAR" -xf - ) &&
|
|
|
|
test_cmp sample untarred/sample
|
|
|
|
'
|
|
|
|
test_expect_success UNZIP 'zip archive' '
|
|
|
|
git archive --format=zip HEAD >test.zip &&
|
|
|
|
( mkdir unzipped && cd unzipped && "$GIT_UNZIP" ../test.zip ) &&
|
|
|
|
test_cmp sample unzipped/sample
|
|
|
|
'
|
|
|
|
test_done
|