Debian Codegraph @

tests/recount2/run-test

raw
1 #!/bin/sh
2
3 # This is a recountdiff(1) testcase.
4 # Test: Test that it works.
5
6
7 . ${top_srcdir-.}/tests/common.sh
8
9 cat << EOF > patch
10 --- file
11 --- file -- fooled you!
12 +++ file
13 @@ -1 +1 @@
14 -1
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 EOF
27
28 ${RECOUNTDIFF} patch > patch-recounted || exit 1
29 cat << EOF | cmp - patch-recounted || exit 1
30 --- file
31 --- file -- fooled you!
32 +++ file
33 @@ -1 +1,2 @@
34 -1
35 +2
36 +3
37 @@ -10 +11 @@
38 -1
39 +1
40 --- otherfile
41 +++ otherfile
42 @@ -1,2 +1,2 @@
43 1
44 -1
45 +2
46 EOF