mirror of
https://github.com/espressif/esp-modbus.git
synced 2025-09-25 22:20:54 +02:00
fix example tests target issues (addition)
This commit is contained in:
@@ -113,6 +113,7 @@ after_script:
|
|||||||
- *check_idf_ver
|
- *check_idf_ver
|
||||||
# This is workaround to build library under esp-idf v4.4
|
# This is workaround to build library under esp-idf v4.4
|
||||||
- pip install idf-component-manager --upgrade
|
- pip install idf-component-manager --upgrade
|
||||||
|
- ${IDF_PATH}/install.sh --enable-ci
|
||||||
- cd ${TEST_DIR}/test_apps
|
- cd ${TEST_DIR}/test_apps
|
||||||
- *build_cur_folder
|
- *build_cur_folder
|
||||||
- cd ${TEST_DIR}/examples
|
- cd ${TEST_DIR}/examples
|
||||||
|
@@ -43,7 +43,7 @@ test_configs = [
|
|||||||
'ascii'
|
'ascii'
|
||||||
]
|
]
|
||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
|
||||||
@pytest.mark.multi_dut_modbus_serial
|
@pytest.mark.multi_dut_modbus_serial
|
||||||
@pytest.mark.parametrize('config', test_configs, indirect=True)
|
@pytest.mark.parametrize('config', test_configs, indirect=True)
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
@@ -65,7 +65,8 @@ def test_modbus_serial_communication(config: str, dut: Tuple[ModbusTestDut, Modb
|
|||||||
dut_slave.dut_check_errors()
|
dut_slave.dut_check_errors()
|
||||||
dut_master.dut_check_errors()
|
dut_master.dut_check_errors()
|
||||||
|
|
||||||
|
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
|
||||||
@pytest.mark.multi_dut_modbus_generic
|
@pytest.mark.multi_dut_modbus_generic
|
||||||
@pytest.mark.parametrize('config', ['dummy_config'])
|
@pytest.mark.parametrize('config', ['dummy_config'])
|
||||||
def test_modbus_serial_generic(config) -> None:
|
def test_modbus_serial_generic(config) -> None:
|
||||||
print('The generic serial example tests are not provided yet.')
|
print('The generic serial example tests are not provided yet.')
|
||||||
|
@@ -37,7 +37,7 @@ pattern_dict_slave = {Stages.STACK_IPV4: (r'I \([0-9]+\) example_[a-z]+: - IPv4
|
|||||||
Stages.STACK_DESTROY: (r'I\s\(([0-9]+)\) SLAVE_TEST: (Modbus controller destroyed).')}
|
Stages.STACK_DESTROY: (r'I\s\(([0-9]+)\) SLAVE_TEST: (Modbus controller destroyed).')}
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
|
||||||
@pytest.mark.multi_dut_modbus_tcp
|
@pytest.mark.multi_dut_modbus_tcp
|
||||||
@pytest.mark.parametrize('config', ['ethernet'], indirect=True)
|
@pytest.mark.parametrize('config', ['ethernet'], indirect=True)
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
@@ -42,7 +42,7 @@ test_configs = [
|
|||||||
'ethernet'
|
'ethernet'
|
||||||
]
|
]
|
||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
|
||||||
@pytest.mark.multi_dut_modbus_tcp
|
@pytest.mark.multi_dut_modbus_tcp
|
||||||
@pytest.mark.parametrize('config', test_configs, indirect=True)
|
@pytest.mark.parametrize('config', test_configs, indirect=True)
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
@@ -67,6 +67,7 @@ def test_modbus_tcp_communication(dut: Tuple[ModbusTestDut, ModbusTestDut]) -> N
|
|||||||
dut_slave.dut_check_errors()
|
dut_slave.dut_check_errors()
|
||||||
dut_master.dut_check_errors()
|
dut_master.dut_check_errors()
|
||||||
|
|
||||||
|
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
|
||||||
@pytest.mark.multi_dut_modbus_generic
|
@pytest.mark.multi_dut_modbus_generic
|
||||||
@pytest.mark.parametrize('config', ['dummy_config'])
|
@pytest.mark.parametrize('config', ['dummy_config'])
|
||||||
def test_modbus_tcp_generic(config) -> None:
|
def test_modbus_tcp_generic(config) -> None:
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
Warning: Deprecated: Option '--flash_size' is deprecated. Use '--flash-size' instead.
|
||||||
|
Warning: Deprecated: Option '--flash_mode' is deprecated. Use '--flash-mode' instead.
|
||||||
|
Warning: Deprecated: Option '--flash_freq' is deprecated. Use '--flash-freq' instead.
|
||||||
|
Warning: Deprecated: Command 'sign_data' is deprecated. Use 'sign-data' instead.
|
||||||
|
Warning: Deprecated: Command 'extract_public_key' is deprecated. Use 'extract-public-key' instead.
|
||||||
library/error\.o
|
library/error\.o
|
||||||
/.*error\S*\.o
|
/.*error\S*\.o
|
||||||
.*error.*\.c\.obj
|
.*error.*\.c\.obj
|
||||||
|
Reference in New Issue
Block a user