summaryrefslogtreecommitdiffstats
path: root/tests/sercomm/sercomm_test.ok
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-05-15 16:39:56 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-17 15:15:09 +0100
commita362ee90b42898dc730ffddf3bdc1b7a6523f1b8 (patch)
treef898daebc184cae1a65a490332afad36d7dd4662 /tests/sercomm/sercomm_test.ok
parent7af6d22a4e15ea7dde5869ca6784e06dbff87a28 (diff)
add sercomm unit test
Change-Id: I9e2e7fcda28e7c6844d5faa09e02acf537cea44d
Diffstat (limited to 'tests/sercomm/sercomm_test.ok')
-rw-r--r--tests/sercomm/sercomm_test.ok21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/sercomm/sercomm_test.ok b/tests/sercomm/sercomm_test.ok
new file mode 100644
index 00000000..f2e65032
--- /dev/null
+++ b/tests/sercomm/sercomm_test.ok
@@ -0,0 +1,21 @@
+Initializing sercomm_inst
+Registering callback for invalid DLCI
+Registering callback for valid DLCI
+Checking reject of overlod of valid DLCI
+Checking Rx of incoming msg for valid DLCI
+Feeding data into sercomm: 7e 17 03 32 33 7e
+dlci_rx_cb(): 32 33
+Checking Rx of incoming msg for unequipped DLCI
+Feeding data into sercomm: 7e 03 03 66 6f 6f 7e
+Checking Rx of incoming msg for valid DLCI
+Feeding data into sercomm: 7e 17 03 32 33 7e
+dlci_rx_cb(): 32 33
+Checking Rx of incoming msg with escaped char for valid DLCI
+Feeding data into sercomm: 7e 17 03 7d 12 33 7e
+dlci_rx_cb(): 32 33
+Checking that no chars are to be transmitted
+Transmitting msgb through sercomm
+Draining from UART: 0x7e 0x2a 0x03 0x4d 0x61 0x68 0x6c 0x7a 0x65 0x69 0x74 0x7e
+Testing built-in echo DLCI
+Feeding data into sercomm: 7e 80 03 65 63 68 6f 7e
+Draining from UART: 0x7e 0x80 0x03 0x65 0x63 0x68 0x6f 0x7e