Debian Codegraph @

tests/recount3/run-test

raw
1 #!/bin/sh
2
3 # This is a recountdiff(1) testcase.
4 # Test: Test that '\' lines are handled correctly.
5
6
7 . ${top_srcdir-.}/tests/common.sh
8
9 cat << EOF > patch
10 --- file
11 +++ file
12 @@ -1 +1 @@
13 -1
14 \ No newline at end of file
15 +2
16 +3
17 @@ -10 +10 @@
18 -1
19 +1
20 --- otherfile
21 +++ otherfile
22 @@ -1 +1,2 @@
23 1
24 -1
25 +2
26 \ No newline at end of file
27 @@ -10 +10 @@
28 -1
29 +1
30 EOF
31
32 ${RECOUNTDIFF} patch > patch-recounted || exit 1
33 cat << EOF | cmp - patch-recounted || exit 1
34 --- file
35 +++ file
36 @@ -1 +1,2 @@
37 -1
38 \ No newline at end of file
39 +2
40 +3
41 @@ -10 +11 @@
42 -1
43 +1
44 --- otherfile
45 +++ otherfile
46 @@ -1,2 +1,2 @@
47 1
48 -1
49 +2
50 \ No newline at end of file
51 @@ -10 +10 @@
52 -1
53 +1
54 EOF