mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 06:07:00 +00:00
caa79406aa
The source command does not search $PWD, and bash recently fixed itself to follow this behavior for /bin/sh. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
28 lines
841 B
Bash
Executable File
28 lines
841 B
Bash
Executable File
#!/bin/sh
|
|
# Copyright 2009 by Denys Vlasenko
|
|
# Licensed under GPL v2, see file LICENSE for details.
|
|
|
|
. ./testing.sh
|
|
|
|
# testing "test name" "options" "expected result" "file input" "stdin"
|
|
|
|
# Simple one-block file transfer
|
|
# rx => 'C'
|
|
# rx <= SOH <blockno> <255-blockno> <128 byte padded with x1A> <crc> <crc>
|
|
# rx => ACK
|
|
# rx <= EOT
|
|
# rx => ACK
|
|
testing "rx" \
|
|
"rx rx.OUTFILE | hexdump -vC && cat rx.OUTFILE" \
|
|
"\
|
|
00000000 43 06 06 |C..|\n\
|
|
00000003\n\
|
|
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????" \
|
|
"" "\1\1\376\
|
|
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????\
|
|
\x1A\x1A\x1A\x1A\x1A\x4B\xB0\4"
|
|
|
|
rm -f rx.OUTFILE 2>/dev/null
|
|
|
|
exit $FAILCOUNT
|