tests/nondiff/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.orig |
| 8 | +++ file |
| 9 | @@ -36 +36 @@ |
| 10 | -oldline |
| 11 | +newline |
| 12 | So is this. |
| 13 | EOF |
| 14 | |
| 15 | ${FILTERDIFF} -x file patch1 2>errors > filtered || exit 1 |
| 16 | [ -s errors ] && exit 1 |
| 17 | cat << EOF | cmp - filtered || exit 1 |
| 18 | This is a non-diff line. |
| 19 | So is this. |
| 20 | EOF |