Debian Codegraph @

tests/lscontext2/run-test

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