mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-15 15:00:02 +01:00
esp32h2(ci): enable target test
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "test_utils.h"
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#if !CONFIG_IDF_TARGET_ESP32H2 // IDF-6782
|
||||
static void fwrite_str_loopback(const char* str, size_t size)
|
||||
{
|
||||
esp_rom_uart_tx_wait_idle(CONFIG_ESP_CONSOLE_UART_NUM);
|
||||
@@ -124,6 +125,7 @@ TEST_CASE("CRs are removed from the stdin correctly", "[vfs]")
|
||||
TEST_ASSERT_EQUAL(2, rb);
|
||||
TEST_ASSERT_EQUAL_UINT8_ARRAY("4\n", dst, 2);
|
||||
}
|
||||
#endif
|
||||
|
||||
struct read_task_arg_t {
|
||||
char* out_buffer;
|
||||
@@ -137,6 +139,7 @@ struct write_task_arg_t {
|
||||
SemaphoreHandle_t done;
|
||||
};
|
||||
|
||||
#if !CONFIG_IDF_TARGET_ESP32H2 // IDF-6782
|
||||
static void read_task_fn(void* varg)
|
||||
{
|
||||
struct read_task_arg_t* parg = (struct read_task_arg_t*) varg;
|
||||
@@ -196,6 +199,7 @@ TEST_CASE("can write to UART while another task is reading", "[vfs]")
|
||||
vSemaphoreDelete(read_arg.done);
|
||||
vSemaphoreDelete(write_arg.done);
|
||||
}
|
||||
#endif
|
||||
|
||||
TEST_CASE("fcntl supported in UART VFS", "[vfs]")
|
||||
{
|
||||
@@ -208,6 +212,7 @@ TEST_CASE("fcntl supported in UART VFS", "[vfs]")
|
||||
TEST_ASSERT_NOT_EQUAL(-1, res);
|
||||
}
|
||||
|
||||
#if !CONFIG_IDF_TARGET_ESP32H2 // IDF-6782
|
||||
#ifdef CONFIG_VFS_SUPPORT_TERMIOS
|
||||
TEST_CASE("Can use termios for UART", "[vfs]")
|
||||
{
|
||||
@@ -348,3 +353,4 @@ TEST_CASE("Can use termios for UART", "[vfs]")
|
||||
uart_driver_delete(UART_NUM_1);
|
||||
}
|
||||
#endif // CONFIG_VFS_SUPPORT_TERMIOS
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user