~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to gnulib-tests/test-binary-io.sh

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
tmpfiles=""
4
4
trap 'rm -fr $tmpfiles' 1 2 3 15
5
5
 
6
 
tmpfiles="$tmpfiles t-bin-out1.tmp t-bin-out2.tmp"
7
 
./test-binary-io${EXEEXT} > t-bin-out1.tmp || exit 1
 
6
tmpfiles="$tmpfiles t-bin-out0.tmp t-bin-out1.tmp t-bin-out2.tmp"
 
7
./test-binary-io${EXEEXT} 1 > t-bin-out1.tmp || exit 1
 
8
cmp t-bin-out0.tmp t-bin-out1.tmp > /dev/null || exit 1
 
9
./test-binary-io${EXEEXT} 2 > t-bin-out2.tmp || exit 1
 
10
cmp t-bin-out0.tmp t-bin-out2.tmp > /dev/null || exit 1
8
11
 
9
12
rm -fr $tmpfiles
10
13