Follow upstream changes -- Bytestring updates
[git-darcs-import.git] / tests / pull_binary.sh
blobde9ace54f3ccc101969beaef792d9efe7895e1f7
1 #!/usr/bin/env bash
3 # This test script, originally written by David Roundy and Ian Lynagh is in
4 # the public domain.
6 set -ev
8 rm -rf temp1 temp2
10 mkdir temp1
11 cd temp1
12 darcs init
13 perl -e 'print "a"x1048576' > foo
14 darcs record -l -a -A author -m xx
15 rm foo
16 darcs record -a -A author -m yy
17 cd ..
19 mkdir temp2
20 cd temp2
21 darcs init
22 echo yn | darcs pull ../temp1
23 rm foo
24 darcs pull -a
25 cd ..
27 rm -rf temp1 temp2