forked from espressif/esp-idf
esp32: move remaining tests
This commit is contained in:
committed by
Michael (XIAO Xufeng)
parent
7c22cccb9c
commit
fddc0b6799
@@ -1,7 +0,0 @@
|
|||||||
if(IDF_TARGET STREQUAL "esp32")
|
|
||||||
idf_component_register(SRC_DIRS .
|
|
||||||
PRIV_INCLUDE_DIRS .
|
|
||||||
PRIV_REQUIRES cmock test_utils mbedtls ulp esp_common
|
|
||||||
)
|
|
||||||
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u ld_include_test_dport_xt_highint5")
|
|
||||||
endif()
|
|
@@ -1,8 +0,0 @@
|
|||||||
#
|
|
||||||
#Component Makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive \
|
|
||||||
-u ld_include_test_dport_xt_highint5 \
|
|
||||||
|
|
||||||
COMPONENT_SRCDIRS := .
|
|
@@ -1,9 +0,0 @@
|
|||||||
if(IDF_TARGET STREQUAL "esp32c3")
|
|
||||||
idf_component_register(SRC_DIRS .
|
|
||||||
INCLUDE_DIRS . ${CMAKE_CURRENT_BINARY_DIR}
|
|
||||||
REQUIRES unity test_utils esp_common mbedtls
|
|
||||||
)
|
|
||||||
|
|
||||||
idf_build_set_property(COMPILE_DEFINITIONS "-DESP_TIMER_DYNAMIC_OVERFLOW_VAL" APPEND)
|
|
||||||
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u ld_include_test_dport_xt_highint5")
|
|
||||||
endif()
|
|
@@ -1,4 +0,0 @@
|
|||||||
#
|
|
||||||
# Component Makefile (not used for tests, but CI checks test parity between GNU Make & CMake)
|
|
||||||
#
|
|
||||||
COMPONENT_CONFIG_ONLY := 1
|
|
@@ -1,6 +0,0 @@
|
|||||||
if(IDF_TARGET STREQUAL "esp32s2")
|
|
||||||
idf_component_register(SRC_DIRS .
|
|
||||||
PRIV_INCLUDE_DIRS .
|
|
||||||
PRIV_REQUIRES cmock test_utils nvs_flash mbedtls ulp esp_common
|
|
||||||
)
|
|
||||||
endif()
|
|
@@ -1,4 +0,0 @@
|
|||||||
#
|
|
||||||
# Component Makefile
|
|
||||||
#
|
|
||||||
COMPONENT_CONFIG_ONLY := 1
|
|
@@ -1,3 +1,5 @@
|
|||||||
idf_component_register(SRC_DIRS "."
|
idf_component_register(SRC_DIRS "."
|
||||||
PRIV_INCLUDE_DIRS "${include_dirs}"
|
PRIV_INCLUDE_DIRS "${include_dirs}"
|
||||||
PRIV_REQUIRES cmock test_utils esp_hw_support driver efuse)
|
PRIV_REQUIRES cmock test_utils esp_hw_support driver efuse)
|
||||||
|
|
||||||
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u ld_include_test_dport_xt_highint5")
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
COMPONENT_SRCDIRS := .
|
COMPONENT_SRCDIRS := .
|
||||||
|
|
||||||
COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive
|
COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive -u ld_include_test_dport_xt_highint5
|
||||||
|
@@ -4,6 +4,10 @@
|
|||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
|
||||||
#include <esp_types.h>
|
#include <esp_types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -292,3 +296,5 @@ TEST_CASE("S32C1I vs AHB test (needs I2S)", "[hw][ignore]")
|
|||||||
vTaskDelete(th[i]);
|
vTaskDelete(th[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // CONFIG_IDF_TARGET_ESP32
|
@@ -1,3 +1,7 @@
|
|||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This little bit of code is executed in-place by one CPU, but copied to a different memory region
|
This little bit of code is executed in-place by one CPU, but copied to a different memory region
|
||||||
by the other CPU. Make sure it stays position-independent.
|
by the other CPU. Make sure it stays position-independent.
|
||||||
@@ -49,3 +53,5 @@ unlockloop:
|
|||||||
bne a3, a6, unlockloop
|
bne a3, a6, unlockloop
|
||||||
|
|
||||||
retw
|
retw
|
||||||
|
|
||||||
|
#endif // CONFIG_IDF_TARGET_ESP32
|
@@ -3,6 +3,9 @@
|
|||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
@@ -134,3 +137,5 @@ TEST_CASE("Fast I/O bus test", "[hw][ignore]")
|
|||||||
}
|
}
|
||||||
xt_ints_off(1 << ETS_UART0_INUM);
|
xt_ints_off(1 << ETS_UART0_INUM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // CONFIG_IDF_TARGET_ESP32
|
@@ -1,3 +1,7 @@
|
|||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This little bit of code is executed in-place by one CPU, but copied to a different memory region
|
This little bit of code is executed in-place by one CPU, but copied to a different memory region
|
||||||
by the other CPU. Make sure it stays position-independent.
|
by the other CPU. Make sure it stays position-independent.
|
||||||
@@ -30,3 +34,5 @@ predout:
|
|||||||
j back //loop again
|
j back //loop again
|
||||||
out:
|
out:
|
||||||
retw //and we are done
|
retw //and we are done
|
||||||
|
|
||||||
|
#endif // CONFIG_IDF_TARGET_ESP32
|
@@ -3,6 +3,10 @@
|
|||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "soc/cpu.h"
|
#include "soc/cpu.h"
|
||||||
@@ -272,3 +276,5 @@ TEST_CASE("floating point square root performance", "[fp]")
|
|||||||
|
|
||||||
TEST_PERFORMANCE_LESS_THAN(CYCLES_PER_SQRT, "%d cycles", cycles);
|
TEST_PERFORMANCE_LESS_THAN(CYCLES_PER_SQRT, "%d cycles", cycles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // CONFIG_IDF_TARGET_ESP32
|
@@ -3,6 +3,10 @@
|
|||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "esp_rom_sys.h"
|
#include "esp_rom_sys.h"
|
||||||
@@ -23,3 +27,6 @@ TEST_CASE("can control TSENS using registers", "[rtc][ignore]")
|
|||||||
int res = GET_PERI_REG_BITS2(SENS_SAR_SLAVE_ADDR3_REG, SENS_TSENS_OUT, SENS_TSENS_OUT_S);
|
int res = GET_PERI_REG_BITS2(SENS_SAR_SLAVE_ADDR3_REG, SENS_TSENS_OUT, SENS_TSENS_OUT_S);
|
||||||
printf("res=%d\n", res);
|
printf("res=%d\n", res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endif // CONFIG_IDF_TARGET_ESP32
|
@@ -3,6 +3,9 @@
|
|||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
|
||||||
#include <esp_types.h>
|
#include <esp_types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -202,3 +205,6 @@ TEST_CASE("Unaligned DMA test (needs I2S)", "[hw][ignore]")
|
|||||||
dmaMemcpy(src, dest + 1, 2048 + 2);
|
dmaMemcpy(src, dest + 1, 2048 + 2);
|
||||||
TEST_ASSERT(mymemcmp(src, dest + 1, 2048) == 0);
|
TEST_ASSERT(mymemcmp(src, dest + 1, 2048) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endif // CONFIG_IDF_TARGET_ESP32
|
@@ -10,6 +10,9 @@
|
|||||||
*/
|
*/
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
|
|
||||||
|
#if __XTENSA__
|
||||||
|
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
#include "freertos/task.h"
|
#include "freertos/task.h"
|
||||||
#include "freertos/xtensa_api.h"
|
#include "freertos/xtensa_api.h"
|
||||||
@@ -88,3 +91,5 @@ TEST_CASE("Test backtrace with a ROM function", "[reset_reason][reset=StoreProhi
|
|||||||
ets_install_putc1(&write_char_crash);
|
ets_install_putc1(&write_char_crash);
|
||||||
esp_rom_printf("foo");
|
esp_rom_printf("foo");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
Reference in New Issue
Block a user