repo stringlengths 2 99 | file stringlengths 13 225 | code stringlengths 0 18.3M | file_length int64 0 18.3M | avg_line_length float64 0 1.36M | max_line_length int64 0 4.26M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
esp-idf | esp-idf-master/components/driver/test_apps/gpio_extensions/pytest_gpio_extensions.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded_idf import IdfDut
CONFIGS = [
'iram_safe',
'release',
]
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.esp32s2
@pytest... | 1,130 | 22.5625 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/rmt/pytest_rmt.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.esp32c3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.parame... | 484 | 18.4 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/legacy_rmt_driver/pytest_legacy_rmt_driver.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.esp32c3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.parame... | 458 | 21.95 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/i2s_test_apps/i2s_tdm/pytest_i2s_tdm_full_duplex.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
@pytest.mark.esp32s3
@pytest.mark.esp32c3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.generic_multi_device
@pytest.mark.parametrize('count', [
2,
], indirect=True)
def t... | 424 | 25.5625 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/i2s_test_apps/i2s/pytest_i2s.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32c3
@pytest.mark.esp32c6
@pytest.mark.esp32s3
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.par... | 487 | 18.52 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/pytest_legacy_i2s_adc_dac.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'release',
],
indirect=True,
)
def test_i2s_adc_dac(dut: Du... | 427 | 20.4 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/pytest_legacy_i2s.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.par... | 473 | 18.75 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/spi/slave/pytest_spi_slave.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
# If `test_env` is define, should not run on generic runner
@pytest.mark.supported_targets
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.parametrize('config', ['defaults',], indirect=T... | 1,080 | 37.607143 | 93 | py |
esp-idf | esp-idf-master/components/driver/test_apps/spi/slave_hd/pytest_spi_slave_hd.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
# If `test_env` is define, should not run on generic runner
@pytest.mark.supported_targets
@pytest.mark.esp32h2
@pytest.mark.generic
def test_slave_hd_single_dev(case_tester) -> None: # t... | 982 | 35.407407 | 93 | py |
esp-idf | esp-idf-master/components/driver/test_apps/spi/param/pytest_spi_param.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
# If `test_env` is define, should not run on generic runner
@pytest.mark.supported_targets
@pytest.mark.esp32h2
@pytest.mark.generic
def test_param_single_dev(case_tester) -> None: # type... | 976 | 35.185185 | 93 | py |
esp-idf | esp-idf-master/components/driver/test_apps/spi/master/pytest_spi_master.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
# If `test_env` is define, should not run on generic runner
@pytest.mark.supported_targets
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.parametrize('config', ['defaults', 'release', '... | 1,739 | 34.510204 | 116 | py |
esp-idf | esp-idf-master/components/driver/test_apps/legacy_mcpwm_driver/pytest_legacy_mcpwm.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32s3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'releas... | 430 | 18.590909 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/rs485/pytest_rs485.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
@pytest.mark.esp32
@pytest.mark.multi_dut_modbus_rs485
@pytest.mark.parametrize('count, config', [(2, 'release',)], indirect=True)
def test_rs485_multi_dev(case_tester) -> None: # t... | 384 | 31.083333 | 76 | py |
esp-idf | esp-idf-master/components/driver/test_apps/dac_test_apps/legacy_dac_driver/pytest_legacy_dac.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'release',
],
indirect=True,
)
def test_l... | 386 | 18.35 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/dac_test_apps/dac/pytest_dac.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'iram_safe',
'release',
],
indire... | 400 | 18.095238 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/legacy_pcnt_driver/pytest_legacy_pcnt.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
... | 461 | 19.086957 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/ledc/pytest_ledc.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded_idf import IdfDut
@pytest.mark.supported_targets
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'iram_safe',
'release',
],
indirect... | 402 | 19.15 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/gptimer/pytest_gptimer.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'iram_safe',
'release',
],
indirect=True,
... | 673 | 18.823529 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/analog_comparator/pytest_ana_cmpr.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'iram_safe',
'release',
],
indirect=True,
)
def test_ana_... | 381 | 18.1 | 66 | py |
esp-idf | esp-idf-master/components/driver/test_apps/legacy_rtc_temp_driver/pytest_legacy_temp_sensor_driver.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32s2
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.esp32c2
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.para... | 547 | 23.909091 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/sdio/pytest_sdio.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
@pytest.mark.esp32
@pytest.mark.sdio_master_slave
@pytest.mark.parametrize('count', [2,], indirect=True)
def test_sdio_multi_dev(case_tester) -> None: # type: ignore
case_tester.run_all... | 362 | 29.25 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/mcpwm/pytest_mcpwm.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32s3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'releas... | 444 | 18.347826 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/pulse_cnt/pytest_pulse_cnt.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
... | 469 | 18.583333 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/temperature_sensor/pytest_temperature_sensor.py | # SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from idf_unity_tester import CaseTester
from pytest_embedded import Dut
@pytest.mark.esp32s2
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.esp32c2
@pytest.mark.esp32c6
@pytest.mark.esp32h... | 1,185 | 25.954545 | 80 | py |
esp-idf | esp-idf-master/components/driver/test_apps/parlio/pytest_parlio_unity.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'iram_safe',
'release',
],
indi... | 405 | 18.333333 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/twai/pytest_twai.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import logging
from time import sleep
import pytest
from can import Bus, Message
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.e... | 2,568 | 23.235849 | 85 | py |
esp-idf | esp-idf-master/components/driver/test_apps/gpio/pytest_gpio.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded_idf import IdfDut
CONFIGS = [
'iram_safe',
'release',
]
@pytest.mark.supported_targets
@pytest.mark.generic
@pytest.mark.parametrize('config', CONFIGS, indirect=True)... | 991 | 23.195122 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/touch_sensor_v2/pytest_touch_sensor_v2.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'release',
],
indirect=True... | 416 | 20.947368 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/legacy_timer_driver/pytest_legacy_timer_driver.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
@pytest.mark.parametrize('config', [
'release',
], indirect=True)
def test_legacy_timer_driver(dut: Dut) -> ... | 374 | 24 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/legacy_adc_driver/pytest_legacy_adc.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.esp32c3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.adc
@pytest.mark.parametriz... | 751 | 18.789474 | 71 | py |
esp-idf | esp-idf-master/components/driver/test_apps/touch_sensor_v1/pytest_touch_sensor_v1.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'release',
],
indirect=True,
)
def test_touch_sens... | 392 | 20.833333 | 71 | py |
esp-idf | esp-idf-master/components/esp-tls/test_apps/pytest_esp-tls.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
def test_esp_tls(dut: Dut) -> None:
dut.run_all_single_board_cases()
| 283 | 24.818182 | 71 | py |
esp-idf | esp-idf-master/components/nvs_flash/nvs_partition_tool/nvs_tool.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import argparse
import os
import sys
import traceback
import nvs_logger
import nvs_parser
from nvs_logger import nvs_log
from nvs_parser import nvs_const
def program_args() -> argparse... | 3,689 | 28.758065 | 88 | py |
esp-idf | esp-idf-master/components/nvs_flash/nvs_partition_tool/nvs_parser.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
from typing import Any, Dict, List, Optional
from zlib import crc32
# Constants
class NVS_Constants:
class ConstantError(AttributeError):
pass
def __init__(self) -> Non... | 10,116 | 34.374126 | 147 | py |
esp-idf | esp-idf-master/components/nvs_flash/nvs_partition_tool/nvs_logger.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import binascii
import json
import sys
from typing import Any, Dict, List, Union
from nvs_parser import NVS_Entry, NVS_Partition, nvs_const
class NVS_Logger:
ansi = {
'red'... | 25,572 | 37.22571 | 109 | py |
esp-idf | esp-idf-master/components/nvs_flash/test_apps/pytest_nvs_flash.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
from pytest_embedded_idf.dut import IdfDut
CONFIGS_NVS_ENCR_FLASH_ENC = [
pytest.param('nvs_encr_flash_enc_esp32', marks=[pytest.mark.esp32]),
pytest.param('nvs_encr_flash_enc_esp32c3', mar... | 1,142 | 31.657143 | 77 | py |
esp-idf | esp-idf-master/components/nvs_flash/host_test/nvs_host_test/pytest_nvs_host_linux.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.linux
@pytest.mark.host_test
def test_nvs_host_linux(dut: Dut) -> None:
dut.expect_exact('All tests passed', timeout=60)
| 301 | 26.454545 | 66 | py |
esp-idf | esp-idf-master/components/nvs_flash/host_test/nvs_page_test/pytest_nvs_page_linux.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.linux
@pytest.mark.host_test
def test_nvs_page_linux(dut: Dut) -> None:
dut.expect_unity_test_output(timeout=120)
| 294 | 25.818182 | 66 | py |
esp-idf | esp-idf-master/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py | #!/usr/bin/env python
#
# esp-idf NVS partition generation tool. Tool helps in generating NVS-compatible
# partition binary, with key-value pair entries provided via a CSV file.
#
# SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
#
import argparse
import arra... | 42,686 | 37.665761 | 149 | py |
esp-idf | esp-idf-master/components/esp_rom/test_apps/linux_rom_apis/pytest_esp_rom_linux.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.linux
@pytest.mark.host_test
def test_esp_rom_linux(dut: Dut) -> None:
dut.expect_exact('All tests passed', timeout=5)
| 299 | 26.272727 | 66 | py |
esp-idf | esp-idf-master/components/esp_rom/test_apps/rom_tests/pytest_esp_rom.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32c3
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.generic
def test_esp_rom(dut: Dut) -> None:
... | 497 | 20.652174 | 71 | py |
esp-idf | esp-idf-master/components/ulp/esp32ulp_mapgen.py | #!/usr/bin/env python
# esp32ulp_mapgen utility converts a symbol list provided by nm into an export script
# for the linker and a header file.
#
# SPDX-FileCopyrightText: 2016-2021 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
from __future__ import print_function
import argparse
import o... | 2,441 | 32 | 131 | py |
esp-idf | esp-idf-master/components/ulp/test_apps/ulp_fsm/pytest_ulp_fsm_app.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.generic
def test_ulp_fsm(dut: Dut) -> None:
dut.run_all_single_board_cases()
| 311 | 21.285714 | 71 | py |
esp-idf | esp-idf-master/components/ulp/test_apps/lp_core/pytest_lp_core.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32c6
@pytest.mark.generic
def test_lp_core(dut: Dut) -> None:
dut.run_all_single_board_cases()
| 271 | 21.666667 | 71 | py |
esp-idf | esp-idf-master/components/ulp/test_apps/ulp_riscv/pytest_ulp_riscv.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.generic
def test_ulp_riscv(case_tester) -> None: # type: ignore
case_tester.run_all_cases()
| 276 | 22.083333 | 71 | py |
esp-idf | esp-idf-master/components/esp_common/test_apps/esp_common/pytest_esp_common.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.generic
@pytest.mark.supported_targets
@pytest.mark.parametrize(
'config',
[
'default'
],
indirect=True,
)
def test_esp_common(... | 1,815 | 18.73913 | 75 | py |
esp-idf | esp-idf-master/components/esp_bootloader_format/test_apps/pytest_esp_bootloader_format.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.generic
def test_esp_bootloader_format(dut: Dut) -> None:
dut.expect_unity_test_output()
| 276 | 22.083333 | 66 | py |
esp-idf | esp-idf-master/components/wifi_provisioning/python/wifi_ctrl_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: wifi_ctrl.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_poo... | 2,115 | 56.189189 | 895 | py |
esp-idf | esp-idf-master/components/wifi_provisioning/python/wifi_scan_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: wifi_scan.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_poo... | 3,273 | 73.409091 | 1,765 | py |
esp-idf | esp-idf-master/components/wifi_provisioning/python/wifi_config_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: wifi_config.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_p... | 3,099 | 72.809524 | 1,659 | py |
esp-idf | esp-idf-master/components/wifi_provisioning/python/wifi_constants_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: wifi_constants.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descripto... | 1,934 | 59.46875 | 863 | py |
esp-idf | esp-idf-master/components/console/test_apps/console/pytest_console.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.generic
@pytest.mark.supported_targets
def test_console(dut: Dut) -> None:
dut.run_all_single_board_cases()
@pytest.mark.generic
@pytest.mark.sup... | 1,054 | 24.119048 | 71 | py |
esp-idf | esp-idf-master/components/spiffs/spiffsgen.py | #!/usr/bin/env python
#
# spiffsgen is a tool used to generate a spiffs image from a directory
#
# SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
from __future__ import division, print_function
import argparse
import io
import math
import os
import struct
... | 23,766 | 39.011785 | 147 | py |
esp-idf | esp-idf-master/components/spiffs/test_apps/pytest_spiffs.py | # SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.generic
@pytest.mark.parametrize('config', [
'default',
'release',
], indirect=True)
def test_spiffs_generic... | 880 | 24.911765 | 66 | py |
esp-idf | esp-idf-master/components/spiffs/host_test/pytest_spiffs_linux.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.linux
@pytest.mark.host_test
def test_spiffs_linux(dut: Dut) -> None:
dut.expect_unity_test_output(timeout=5)
| 290 | 25.454545 | 66 | py |
esp-idf | esp-idf-master/components/spiffs/test_spiffsgen/test_spiffsgen.py | #!/usr/bin/env python
# SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import unittest
try:
import typing
except ImportError:
pass
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
try:
import spiffsgen
except I... | 2,295 | 31.338028 | 90 | py |
esp-idf | esp-idf-master/components/spiffs/test_spiffsgen/__init__.py | 0 | 0 | 0 | py | |
esp-idf | esp-idf-master/components/esp_pm/test_apps/esp_pm/pytest_esp_pm.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
from pytest_embedded import Dut
@pytest.mark.generic
@pytest.mark.supported_targets
@pytest.mark.parametrize('config', [
'default',
'slp_iram_opt',
'limits',
'options',
], indir... | 402 | 21.388889 | 71 | py |
esp-idf | esp-idf-master/components/esp_ringbuf/test_apps/pytest_esp_ringbuf.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32c3
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'default',
'ringbuf_... | 802 | 20.131579 | 94 | py |
esp-idf | esp-idf-master/components/esp_http_client/test_apps/pytest_esp_http_client_ut.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
def test_esp_http_client(dut: Dut) -> None:
dut.run_all_single_board_cases()
| 289 | 23.166667 | 71 | py |
esp-idf | esp-idf-master/components/esp_event/test_apps/pytest_esp_event.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32c3
@pytest.mark.generic
def test_esp_event(dut: Dut) -> None:
dut.run_all_single_board_cases()
@pyte... | 604 | 24.208333 | 94 | py |
esp-idf | esp-idf-master/components/esp_event/host_test/esp_event_unit_test/pytest_esp_event_linux.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.linux
@pytest.mark.host_test
def test_esp_event_linux(dut: Dut) -> None:
dut.expect_exact('All tests passed', timeout=5)
| 301 | 26.454545 | 66 | py |
esp-idf | esp-idf-master/components/tcp_transport/test_apps/pytest_tcp_transport_ut.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
CONFIGS = [
pytest.param('default', marks=[pytest.mark.esp32, pytest.mark.esp32c3]),
pytest.param('psram_esp32', marks=[pytest.mark.esp32]),
]
@pytest.mark... | 472 | 26.823529 | 76 | py |
esp-idf | esp-idf-master/components/esp_http_server/test_apps/pytest_esp_http_server_ut.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
def test_esp_http_server(dut: Dut) -> None:
dut.run_all_single_board_cases()
| 289 | 23.166667 | 71 | py |
esp-idf | esp-idf-master/components/esp_local_ctrl/python/esp_local_ctrl_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: esp_local_ctrl.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descripto... | 3,522 | 77.288889 | 1,895 | py |
esp-idf | esp-idf-master/components/wear_levelling/test_apps/pytest_wear_levelling.py | # SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.generic
@pytest.mark.parametrize('config', [
'4k',
'512perf',
'512safe',
'release',
], indirect=True... | 400 | 20.105263 | 66 | py |
esp-idf | esp-idf-master/components/wear_levelling/host_test/pytest_wear_levelling_linux.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.linux
@pytest.mark.host_test
def test_wear_levelling_linux(dut: Dut) -> None:
dut.expect_exact('All tests passed', timeout=120)
| 308 | 27.090909 | 66 | py |
esp-idf | esp-idf-master/components/partition_table/check_sizes.py | #!/usr/bin/env python
#
# check_sizes.py is a tool run by the ESP-IDF build system
# to check a particular binary fits in the available partitions of
# a particular type/subtype. Can be used to check if the app binary fits in
# all available app partitions, for example.
#
# (Can also check if the bootloader binary fits... | 6,278 | 42.909091 | 137 | py |
esp-idf | esp-idf-master/components/partition_table/gen_extra_subtypes_inc.py | #!/usr/bin/env python
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import argparse
def gen_header_file(path: str, subtypes: str) -> None:
HDR_MESSAGE = '/* Automatically generated file. DO NOT EDIT. */\n\n'
PARTTOOL_USAGE = 'If you want to use partt... | 1,593 | 40.947368 | 114 | py |
esp-idf | esp-idf-master/components/partition_table/parttool.py | #!/usr/bin/env python
#
# parttool is used to perform partition level operations - reading,
# writing, erasing and getting info about the partition.
#
# SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
from __future__ import division, print_function
import arg... | 14,374 | 39.041783 | 156 | py |
esp-idf | esp-idf-master/components/partition_table/gen_empty_partition.py | #!/usr/bin/env python
#
# generates an empty binary file
#
# This tool generates an empty binary file of the required size.
#
# SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
from __future__ import division, print_function, unicode_literals
import argparse
... | 1,361 | 23.763636 | 104 | py |
esp-idf | esp-idf-master/components/partition_table/gen_esp32part.py | #!/usr/bin/env python
#
# ESP32 partition table generation tool
#
# Converts partition tables to/from CSV and binary formats.
#
# See https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/partition-tables.html
# for explanation of partition table structure and uses.
#
# SPDX-FileCopyrightText: 2016-2021 Espr... | 23,332 | 36.939837 | 157 | py |
esp-idf | esp-idf-master/components/partition_table/test_gen_esp32part_host/gen_esp32part_tests.py | #!/usr/bin/env python
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
from __future__ import division, print_function
import csv
import io
import os
import struct
import subprocess
import sys
import tempfile
import unittest
from test_utils import Py23TestC... | 23,312 | 37.093137 | 140 | py |
esp-idf | esp-idf-master/components/partition_table/test_gen_esp32part_host/check_sizes_test.py | #!/usr/bin/env python
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
from __future__ import division, print_function
import io
import sys
import unittest
from test_utils import Py23TestCase
try:
from typing import IO
except ImportError:
pass # o... | 3,540 | 31.787037 | 113 | py |
esp-idf | esp-idf-master/components/partition_table/test_gen_esp32part_host/test_utils.py | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import unittest
try:
from typing import Any
except ImportError:
pass # only needed to check type annotations
class Py23TestCase(unittest.TestCase):
def __init__(self, *args, **kwargs): # type:... | 747 | 34.619048 | 104 | py |
esp-idf | esp-idf-master/components/vfs/test_apps/pytest_vfs.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32c2
@pytest.mark.esp32c3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.parametrize('config', [
'default',
], indirect=... | 799 | 20.621622 | 66 | py |
esp-idf | esp-idf-master/components/spi_flash/test_apps/flash_suspend/pytest_flash_auto_suspend.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32c3
@pytest.mark.flash_suspend
@pytest.mark.parametrize(
'config',
[
'release',
],
indirect=True,
)
def test_flash_auto_suspe... | 389 | 19.526316 | 66 | py |
esp-idf | esp-idf-master/components/spi_flash/test_apps/flash_mmap/pytest_flash_mmap.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'release',
],
indirect=True,
)
def test_flash_m... | 1,303 | 20.377049 | 71 | py |
esp-idf | esp-idf-master/components/spi_flash/test_apps/mspi_test/pytest_mspi_test.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'release',
'special',
],
indirect=True,... | 896 | 17.306122 | 71 | py |
esp-idf | esp-idf-master/components/spi_flash/test_apps/flash_encryption/pytest_flash_encrypted.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.flash_encryption
@pytest.mark.parametrize(
'config',
[
'release',
],
indirect=True,
... | 890 | 18.369565 | 71 | py |
esp-idf | esp-idf-master/components/spi_flash/test_apps/esp_flash_stress/pytest_esp_flash_stress.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'release',
],
indirect=True,
)
def test_esp_fla... | 1,116 | 18.258621 | 71 | py |
esp-idf | esp-idf-master/components/spi_flash/test_apps/esp_flash/pytest_esp_flash.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'release',
'flash_qio',
'verify',
... | 1,112 | 18.875 | 72 | py |
esp-idf | esp-idf-master/components/mqtt/test_apps/test_mqtt5/pytest_mqtt5_ut.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c2
@pytest.mark.ethernet
def test_mqtt5_client(dut: Dut) -> None:
dut.expect_unity_test_output()
| 301 | 24.166667 | 66 | py |
esp-idf | esp-idf-master/components/mqtt/test_apps/test_mqtt/pytest_mqtt_ut.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c2
@pytest.mark.ethernet
def test_mqtt_client(dut: Dut) -> None:
dut.expect_unity_test_output()
| 300 | 24.083333 | 66 | py |
esp-idf | esp-idf-master/components/espcoredump/espcoredump.py | #!/usr/bin/env python
#
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: Apache-2.0
#
import json
import logging
import os.path
from typing import Any
try:
from esp_coredump import CoreDump
except ImportError:
raise ModuleNotFoundError('No module named "esp_cored... | 2,290 | 28.371795 | 102 | py |
esp-idf | esp-idf-master/components/esptool_py/esptool/esptool.py | #
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: Apache-2.0
#
import subprocess
import sys
if __name__ == '__main__':
sys.exit(subprocess.run([sys.executable, '-m', 'esptool'] + sys.argv[1:]).returncode)
| 259 | 20.666667 | 89 | py |
esp-idf | esp-idf-master/components/esptool_py/esptool/espsecure.py | #
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: Apache-2.0
#
import subprocess
import sys
if __name__ == '__main__':
sys.exit(subprocess.run([sys.executable, '-m', 'espsecure'] + sys.argv[1:]).returncode)
| 261 | 20.833333 | 91 | py |
esp-idf | esp-idf-master/components/esptool_py/esptool/espefuse.py | #
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: Apache-2.0
#
import subprocess
import sys
if __name__ == '__main__':
sys.exit(subprocess.run([sys.executable, '-m', 'espefuse'] + sys.argv[1:]).returncode)
| 260 | 20.75 | 90 | py |
esp-idf | esp-idf-master/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py | #!/usr/bin/env python
#
# ESP32 x509 certificate bundle generation utility
#
# Converts PEM and DER certificates to a custom bundle format which stores just the
# subject name and public key to reduce space
#
# The bundle will have the format: number of certificates; crt 1 subject name length; crt 1 public key length;
... | 7,004 | 31.281106 | 129 | py |
esp-idf | esp-idf-master/components/mbedtls/esp_crt_bundle/test_gen_crt_bundle/test_gen_crt_bundle.py | #!/usr/bin/env python
import os
import sys
import unittest
try:
import gen_crt_bundle
except ImportError:
sys.path.append('..')
import gen_crt_bundle
idf_path = os.environ['IDF_PATH']
ca_crts_path = idf_path + '/components/mbedtls/esp_crt_bundle/'
test_crts_path = idf_path + '/com... | 2,660 | 30.305882 | 104 | py |
esp-idf | esp-idf-master/components/mbedtls/test_apps/pytest_mbedtls_ut.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
def test_mbedtls(dut: Dut) -> None:
dut.run_all_single_board_cases()
@pytest.mark.esp32
@pytest.mark.gener... | 1,518 | 18.727273 | 71 | py |
esp-idf | esp-idf-master/components/cxx/test_apps/general/pytest_cxx_general.py | # SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
configurations = [
'noexcept',
'exceptions_rtti'
]
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.generic
@pytest.mark.parametrize('config', configuration... | 1,217 | 28 | 66 | py |
esp-idf | esp-idf-master/components/cxx/test_apps/exception_no_except/pytest_cxx_exception_no_except.py | # SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.generic
def test_cxx_noexcept_out_of_range(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of t... | 700 | 25.961538 | 66 | py |
esp-idf | esp-idf-master/components/cxx/test_apps/exception/pytest_cxx_exception.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.generic
def test_cxx_exception(dut: Dut) -> None:
dut.run_all_single_board_cases()
| 296 | 21.846154 | 71 | py |
esp-idf | esp-idf-master/components/cxx/test_apps/rtti/pytest_cxx_rtti.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.generic
def test_cxx_rtti(dut: Dut) -> None:
dut.run_all_single_board_cases()
| 291 | 21.461538 | 71 | py |
esp-idf | esp-idf-master/components/log/test_apps/pytest_esp_log.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.generic
def test_esp_log(dut: Dut) -> None:
dut.run_all_single_board_cases()
| 277 | 22.166667 | 66 | py |
esp-idf | esp-idf-master/components/log/host_test/log_test/pytest_log_linux.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.linux
@pytest.mark.host_test
def test_log_linux(dut: Dut) -> None:
dut.expect_exact('All tests passed', timeout=5)
| 295 | 25.909091 | 66 | py |
esp-idf | esp-idf-master/components/protocomm/test_apps/pytest_protocomm_ut.py | # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
def test_protocomm(dut: Dut) -> None:
dut.run_all_single_board_cases()
| 283 | 22.666667 | 71 | py |
esp-idf | esp-idf-master/components/protocomm/python/session_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: session.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
... | 1,504 | 47.548387 | 544 | py |
esp-idf | esp-idf-master/components/protocomm/python/constants_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: constants.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_poo... | 1,186 | 44.653846 | 401 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.