summaryrefslogtreecommitdiffstats
path: root/tests/files/tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/files/tests.sh')
-rwxr-xr-xtests/files/tests.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/files/tests.sh b/tests/files/tests.sh
new file mode 100755
index 0000000..2bf80b0
--- /dev/null
+++ b/tests/files/tests.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+HX_BIN="../../target/debug/hx"
+# param ordering 1
+$HX_BIN -ar tiny.txt
+# param ordering 2
+$HX_BIN tiny.txt -ar
+# binary output column width 4
+$HX_BIN -c4 -fb alphanumeric.txt
+# missing len param
+$HX_BIN --len tiny.txt
+# missing file name
+# $HX_BIN missing-file
+# simulate broken pipe
+dd if=/dev/random bs=512 count=10 | RUST_BACKTRACE=1 $HX_BIN | head -n 10