summaryrefslogtreecommitdiffstats
path: root/src/gl/tests/test-binary-io.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/gl/tests/test-binary-io.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gl/tests/test-binary-io.sh b/src/gl/tests/test-binary-io.sh
new file mode 100755
index 0000000..a177d94
--- /dev/null
+++ b/src/gl/tests/test-binary-io.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+tmpfiles=""
+trap 'rm -fr $tmpfiles' 1 2 3 15
+
+tmpfiles="$tmpfiles t-bin-out0.tmp t-bin-out1.tmp"
+${CHECKER} ./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