pytest_crypto.py 527 B

1234567891011121314151617
  1. # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
  2. # SPDX-License-Identifier: CC0-1.0
  3. import os
  4. import pytest
  5. from pytest_embedded import Dut
  6. @pytest.mark.supported_targets
  7. @pytest.mark.generic
  8. def test_crypto(dut: Dut) -> None:
  9. # if the env variable IDF_FPGA_ENV is set, we would need a longer timeout
  10. # as tests for efuses burning security peripherals would be run
  11. timeout = 600 if os.environ.get('IDF_ENV_FPGA') else 60
  12. dut.expect('main_task: Returned from app_main()', timeout=timeout)