Skip to content

Commit f05d8a6

Browse files
t-bdscho
authored andcommitted
Add test for large files on windows
Original test by Thomas. Add the extra fsck to get diagnostics after the add. Verify the pack at earliest opportunity Slight confusion as to why index-pack vs verify-pack... It's -v (verbose) not --verify Specify an output file to index-pack, otherwise it clashes with the existing index file. Check that the sha1 matches the existing value;-) Signed-off-by: Thomas Braun <[email protected]> Signed-off-by: Philip Oakley <[email protected]>
1 parent 5554ca1 commit f05d8a6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

t/t-large-files-on-windows.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
3+
test_description='test large file handling on windows'
4+
. ./test-lib.sh
5+
6+
test_expect_success SIZE_T_IS_64BIT 'require 64bit size_t' '
7+
8+
dd if=/dev/zero of=file bs=1M count=4100 &&
9+
git config core.compression 0 &&
10+
git config core.looseCompression 0 &&
11+
git add file &&
12+
git verify-pack -s .git/objects/pack/*.pack &&
13+
git fsck --verbose --strict --full &&
14+
git commit -m msg file &&
15+
git log --stat &&
16+
git gc &&
17+
git fsck --verbose --strict --full &&
18+
git index-pack -v -o test.idx .git/objects/pack/*.pack &&
19+
git gc &&
20+
git fsck
21+
'
22+
23+
test_done

0 commit comments

Comments
 (0)