Debian Codegraph @

tests/recount7/run-test

raw
1 #!/bin/sh
2
3 # This is a recountdiff(1) testcase.
4 # Test: Avoid a bug in handling entirely-added files.
5
6
7 . ${top_srcdir-.}/tests/common.sh
8
9 cat <<"EOF" > patch
10 --- file
11 +++ file
12 @@ -389,5 +398,6 @@
13
14 while (1)
15 ;
16 + # not needed
17 # at all
18 # stop
19
20 EOF
21
22 ${RECOUNTDIFF} patch > patch-recounted || exit 1
23 cat <<"EOF" | cmp - patch-recounted || exit 1
24 --- file
25 +++ file
26 @@ -389,6 +389,7 @@
27
28 while (1)
29 ;
30 + # not needed
31 # at all
32 # stop
33
34 EOF