Debian Codegraph @

tests/filterb/run-test

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