tests/lsdiff12/run-test
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | # This is a lsdiff(1) testcase. |
| 4 | # Test: See if lsdiff -s behaves as expected with regard to /dev/null |
| 5 | |
| 6 | |
| 7 | . ${top_srcdir-.}/tests/common.sh |
| 8 | |
| 9 | echo a >file1 |
| 10 | echo a | ${DIFF} -du file1 /dev/null | \ |
| 11 | ${LSDIFF} -s 2>errors >index || exit 1 |
| 12 | [ -s errors ] && exit 1 |
| 13 | |
| 14 | cat << EOF | cmp - index || exit 1 |
| 15 | - file1 |
| 16 | EOF |