Debian Codegraph @

tests/copy1/run-test

raw
1 #!/bin/sh
2
3 . ${top_srcdir-.}/tests/common.sh
4
5 mkdir dir
6 cat << EOF > dir/file.orig
7 a
8 b
9 --
10 EOF
11 cat << EOF > dir/file
12 a
13 b
14 EOF
15
16 ${DIFF} -u dir/file.orig dir/file > patch1
17 ${INTERDIFF} /dev/null patch1 2>errors > patch-1 || exit 1
18 [ -s errors ] && exit 1
19 tail -1 patch-1 > lastline
20 cat << EOF | cmp - lastline || exit 1
21 ---
22 EOF