Debian Codegraph @

tests/lscontext3/run-test

raw
1 #!/bin/sh
2
3 # This is a lsdiff(1) testcase.
4
5
6 . ${top_srcdir-.}/tests/common.sh
7
8 printf 'a\n\n\n\n\n\n\n\nb\n' > file1.orig
9 printf '\n\n\n\n\n\n\n' > file1
10 ${DIFF} -c file1.orig file1 > diff
11
12 ${LSDIFF} -nv diff 2>errors >index || exit 1
13 [ -s errors ] && exit 1
14
15 cat << EOF | cmp - index || exit 1
16 1 file1
17 4 Hunk #1
18 11 Hunk #2
19 EOF