Debian Codegraph @

tests/nondiff1/run-test

raw
1 #!/bin/sh
2
3 . ${top_srcdir-.}/tests/common.sh
4
5 cat << EOF > patch1
6 This is a non-diff line.
7 *** file
8 --- file
9 ***************
10 *** 1,5 ****
11 a
12 b
13 ! c
14 d
15 e
16 --- 1,5 ----
17 a
18 b
19 C
20 d
21 e
22 So is this.
23 *** file
24 --- file
25 ***************
26 *** 0 ****
27 --- 1 ----
28 + a
29 And this.
30 EOF
31
32 ${FILTERDIFF} -x file patch1 2>errors > filtered || exit 1
33 [ -s errors ] && exit 1
34 cat << EOF | cmp - filtered || exit 1
35 This is a non-diff line.
36 So is this.
37 And this.
38 EOF