tests/grepdiff7/run-test
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | # This is a grepdiff(1) testcase. |
| 4 | |
| 5 | |
| 6 | . ${top_srcdir-.}/tests/common.sh |
| 7 | |
| 8 | cat << EOF > diff |
| 9 | --- foo 2004-03-30 15:55:52.037395000 -0600 |
| 10 | +++ bar 2004-03-26 17:04:42.486526100 -0600 |
| 11 | @@ -90,13 +90,13 @@ |
| 12 | |
| 13 | |
| 14 | |
| 15 | -a |
| 16 | + |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | -b |
| 23 | + |
| 24 | |
| 25 | |
| 26 | |
| 27 | @@ -110,10 +110,6 @@ |
| 28 | |
| 29 | |
| 30 | |
| 31 | - |
| 32 | - |
| 33 | - |
| 34 | - |
| 35 | |
| 36 | |
| 37 | |
| 38 | EOF |
| 39 | |
| 40 | ${GREPDIFF} --output-matching=file . diff 2>errors >matched || exit 1 |
| 41 | [ -s errors ] && exit 1 |
| 42 | cmp diff matched || exit 1 |