Last change
on this file since 3440 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
File size:
852 bytes
|
Rev | Line | |
---|
[3320] | 1 | #!/bin/sh
|
---|
| 2 | # Copyright 2009 by Denys Vlasenko
|
---|
| 3 | # Licensed under GPLv2, see file LICENSE in this source tree.
|
---|
| 4 |
|
---|
| 5 | . ./testing.sh
|
---|
| 6 |
|
---|
| 7 | # testing "test name" "options" "expected result" "file input" "stdin"
|
---|
| 8 |
|
---|
| 9 | # Simple one-block file transfer
|
---|
| 10 | # rx => 'C'
|
---|
| 11 | # rx <= SOH <blockno> <255-blockno> <128 byte padded with x1A> <crc> <crc>
|
---|
| 12 | # rx => ACK
|
---|
| 13 | # rx <= EOT
|
---|
| 14 | # rx => ACK
|
---|
| 15 | testing "rx" \
|
---|
| 16 | "rx rx.OUTFILE | hexdump -vC && cat rx.OUTFILE" \
|
---|
| 17 | "\
|
---|
| 18 | 00000000 43 06 06 |C..|\n\
|
---|
| 19 | 00000003\n\
|
---|
| 20 | ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????" \
|
---|
| 21 | "" "\01\01\0376\
|
---|
| 22 | ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????\
|
---|
| 23 | \x1A\x1A\x1A\x1A\x1A\x4B\xB0\04"
|
---|
| 24 |
|
---|
| 25 | rm -f rx.OUTFILE 2>/dev/null
|
---|
| 26 |
|
---|
| 27 | exit $FAILCOUNT
|
---|
Note:
See
TracBrowser
for help on using the repository browser.