Debian Codegraph @

tests/whitespace/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 > diff
9 --- file1
10 +++ file1
11 @@ -1,2 +1,2 @@
12 -A
13 +a
14
15 EOF
16
17 # When detecting whitespace damage in the input, an error should be
18 # written and the program should terminate with a non-zero exit code.
19
20 ${INTERDIFF} -qp1 diff diff 2>errors && exit 1
21 [ -s errors ] || exit 1