Debian Codegraph @

tests/rediff1/run-test

raw
1 #!/bin/sh
2
3 # This is a rediff(1) testcase.
4 # Test: Remove all original lines in a hunk.
5
6
7 . ${top_srcdir-.}/tests/common.sh
8
9 cat << "EOF" > patch.orig
10 --- file
11 +++ file
12 @@ -3,3 +3,4 @@
13 1
14 2
15 3
16 +4.5
17 EOF
18
19 cat << "EOF" > patch.mod
20 --- file
21 +++ file
22 @@ -3,3 +3,4 @@
23 +4.5
24 EOF
25
26 ${REDIFF} patch.orig patch.mod > patch-rediffed || exit 1
27 cmp - patch-rediffed << "EOF" || exit 1
28 --- file
29 +++ file
30 @@ -6,0 +6 @@
31 +4.5
32 EOF