1# SPDX-License-Identifier: Apache-2.0
2
3board_set_robot_runner_ifnset(renode-robot)
4
5# `--variable` is a renode-test argument, for setting a variable that can be later used in a .robot file:
6# ELF:         used in common.robot to set the `elf` variable in the default .resc script defined in board.cmake
7# RESC:        path to the .resc script, defined in board.cmake
8# UART:        default UART used by Robot in tests, defined in board.cmake
9# KEYWORDS:    path to common.robot, which contains common Robot keywords
10# RESULTS_DIR: directory in which Robot artifacts will be generated after running a testsuite
11board_runner_args(renode-robot "--renode-robot-arg=--variable=ELF:@${PROJECT_BINARY_DIR}/${KERNEL_ELF_NAME}")
12board_runner_args(renode-robot "--renode-robot-arg=--variable=RESC:@${RENODE_SCRIPT}")
13board_runner_args(renode-robot "--renode-robot-arg=--variable=UART:${RENODE_UART}")
14board_runner_args(renode-robot "--renode-robot-arg=--variable=KEYWORDS:${ZEPHYR_BASE}/tests/robot/common.robot")
15board_runner_args(renode-robot "--renode-robot-arg=--variable=RESULTS_DIR:${APPLICATION_BINARY_DIR}")
16
17board_finalize_runner_args(renode-robot)
18