summaryrefslogtreecommitdiffstats
path: root/tests.sh
blob: b6782cdd6635d46e396fc1cc3f9bd7d72cef550f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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