Lines Matching refs:fixture
29 struct shell_backend_uart_fixture *fixture = f; in before() local
31 uart_irq_tx_enable(fixture->dev); in before()
32 uart_irq_rx_enable(fixture->dev); in before()
34 uart_err_check(fixture->dev); in before()
39 struct shell_backend_uart_fixture *fixture = f; in after() local
41 uart_irq_tx_disable(fixture->dev); in after()
42 uart_irq_rx_disable(fixture->dev); in after()
44 uart_emul_flush_rx_data(fixture->dev); in after()
45 uart_emul_flush_tx_data(fixture->dev); in after()
59 uart_emul_put_rx_data(fixture->dev, "kernel version\n", sizeof("kernel version\n")); in ZTEST_F()
64 uart_emul_get_tx_data(fixture->dev, tx_content, SAMPLE_DATA_SIZE); in ZTEST_F()
73 uart_emul_put_rx_data(fixture->dev, "kernel cycles\n", sizeof("kernel cycles\n")); in ZTEST_F()
78 uart_emul_get_tx_data(fixture->dev, tx_content, SAMPLE_DATA_SIZE); in ZTEST_F()
86 uart_emul_put_rx_data(fixture->dev, "kernel uptime\n", sizeof("kernel uptime\n")); in ZTEST_F()
91 uart_emul_get_tx_data(fixture->dev, tx_content, SAMPLE_DATA_SIZE); in ZTEST_F()
114 static struct shell_backend_uart_fixture fixture = { in setup() local
118 zassert_not_null(fixture.dev); in setup()
119 enable_shell_euart0(fixture.dev, &shell_euart0); in setup()
125 uart_emul_get_tx_data(fixture.dev, tx_content, SAMPLE_DATA_SIZE); in setup()
128 return &fixture; in setup()