~ubuntu-branches/ubuntu/vivid/diffutils/vivid

« back to all changes in this revision

Viewing changes to tests/stdin

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2010-02-13 11:49:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100213114900-09lz8jx6wct52qp8
Tags: 1:2.9-1
* New upstream release, now under GPL version 3 or later.
* There is now a --tab-size option. Closes: #82923.
* Manpage for cmp describes exit status. Closes: #200614.
* Manpage for diff describes exit status. Closes: #228441, #473233.
* The file de.po is now more recent. Closes: #313686.
* Fixed bad sdiff behaviour. Closes: #320222.
* Added wdiff to Suggests. Closes: #324627.
* Fixed cmp behaviour regarding stdout and stderr. Closes: #356083.
* The file ru.po is now more recent. Closes: #409274.
* The file es.po is now more recent. Closes: #418005, #481708.
* The file nl.po is now more recent. Closes: #427370.
* Modified watch file to use http instead of ftp.
* Removed .comment section from executables.
* Added Homepage field to control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Ensure that "-" means "standard input".
 
3
 
 
4
test "$VERBOSE" = yes && set -x
 
5
: ${srcdir=.}
 
6
. "$srcdir/init.sh"
 
7
 
 
8
fail=0
 
9
 
 
10
cat <<EOF > exp || fail=1
 
11
--- -
 
12
+++ b
 
13
@@ -1 +1 @@
 
14
-a
 
15
+b
 
16
EOF
 
17
 
 
18
echo a > a
 
19
echo b > b
 
20
 
 
21
diff -u - b < a > out 2> err; test $? = 1 || fail=1
 
22
# Remove date and time.
 
23
sed -e 's/^\([-+*][-+*][-+*] [^ ]*\)    .*/\1/' out > k; mv k out
 
24
compare out exp || fail=1
 
25
 
 
26
Exit $fail