mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
fix(bitscrambler): example timeout in the bsasm
also added example pytest
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
import pytest
|
||||
from pytest_embedded import Dut
|
||||
|
||||
|
||||
@pytest.mark.esp32p4
|
||||
@pytest.mark.generic
|
||||
def test_bitscrambler_loopback_example(dut: Dut) -> None:
|
||||
dut.expect_exact('BitScrambler example main', timeout=5)
|
||||
dut.expect_exact('BitScrambler program complete. Input 40, output 40 bytes')
|
||||
|
||||
expected_lines = [
|
||||
'FF 00 00 00 00 00 00 00',
|
||||
'80 80 80 80 80 80 80 80',
|
||||
'01 02 04 08 10 20 40 80',
|
||||
'00 FF 00 FF 00 FF 00 FF',
|
||||
'FF 00 FF 00 FF 00 FF 00',
|
||||
]
|
||||
for line in expected_lines:
|
||||
dut.expect_exact(line)
|
Reference in New Issue
Block a user