# @name
#	CAN Modular test
# @desc
#	CAN modular tests. No physical cables are required to run this test.
#	EVM needs to be in the right profile which supports the pinmux for
#	CAN. This comment applies to am335x-evm which requires EVM to be in
#	profile 1. Profile 1 supports CAN instead of wlan on this EVM.
#       Tests that CAN interface exists and driver is built as module
# @requires can

CAN_S_FUNC_MODULAR source 'common.sh'; interface='can0'; do_cmd cantest.sh --modular -i $interface

CAN_S_FUNC_MODULAR_MAIN_MCAN0 source 'common.sh'; interface='main_mcan0'; do_cmd cantest.sh --modular -i $interface

CAN_S_FUNC_MODULAR_MAIN_MCAN1 source 'common.sh'; interface='main_mcan1'; do_cmd cantest.sh --modular -i $interface

CAN_S_FUNC_MODULAR_MCU_MCAN0 source 'common.sh'; interface='mcu_mcan0'; do_cmd cantest.sh --modular -i $interface

CAN_S_FUNC_MODULAR_MCU_MCAN1 source 'common.sh';interface='mcu_mcan1'; do_cmd cantest.sh --modular -i $interface

CAN_S_FUNC_MODULAR_ALL source 'common.sh'; do_cmd cantest.sh --modular --all_interfaces
