mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
f6a7fb13cd
This commit re-enables mbedtls and hal/crypto testapos on p4.
28 lines
946 B
Python
28 lines
946 B
Python
# SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
import os
|
|
|
|
import pytest
|
|
from pytest_embedded import Dut
|
|
|
|
|
|
@pytest.mark.supported_targets
|
|
@pytest.mark.generic
|
|
def test_crypto(dut: Dut) -> None:
|
|
# if the env variable IDF_FPGA_ENV is set, we would need a longer timeout
|
|
# as tests for efuses burning security peripherals would be run
|
|
timeout = 600 if os.environ.get('IDF_ENV_FPGA') else 60
|
|
|
|
dut.expect('Tests finished', timeout=timeout)
|
|
|
|
|
|
@pytest.mark.supported_targets
|
|
@pytest.mark.generic
|
|
@pytest.mark.parametrize('config', ['long_aes_operations'], indirect=True)
|
|
def test_crypto_long_aes_operations(dut: Dut) -> None:
|
|
# if the env variable IDF_FPGA_ENV is set, we would need a longer timeout
|
|
# as tests for efuses burning security peripherals would be run
|
|
timeout = 600 if os.environ.get('IDF_ENV_FPGA') else 60
|
|
|
|
dut.expect('Tests finished', timeout=timeout)
|