2 # Copyright 2009 by Denys Vlasenko
3 # Licensed under GPLv2, see file LICENSE in this source tree.
7 # testing "test name" "options" "expected result" "file input" "stdin"
9 # Simple one-block file transfer
11 # rx <= SOH <blockno> <255-blockno> <128 byte padded with x1A> <crc> <crc>
16 "rx rx.OUTFILE | hexdump -vC && cat rx.OUTFILE" \
18 00000000 43 06 06 |C..|\n\
20 ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????" \
22 ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????\
23 \x1A\x1A\x1A\x1A\x1A\x4B\xB0\04"
25 rm -f rx.OUTFILE 2>/dev/null