diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2013-09-22 07:04:10 +0000 |
---|---|---|
committer | <> | 2015-02-02 12:02:31 +0000 |
commit | 23c11479b3ad787adc7a651ee0c4347839e47723 (patch) | |
tree | 3aa9e1125da84f7e3bd764bbff577c42a766508b /tests/test-binary-io.sh | |
download | m4-tarball-master.tar.gz |
Diffstat (limited to 'tests/test-binary-io.sh')
-rwxr-xr-x | tests/test-binary-io.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test-binary-io.sh b/tests/test-binary-io.sh new file mode 100755 index 0000000..c4dd6e9 --- /dev/null +++ b/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 |