File: run-test

package info (click to toggle)
patchutils 0.4.2-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,248 kB
  • sloc: ansic: 6,181; sh: 6,143; xml: 2,750; perl: 409; makefile: 248; python: 23
file content (33 lines) | stat: -rwxr-xr-x 454 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

. ${top_srcdir-.}/tests/common.sh

mkdir dir
cat << EOF > dir/file.orig
a
EOF
cat << EOF > dir/file
1
2
3
EOF
cat << EOF > dir/xyzzy.orig
a
b
c
EOF
cat << EOF > dir/xyzzy
a
b
d
EOF
# "gendiff dir .orig", but without requiring gendiff:
( for f in file xyzzy
  do
    printf "diff -up dir/$f.orig dir/$f\n"
    diff -up dir/$f.orig dir/$f
  done) > patch1

${INTERDIFF} patch1 patch1 2>errors > patch1-2 || exit 1
[ -s errors ] && exit 1
exit 0