Debian Codegraph @

tests/splitdiffD/run-test

raw
1 #!/bin/sh
2
3 # This is a splitdiff(1) testcase.
4 # Test: See if -D works.
5
6 # Set LC_ALL to avoid perl locale warnings
7 export LC_ALL=C
8
9 . ${top_srcdir-.}/tests/common.sh
10
11 mkdir dir dir.orig
12 echo a > dir.orig/a
13 echo A > dir/a
14 echo b > dir.orig/b
15 echo B > dir/b
16 ${DIFF} -uN dir.orig dir > diff
17 ${SPLITDIFF} -a -D split diff 2>errors >output || exit 1
18 [ -s errors ] && exit 1
19
20 [ -d split ] || exit 1
21 [ -f split/dir_a.patch ] || exit 1
22 [ -f split/dir_b.patch ] || exit 1