summaryrefslogtreecommitdiff
path: root/t/t0021-conversion.sh
diff options
context:
space:
mode:
authorNicolas Zingilé <nicolas.zingile@open.eurogiciel.org>2014-11-17 17:01:18 +0100
committerNicolas Zingilé <nicolas.zingile@open.eurogiciel.org>2014-11-17 17:01:18 +0100
commit98e3d8faf9eebd382f62a75c886b7e1c6a20279b (patch)
tree756eb3879157731cb1c2b50f35a744aad8b8796d /t/t0021-conversion.sh
parentee5a57bc5c5641c30bc626892ddc31ddd18ed7ad (diff)
downloadgit-98e3d8faf9eebd382f62a75c886b7e1c6a20279b.tar.gz
git-98e3d8faf9eebd382f62a75c886b7e1c6a20279b.tar.bz2
git-98e3d8faf9eebd382f62a75c886b7e1c6a20279b.zip
Imported Upstream version 2.0.1upstream/2.0.1
Diffstat (limited to 't/t0021-conversion.sh')
-rwxr-xr-xt/t0021-conversion.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t0021-conversion.sh b/t/t0021-conversion.sh
index e50f0f74..b92e6cb0 100755
--- a/t/t0021-conversion.sh
+++ b/t/t0021-conversion.sh
@@ -190,4 +190,18 @@ test_expect_success 'required filter clean failure' '
test_must_fail git add test.fc
'
+test -n "$GIT_TEST_LONG" && test_set_prereq EXPENSIVE
+
+test_expect_success EXPENSIVE 'filter large file' '
+ git config filter.largefile.smudge cat &&
+ git config filter.largefile.clean cat &&
+ for i in $(test_seq 1 2048); do printf "%1048576d" 1; done >2GB &&
+ echo "2GB filter=largefile" >.gitattributes &&
+ git add 2GB 2>err &&
+ ! test -s err &&
+ rm -f 2GB &&
+ git checkout -- 2GB 2>err &&
+ ! test -s err
+'
+
test_done