From df94d61a456473eb5516571b5e73b723c24bb551 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 29 Nov 2019 23:41:18 +0100 Subject: uart: Add a test-case with intentional parity errors. --- decoder/test/uart/test.conf | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'decoder/test/uart/test.conf') diff --git a/decoder/test/uart/test.conf b/decoder/test/uart/test.conf index 21f1fac..383a891 100644 --- a/decoder/test/uart/test.conf +++ b/decoder/test/uart/test.conf @@ -16,6 +16,14 @@ test hello_world_7o1_115200 output uart python match hello_world_7o1_115200.python output uart binary class tx match hello_world_7o1_115200.bin_tx +# Intentionally cause parity errors. +test hello_world_7o1_115200_parity_err + protocol-decoder uart channel tx=0 option baudrate=115200 option parity_type=even option num_data_bits=7 option format=ascii + input uart/hello_world/7o1/hello_world_7o1_115200.sr + output uart annotation match hello_world_7o1_115200_parity_err.output + output uart python match hello_world_7o1_115200_parity_err.python + output uart binary class tx match hello_world_7o1_115200_parity_err.bin_tx + test hello_world_7e1_115200 protocol-decoder uart channel tx=0 option baudrate=115200 option parity_type=even option num_data_bits=7 option format=ascii input uart/hello_world/7e1/hello_world_7e1_115200.sr -- cgit v1.2.3-54-g00ecf