tests/recount6/run-test
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | # This is a recountdiff(1) testcase. |
| 4 | # Test: Avoid a bug in handling entirely-added files. |
| 5 | |
| 6 | |
| 7 | . ${top_srcdir-.}/tests/common.sh |
| 8 | |
| 9 | cat <<"EOF" > patch |
| 10 | --- file |
| 11 | +++ file |
| 12 | @@ -0,0 +1,15 @@ |
| 13 | +1 |
| 14 | +2 |
| 15 | +3 |
| 16 | +4 |
| 17 | EOF |
| 18 | |
| 19 | ${RECOUNTDIFF} patch > patch-recounted || exit 1 |
| 20 | cat <<"EOF" | cmp - patch-recounted || exit 1 |
| 21 | --- file |
| 22 | +++ file |
| 23 | @@ -0,0 +1,4 @@ |
| 24 | +1 |
| 25 | +2 |
| 26 | +3 |
| 27 | +4 |
| 28 | EOF |