mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 13:44:32 +02:00
ci(adc): enable esp32c61 adc test
This commit is contained in:
@@ -4,10 +4,6 @@ components/esp_adc/test_apps/adc:
|
|||||||
disable:
|
disable:
|
||||||
- if: SOC_ADC_SUPPORTED != 1
|
- if: SOC_ADC_SUPPORTED != 1
|
||||||
- if: CONFIG_NAME == "gdma_iram_safe" and IDF_TARGET in ["esp32", "esp32s2", "esp32c2"]
|
- if: CONFIG_NAME == "gdma_iram_safe" and IDF_TARGET in ["esp32", "esp32s2", "esp32c2"]
|
||||||
disable_test:
|
|
||||||
- if: IDF_TARGET == "esp32c61"
|
|
||||||
temporary: true
|
|
||||||
reason: not runners for ESP32C61 ADC
|
|
||||||
depends_components:
|
depends_components:
|
||||||
- esp_adc
|
- esp_adc
|
||||||
- esp_driver_gpio
|
- esp_driver_gpio
|
||||||
|
@@ -9,7 +9,7 @@ from pytest_embedded_idf.utils import idf_parametrize
|
|||||||
@pytest.mark.parametrize('config', ['iram_safe', 'release', 'pm_enable'], indirect=True)
|
@pytest.mark.parametrize('config', ['iram_safe', 'release', 'pm_enable'], indirect=True)
|
||||||
@idf_parametrize(
|
@idf_parametrize(
|
||||||
'target',
|
'target',
|
||||||
['esp32', 'esp32s2', 'esp32s3', 'esp32c3', 'esp32c6', 'esp32h2', 'esp32c5', 'esp32p4'],
|
['esp32', 'esp32s2', 'esp32s3', 'esp32c3', 'esp32c6', 'esp32h2', 'esp32c5', 'esp32p4', 'esp32c61'],
|
||||||
indirect=['target'],
|
indirect=['target'],
|
||||||
)
|
)
|
||||||
def test_adc(dut: Dut) -> None:
|
def test_adc(dut: Dut) -> None:
|
||||||
|
@@ -10,25 +10,11 @@
|
|||||||
examples/peripherals/adc/continuous_read:
|
examples/peripherals/adc/continuous_read:
|
||||||
disable:
|
disable:
|
||||||
- if: SOC_ADC_DMA_SUPPORTED != 1
|
- if: SOC_ADC_DMA_SUPPORTED != 1
|
||||||
disable_test:
|
|
||||||
- if: IDF_TARGET == "esp32p4"
|
|
||||||
temporary: true
|
|
||||||
reason: lack of runners, TODO IDF-9573
|
|
||||||
- if: IDF_TARGET == "esp32c61"
|
|
||||||
temporary: true
|
|
||||||
reason: lack of runner
|
|
||||||
<<: *adc_dependencies
|
<<: *adc_dependencies
|
||||||
|
|
||||||
examples/peripherals/adc/oneshot_read:
|
examples/peripherals/adc/oneshot_read:
|
||||||
disable:
|
disable:
|
||||||
- if: SOC_ADC_SUPPORTED != 1
|
- if: SOC_ADC_SUPPORTED != 1
|
||||||
disable_test:
|
|
||||||
- if: IDF_TARGET == "esp32p4"
|
|
||||||
temporary: true
|
|
||||||
reason: lack of runner, TODO IDF-9573
|
|
||||||
- if: IDF_TARGET == "esp32c61"
|
|
||||||
temporary: true
|
|
||||||
reason: lack of runner
|
|
||||||
<<: *adc_dependencies
|
<<: *adc_dependencies
|
||||||
|
|
||||||
examples/peripherals/analog_comparator:
|
examples/peripherals/analog_comparator:
|
||||||
|
@@ -7,7 +7,9 @@ from pytest_embedded_idf.utils import idf_parametrize
|
|||||||
|
|
||||||
@pytest.mark.adc
|
@pytest.mark.adc
|
||||||
@idf_parametrize(
|
@idf_parametrize(
|
||||||
'target', ['esp32', 'esp32s2', 'esp32s3', 'esp32c3', 'esp32c6', 'esp32h2', 'esp32c5'], indirect=['target']
|
'target',
|
||||||
|
['esp32', 'esp32s2', 'esp32s3', 'esp32c3', 'esp32c6', 'esp32h2', 'esp32c5', 'esp32p4', 'esp32c61'],
|
||||||
|
indirect=['target'],
|
||||||
)
|
)
|
||||||
def test_adc_continuous(dut: Dut) -> None:
|
def test_adc_continuous(dut: Dut) -> None:
|
||||||
res = dut.expect(r'TASK: ret is 0, ret_num is (\d+) bytes')
|
res = dut.expect(r'TASK: ret is 0, ret_num is (\d+) bytes')
|
||||||
|
@@ -7,7 +7,9 @@ from pytest_embedded_idf.utils import idf_parametrize
|
|||||||
|
|
||||||
@pytest.mark.adc
|
@pytest.mark.adc
|
||||||
@idf_parametrize(
|
@idf_parametrize(
|
||||||
'target', ['esp32', 'esp32s2', 'esp32s3', 'esp32c3', 'esp32c6', 'esp32h2', 'esp32c5'], indirect=['target']
|
'target',
|
||||||
|
['esp32', 'esp32s2', 'esp32s3', 'esp32c3', 'esp32c6', 'esp32h2', 'esp32c5', 'esp32p4', 'esp32c61'],
|
||||||
|
indirect=['target'],
|
||||||
)
|
)
|
||||||
def test_adc_oneshot(dut: Dut) -> None:
|
def test_adc_oneshot(dut: Dut) -> None:
|
||||||
dut.expect(r'EXAMPLE: ADC1 Channel\[(\d+)\] Raw Data: (\d+)', timeout=5)
|
dut.expect(r'EXAMPLE: ADC1 Channel\[(\d+)\] Raw Data: (\d+)', timeout=5)
|
||||||
|
Reference in New Issue
Block a user