File: test-binary-io.sh

package info (click to toggle)
libprelude 5.2.0-5.6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 22,756 kB
  • sloc: ansic: 106,364; cpp: 65,981; sh: 13,078; perl: 683; makefile: 677; awk: 343; yacc: 319; lex: 177; xml: 61; python: 41
file content (12 lines) | stat: -rwxr-xr-x 245 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15

tmpfiles="$tmpfiles t-bin-out0.tmp t-bin-out1.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

rm -fr $tmpfiles

exit 0