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