From a3ec215973c3653ebdeb81dcdd1274519c376a3d Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Sun, 21 Aug 2016 05:23:24 +0000 Subject: diffutils-3.5 --- gnulib-tests/test-binary-io.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 gnulib-tests/test-binary-io.sh (limited to 'gnulib-tests/test-binary-io.sh') diff --git a/gnulib-tests/test-binary-io.sh b/gnulib-tests/test-binary-io.sh new file mode 100755 index 0000000..c4dd6e9 --- /dev/null +++ b/gnulib-tests/test-binary-io.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles t-bin-out0.tmp t-bin-out1.tmp t-bin-out2.tmp" +./test-binary-io${EXEEXT} 1 > t-bin-out1.tmp || exit 1 +cmp t-bin-out0.tmp t-bin-out1.tmp > /dev/null || exit 1 +./test-binary-io${EXEEXT} 2 > t-bin-out2.tmp || exit 1 +cmp t-bin-out0.tmp t-bin-out2.tmp > /dev/null || exit 1 + +rm -fr $tmpfiles + +exit 0 -- cgit v1.2.1