1# Copyright (c) 2023 Nordic Semiconductor ASA
2#
3# SPDX-License-Identifier: Apache-2.0
4
5import logging
6
7from twister_harness import Shell
8
9logger = logging.getLogger(__name__)
10
11
12def test_shell_print_help(shell: Shell):
13    logger.info('send "help" command')
14    lines = shell.exec_command('help')
15    assert 'Available commands:' in lines, 'expected response not found'
16    logger.info('response is valid')
17
18
19def test_shell_print_version(shell: Shell):
20    logger.info('send "kernel version" command')
21    lines = shell.exec_command('kernel version')
22    assert any(['Zephyr version' in line for line in lines]), 'expected response not found'
23    logger.info('response is valid')
24