File: test-binary-io.sh

package info (click to toggle)
gnulib 20140202%2Bstable-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 63,340 kB
  • ctags: 21,125
  • sloc: ansic: 241,758; sh: 21,791; cpp: 1,551; yacc: 1,252; perl: 807; makefile: 324; lisp: 271; java: 5
file content (14 lines) | stat: -rwxr-xr-x 371 bytes parent folder | download | duplicates (71)
1
2
3
4
5
6
7
8
9
10
11
12
13
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