Debian Codegraph @

tests/lsdiff4/run-test

raw
1 #!/bin/sh
2
3 # This is a lsdiff(1) testcase.
4 # Test: See if lsdiff handles filenames with spaces.
5
6
7 . ${top_srcdir-.}/tests/common.sh
8
9 cat << EOF > diff1
10 --- file name.orig Mon Dec 17 15:53:01 2001
11 +++ file name Thu Jan 1 01:00:00 1970
12 @@ -1 +0,0 @@
13 -removed
14 EOF
15 ${LSDIFF} diff1 2>errors >index || exit 1
16 [ -s errors ] && exit 1
17
18 cat << EOF | cmp - index || exit 1
19 file name
20 EOF