Debian Codegraph @

tests/comma/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 EOF
9 cat << EOF > dir/file
10 1
11 2
12 3
13 EOF
14 cat << EOF > dir/xyzzy.orig
15 a
16 b
17 c
18 EOF
19 cat << EOF > dir/xyzzy
20 a
21 b
22 d
23 EOF
24 # "gendiff dir .orig", but without requiring gendiff:
25 ( for f in file xyzzy
26 do
27 printf "diff -up dir/$f.orig dir/$f\n"
28 diff -up dir/$f.orig dir/$f
29 done) > patch1
30
31 ${INTERDIFF} patch1 patch1 2>errors > patch1-2 || exit 1
32 [ -s errors ] && exit 1
33 exit 0