Skip to content

Commit

Permalink
can: add Python output to std and ext brs test cases
Browse files Browse the repository at this point in the history
The CAN decoder implementation got extended to output Python data.
Adjust the test expectation to cover these on some dump files.
  • Loading branch information
gsigh committed Jul 26, 2020
1 parent 18260bc commit b8f27d2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions decoder/test/can/can_fd_ext_brs_64.python
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5068-38639 can: ('extended', 66, 'data', 15, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63])
1 change: 1 addition & 0 deletions decoder/test/can/can_fd_ext_brs_8.python
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2117-12235 can: ('extended', 66, 'data', 8, [0, 1, 2, 3, 4, 5, 6, 7])
1 change: 1 addition & 0 deletions decoder/test/can/can_fd_std_brs_64.python
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5084-36455 can: ('standard', 66, None, 15, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63])
1 change: 1 addition & 0 deletions decoder/test/can/can_fd_std_brs_8.python
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1084-9001 can: ('standard', 66, None, 8, [0, 1, 2, 3, 4, 5, 6, 7])
4 changes: 4 additions & 0 deletions decoder/test/can/test.conf
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,22 @@ test can_fd_std_brs_8
protocol-decoder can channel can_rx=0 option nominal_bitrate=1000000
input can/can_fd/arbitrary_traffic/can_fd_std_brs_8.sr
output can annotation match can_fd_std_brs_8.output
output can python match can_fd_std_brs_8.python

test can_fd_std_brs_64
protocol-decoder can channel can_rx=0 option nominal_bitrate=1000000
input can/can_fd/arbitrary_traffic/can_fd_std_brs_64.sr
output can annotation match can_fd_std_brs_64.output
output can python match can_fd_std_brs_64.python

test can_fd_ext_brs_8
protocol-decoder can channel can_rx=0 option nominal_bitrate=1000000
input can/can_fd/arbitrary_traffic/can_fd_ext_brs_8.sr
output can annotation match can_fd_ext_brs_8.output
output can python match can_fd_ext_brs_8.python

test can_fd_ext_brs_64
protocol-decoder can channel can_rx=0 option nominal_bitrate=1000000
input can/can_fd/arbitrary_traffic/can_fd_ext_brs_64.sr
output can annotation match can_fd_ext_brs_64.output
output can python match can_fd_ext_brs_64.python

0 comments on commit b8f27d2

Please sign in to comment.