2022-07-20 22:34:45 -04:00
|
|
|
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
import logging
|
|
|
|
import os
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
from pytest_embedded_idf.dut import IdfDut
|
|
|
|
|
|
|
|
|
2024-01-03 06:32:00 -05:00
|
|
|
@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='esp32p4 support TBD') # TODO: IDF-8988
|
2022-07-20 22:34:45 -04:00
|
|
|
@pytest.mark.supported_targets
|
|
|
|
@pytest.mark.generic
|
|
|
|
def test_blink(dut: IdfDut) -> None:
|
|
|
|
# check and log bin size
|
|
|
|
binary_file = os.path.join(dut.app.binary_path, 'blink.bin')
|
|
|
|
bin_size = os.path.getsize(binary_file)
|
|
|
|
logging.info('blink_bin_size : {}KB'.format(bin_size // 1024))
|