From: Alex Lisitsyn Date: Tue, 3 Jul 2018 14:17:03 +0000 (+0200) Subject: driver: rs485 test support X-Git-Tag: v3.2-beta1~30^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61bc7337910617e5e9a357054c7b51e5df213b33;p=esp-idf driver: rs485 test support Adds test functionality with TEST_CASE_MULTIPLE_DEVICES() macro for RS485 test support. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b1d4e6b1b2..4eb6c2eff6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1043,7 +1043,7 @@ UT_001_36: tags: - ESP32_IDF - UT_T1_1 - + UT_002_01: <<: *unit_test_template tags: @@ -1148,7 +1148,7 @@ UT_004_10: tags: - ESP32_IDF - UT_T1_1 - - psram + - psram UT_004_11: <<: *unit_test_template @@ -1266,6 +1266,31 @@ UT_008_04: - ESP32_IDF - UT_T1_LEDC - psram + +UT_009_01: + <<: *unit_test_template + tags: + - ESP32_IDF + - UT_T2_RS485 + +UT_009_02: + <<: *unit_test_template + tags: + - ESP32_IDF + - UT_T2_RS485 + +UT_009_03: + <<: *unit_test_template + tags: + - ESP32_IDF + - UT_T2_RS485 + +UT_009_04: + <<: *unit_test_template + tags: + - ESP32_IDF + - UT_T2_RS485 + - psram UT_010_01: <<: *unit_test_template diff --git a/components/driver/test/test_uart.c b/components/driver/test/test_uart.c index b6154b2cc8..08023a030e 100644 --- a/components/driver/test/test_uart.c +++ b/components/driver/test/test_uart.c @@ -324,5 +324,5 @@ static void rs485_master() * correctness of RS485 interface channel communication. It requires * RS485 bus driver hardware to be connected to boards. */ -TEST_CASE_MULTIPLE_DEVICES("RS485 half duplex uart multiple devices test.", "[driver][ignore]", rs485_master, rs485_slave); +TEST_CASE_MULTIPLE_DEVICES("RS485 half duplex uart multiple devices test.", "[driver_RS485][test_env=UT_T2_RS485][timeout=200]", rs485_master, rs485_slave);