Debian Codegraph @

tests/patchview2/run-test

raw
1 #!/bin/sh
2
3 # This is a patchview(1) testcase.
4 # Test: Handle binary diff chunk headers
5
6
7 . ${top_srcdir-.}/tests/common.sh
8
9 /usr/bin/echo -ne "\
10 --- a/file1
11 +++ b/file1
12 @@ -1 +1,2 @@ The '\0' (NUL) character
13 a
14 +b
15 " >diff
16
17 ${PATCHVIEW} diff --filter 2>errors >filtered || exit 1
18 [ -s errors ] && exit 1
19
20 cmp diff filtered || exit 1