4 lava-test-case canconfig_can0 --result skip
5 lava-test-case start_can0 --result skip
6 lava-test-case send_frames_through_can0 --result skip
7 lava-test-case receive_frames_through_can0 --result skip
8 lava-test-case stop_can0 --result skip
12 if [ ! -e /sys/class/net/can0 ];then
18 ip -V |grep -q BusyBox
20 echo "WARN: busybox ip is not handled"
21 # busybox ip does not handle bitrate option
25 #Make sure always that the can interface is down before
26 #starting the config step.
29 #config the can interfaces
30 ip link set can0 type can bitrate 50000 loopback on
33 lava-test-case canconfig_can0 --result pass
35 lava-test-case canconfig_can0 --result fail
42 lava-test-case start_can0 --result pass
44 lava-test-case start_can0 --result fail
53 lava-test-case send_frames_through_can0 --result pass
55 lava-test-case send_frames_through_can0 --result fail
61 candump can0 > $file_can &
63 if [ -s $file_can ];then
64 lava-test-case receive_frames_through_can0 --result pass
66 lava-test-case receive_frames_through_can0 --result fail
73 lava-test-case stop_can0 --result pass
75 lava-test-case stop_can0 --result fail