Debian Codegraph @

tests/unline1/run-test

raw
1 #!/bin/sh
2
3 # This is an interdiff(1) testcase.
4
5
6 . ${top_srcdir-.}/tests/common.sh
7
8 cat << EOF > patch1
9 --- file.orig
10 +++ file
11 @@ -1 +1 @@
12 -a
13 +A
14 EOF
15
16 cat << EOF > patch2
17 --- file.orig
18 +++ file
19 @@ -10 +10 @@
20 -a
21 +A
22 EOF
23
24 ${INTERDIFF} patch1 patch2 > patch1-2 2>errors || exit 1
25 [ -s errors ] && exit 1
26
27 cmp - patch1-2 << EOF || exit 1
28 diff -u file file
29 --- file
30 +++ file
31 @@ -1 +1 @@
32 -A
33 +a
34 @@ -10 +10 @@
35 -a
36 +A
37 EOF