mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 06:11:06 +00:00 
			
		
		
		
	Updated examples to be able to build for C5 and P4. Added Ethernet support for static_ip example.
		
			
				
	
	
		
			16 lines
		
	
	
		
			388 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			388 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# SPDX-FileCopyrightText: 2024 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.eth_ip101
 | 
						|
@pytest.mark.parametrize('config', [
 | 
						|
    'default_ip101',
 | 
						|
], indirect=True)
 | 
						|
def test_static_ip(
 | 
						|
    dut: Dut
 | 
						|
) -> None:
 | 
						|
    dut.expect(r'Resolved IPv4 address: (\d+\.\d+\.\d+\.\d+)')
 |