mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 21:54:33 +02:00
CI: rename some tests to avoid duplicated test names
This commit is contained in:
@@ -36,7 +36,7 @@ TEST_CASE("Temperature_lagecy_workflow_test", "[hw_timer]")
|
|||||||
TEST_ESP_OK(temp_sensor_stop());
|
TEST_ESP_OK(temp_sensor_stop());
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("Double start error cause test", "[temperatere_sensor]")
|
TEST_CASE("Temperature lagecy double start error cause test", "[temperatere_sensor]")
|
||||||
{
|
{
|
||||||
printf("Initializing Temperature sensor\n");
|
printf("Initializing Temperature sensor\n");
|
||||||
temp_sensor_config_t temp_sensor = TSENS_CONFIG_DEFAULT();
|
temp_sensor_config_t temp_sensor = TSENS_CONFIG_DEFAULT();
|
||||||
@@ -46,7 +46,7 @@ TEST_CASE("Double start error cause test", "[temperatere_sensor]")
|
|||||||
TEST_ESP_OK(temp_sensor_stop());
|
TEST_ESP_OK(temp_sensor_stop());
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("Double Start-Stop test", "[temperature_sensor]")
|
TEST_CASE("Temperature lagecy double Start-Stop test", "[temperature_sensor]")
|
||||||
{
|
{
|
||||||
printf("Initializing Temperature sensor\n");
|
printf("Initializing Temperature sensor\n");
|
||||||
float tsens_out;
|
float tsens_out;
|
||||||
|
@@ -9,7 +9,7 @@ from pytest_embedded.dut import Dut
|
|||||||
@pytest.mark.esp32s2
|
@pytest.mark.esp32s2
|
||||||
@pytest.mark.esp32s3
|
@pytest.mark.esp32s3
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
def test_gptimer_example(dut: Dut) -> None:
|
def test_rotary_encoder(dut: Dut) -> None:
|
||||||
dut.expect_exact('install pcnt unit')
|
dut.expect_exact('install pcnt unit')
|
||||||
dut.expect_exact('set glitch filter')
|
dut.expect_exact('set glitch filter')
|
||||||
dut.expect_exact('install pcnt channels')
|
dut.expect_exact('install pcnt channels')
|
||||||
|
@@ -169,7 +169,7 @@ def test_check_mode(dut=None, mode_str=None, value=None):
|
|||||||
|
|
||||||
|
|
||||||
@ttfw_idf.idf_example_test(env_tag='Example_T2_RS485', target=['esp32'])
|
@ttfw_idf.idf_example_test(env_tag='Example_T2_RS485', target=['esp32'])
|
||||||
def test_modbus_communication(env, comm_mode):
|
def test_modbus_serial_communication(env, comm_mode):
|
||||||
global logger
|
global logger
|
||||||
|
|
||||||
# Get device under test. "dut1 - master", "dut2 - slave" must be properly connected through RS485 interface driver
|
# Get device under test. "dut1 - master", "dut2 - slave" must be properly connected through RS485 interface driver
|
||||||
@@ -286,5 +286,5 @@ if __name__ == '__main__':
|
|||||||
logger.addHandler(fh)
|
logger.addHandler(fh)
|
||||||
logger.addHandler(ch)
|
logger.addHandler(ch)
|
||||||
logger.info('Start script %s.' % os.path.basename(__file__))
|
logger.info('Start script %s.' % os.path.basename(__file__))
|
||||||
test_modbus_communication()
|
test_modbus_serial_communication()
|
||||||
logging.shutdown()
|
logging.shutdown()
|
||||||
|
@@ -206,7 +206,7 @@ def test_check_mode(dut=None, mode_str=None, value=None):
|
|||||||
|
|
||||||
|
|
||||||
@ttfw_idf.idf_example_test(env_tag='Example_Modbus_TCP', target=['esp32'])
|
@ttfw_idf.idf_example_test(env_tag='Example_Modbus_TCP', target=['esp32'])
|
||||||
def test_modbus_communication(env, comm_mode):
|
def test_modbus_tcp_communication(env, comm_mode):
|
||||||
global logger
|
global logger
|
||||||
|
|
||||||
rel_project_path = os.path.join('examples', 'protocols', 'modbus', 'tcp')
|
rel_project_path = os.path.join('examples', 'protocols', 'modbus', 'tcp')
|
||||||
@@ -305,4 +305,4 @@ def test_modbus_communication(env, comm_mode):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
test_modbus_communication()
|
test_modbus_tcp_communication()
|
||||||
|
@@ -5,7 +5,7 @@ from tiny_test_fw import Utility
|
|||||||
|
|
||||||
|
|
||||||
@ttfw_idf.idf_example_test(env_tag='UT_T1_SDMODE')
|
@ttfw_idf.idf_example_test(env_tag='UT_T1_SDMODE')
|
||||||
def test_examples_sd_card(env, extra_data): # type: (ttfw_idf.Env.Env, None ) -> None
|
def test_examples_sd_card_sdmmc(env, extra_data): # type: (ttfw_idf.Env.Env, None ) -> None
|
||||||
|
|
||||||
dut = env.get_dut('sd_card', 'examples/storage/sd_card/sdmmc')
|
dut = env.get_dut('sd_card', 'examples/storage/sd_card/sdmmc')
|
||||||
dut.start_app()
|
dut.start_app()
|
||||||
@@ -33,4 +33,4 @@ def test_examples_sd_card(env, extra_data): # type: (ttfw_idf.Env.Env, None ) -
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
test_examples_sd_card()
|
test_examples_sd_card_sdmmc()
|
||||||
|
@@ -5,7 +5,7 @@ from tiny_test_fw import Utility
|
|||||||
|
|
||||||
|
|
||||||
@ttfw_idf.idf_example_test(env_tag='UT_T1_SPIMODE', target=['esp32', 'esp32s2', 'esp32c3'])
|
@ttfw_idf.idf_example_test(env_tag='UT_T1_SPIMODE', target=['esp32', 'esp32s2', 'esp32c3'])
|
||||||
def test_examples_sd_card(env, extra_data): # type: (ttfw_idf.Env.Env, None ) -> None
|
def test_examples_sd_card_sdspi(env, extra_data): # type: (ttfw_idf.Env.Env, None ) -> None
|
||||||
|
|
||||||
dut = env.get_dut('sd_card', 'examples/storage/sd_card/sdspi')
|
dut = env.get_dut('sd_card', 'examples/storage/sd_card/sdspi')
|
||||||
dut.start_app()
|
dut.start_app()
|
||||||
@@ -33,4 +33,4 @@ def test_examples_sd_card(env, extra_data): # type: (ttfw_idf.Env.Env, None ) -
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
test_examples_sd_card()
|
test_examples_sd_card_sdspi()
|
||||||
|
@@ -12,7 +12,7 @@ from pytest_embedded import Dut
|
|||||||
'history',
|
'history',
|
||||||
'nohistory',
|
'nohistory',
|
||||||
], indirect=True)
|
], indirect=True)
|
||||||
def test_console_advanced(config: str, dut: Dut) -> None:
|
def test_console_basic(config: str, dut: Dut) -> None:
|
||||||
if config == 'history':
|
if config == 'history':
|
||||||
dut.expect('Command history enabled')
|
dut.expect('Command history enabled')
|
||||||
elif config == 'nohistory':
|
elif config == 'nohistory':
|
||||||
|
@@ -7,5 +7,5 @@ from pytest_embedded_idf.dut import IdfDut
|
|||||||
|
|
||||||
@pytest.mark.supported_targets
|
@pytest.mark.supported_targets
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
def test_startup(dut: IdfDut) -> None:
|
def test_i2c_wifi_startup(dut: IdfDut) -> None:
|
||||||
dut.expect_exact('I2C-WIFI test success')
|
dut.expect_exact('I2C-WIFI test success')
|
||||||
|
@@ -10,7 +10,7 @@ from ttfw_idf.IDFDUT import ESP32DUT
|
|||||||
|
|
||||||
|
|
||||||
@ttfw_idf.idf_custom_test(env_tag='Example_GENERIC', group='test-apps')
|
@ttfw_idf.idf_custom_test(env_tag='Example_GENERIC', group='test-apps')
|
||||||
def test_startup(env, extra_data):
|
def test_sys_startup(env, extra_data):
|
||||||
config_files = glob.glob(os.path.join(os.path.dirname(__file__), 'sdkconfig.ci.*'))
|
config_files = glob.glob(os.path.join(os.path.dirname(__file__), 'sdkconfig.ci.*'))
|
||||||
config_names = [os.path.basename(s).replace('sdkconfig.ci.', '') for s in config_files]
|
config_names = [os.path.basename(s).replace('sdkconfig.ci.', '') for s in config_files]
|
||||||
for name in config_names:
|
for name in config_names:
|
||||||
@@ -30,4 +30,4 @@ def test_startup(env, extra_data):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
test_startup()
|
test_sys_startup()
|
||||||
|
Reference in New Issue
Block a user