CAN bus tests 99/14599/4
authorkhouloud touil <ktouil@baylibre.com>
Fri, 22 Jun 2018 12:26:49 +0000 (14:26 +0200)
committerkhouloud touil <ktouil@baylibre.com>
Mon, 2 Jul 2018 14:29:01 +0000 (16:29 +0200)
commitd69c057664659f8139781c5e3b548d96228b722f
treecd1f0fb9ee6b6690d235dc091015848ffdb1767f
parent11575952ece456be4e07c5f24ead3cf8783ddcba
CAN bus tests

This commit for testing CAN modules, sending and receiving frames, showing stats and and testing suitable bitrates for transmission.
The "test_can_loopback_mode" test can be run on a board with one interface.
This test will fail gracfully if the board dosen't have any CAN interface.
The other tests needs to be run on a board with two CAN interfaces (e.g. dra7 with external transceiver.)
These tests requires two interfaces on the same board to send frames with the first interface and to receive them with the other one
These tests will fail gracfully by skiping all test cases if the board doesn't have two interfaces.
This link for the DRA7xx-EVM job : http://lava.baylibre.com:10080/scheduler/job/2860
This link for the AM335X-BONEBLACK (no CAN interface) : http://lava.baylibre.com:10080/scheduler/job/2862

Change-Id: I7d4c69f7817adbea8281d264cbbb7fa55571584e
Signed-off-by: khouloud touil <ktouil@baylibre.com>
common/scripts/test_can_bitrate.sh [new file with mode: 0755]
common/scripts/test_can_loopback_mode.sh [new file with mode: 0755]
common/scripts/test_can_modules.sh [new file with mode: 0755]
common/scripts/test_can_send_receive.sh [new file with mode: 0755]
common/scripts/test_stats.sh [new file with mode: 0755]
test-suites/short-smoke/test_can.yaml [new file with mode: 0644]