Commit Graph

27 Commits

Author SHA1 Message Date
Darian Leung
f50d83413e refactor(tools): Tidy up core component files copyright ignore
Some files that should have their copyrights checked are still placed on the
copyright ignore list.

- These entries have been tidied up
- Copyrights of those files have been updated.
2024-01-22 18:07:35 +08:00
Ivan Grokhotkov
88fa79fcc7
feat(unity): upgrade to 2.6.0-RC1 2023-11-28 20:22:02 +01:00
Song Ruo Jing
8db902c57b gpio: Refactor pytest_gpio to separate cases with labels, and update to use new IdfDut class in pytest_embedded_idf 2022-12-20 15:28:33 +08:00
Jakob Hasse
cb20f3ba1c docs(test_utils): heap records are not eatable!
Instead of becoming spread, heap records should go into a buffer.
Hungry commits shall be avoided.
2022-11-28 12:01:44 +01:00
KonstantinKondrashov
1a9ca94ac6 ci: Fix environment variable IDF_CI_BUILD is not set 2022-11-08 18:23:39 +08:00
morris
f24983a942 unity_utils: added helper function to disable cache and run user function 2022-08-12 11:29:52 +08:00
Ivan Grokhotkov
09c70d5781
unity: expose some internal functions to allow iterating over tests 2022-07-14 19:47:46 +02:00
Jakob Hasse
905f5c3d41 feature (unity): added memory leak check API, integrated it into cxx tests 2022-05-09 11:09:20 +08:00
songruojing
edcf44679d ci: add TEST_CASE_CI_IGNORE macro to allow pytest test cases to be ignored in ci 2022-03-30 15:11:08 +08:00
songruojing
bdb5b11b39 unit test: move unit-test_app test_utils_task_delete API to be a utils API (unity_utils_task_delete) in unity component 2022-03-30 15:11:08 +08:00
Ivan Grokhotkov
1fb58684a2 unity: add UNITY_MAIN_FUNC helper macro to run multiple test groups 2021-05-10 18:13:35 +02:00
Ivan Grokhotkov
71f711976d unity: add option to enable 64-bit formatting support
This option is not enabled by default because many existing tests
use integer assertions to check the pointers:

   TEST_ASSERT_EQUAL(NULL, pointer)

This causes a "cast from pointer to integer of different size"
(-Wpointer-to-int-cast) warning to be generated, as Unity converts
every argument to UNITY_UINT first, and with 64-bit support enabled,
UNITY_UINT becomes a 64-bit unsigned type.
2021-05-10 18:13:35 +02:00
Jakob Hasse
40d80b981a Fixed unity fixture for ESP32/S2
* Created compile switch for UNITY_MAIN
  since it was using exit() syscall leading to
  abort() on ESP
2020-09-04 17:37:47 +08:00
Ivan Grokhotkov
f789380e19 WIP/PoC: esp_netif UT as a test app 2020-09-04 17:37:47 +08:00
morris
e30cd361a8 global: rename esp32s2beta to esp32s2 2020-01-22 12:14:38 +08:00
Michael (XIAO Xufeng)
bc0eac579c ut: add DISABLED_FOR_TARGETS macros to control ut building 2020-01-06 17:13:47 +08:00
Ivan Grokhotkov
83d63b4673 unity: re-enable test case exit by longjmp 2019-12-27 11:27:01 +01:00
Felipe Neves
0ea6453b1c freertos: changed isr time test case variables to static 2019-12-04 10:41:00 -03:00
Felipe Neves
3882d986bd components/unity: reverted the inclusion of test protect based on setjmp 2019-12-04 10:40:27 -03:00
Felipe Neves
8cd2831ec1 components/unity: re-enabled setjmp longjmp block on unity 2019-12-04 10:40:27 -03:00
Felipe Neves
d7d8b47b89 unity/unity_config.h: changed configuration for setjmp usage
For some reason after use modified context save routine, the local unit test
app were crashed, the reason behind this resides on setjmp usage of test_runner,
since this feature seems to not be used for nothing special (just was a default config),
I changed the unity_config to replace the setjmp macros, this sounds less hacky.
2019-12-04 10:39:22 -03:00
Michael (XIAO Xufeng)
76a3a5fb48 ci: disable unavailable tests for esp32s2beta 2019-09-04 10:53:25 +10:00
Anton Maklakov
75c0066f93 Fix remaining -Wstrict-prototypes warnings 2019-08-01 16:28:56 +07:00
Anton Maklakov
afbaf74007 tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
Darian Leung
037c079e9a esp32: Refactor backtrace and add esp_backtrace_print()
This commit refactors backtracing within the panic handler so that a common
function esp_backtrace_get_next_frame() is used iteratively to traverse a
callstack.

A esp_backtrace_print() function has also be added that allows the printing
of a backtrace at runtime. The esp_backtrace_print() function allows unity to
print the backtrace of failed test cases and jump back to the main test menu
without the need reset the chip. esp_backtrace_print() can also be used as a
debugging function by users.

- esp_stack_ptr_is_sane() moved to soc_memory_layout.h
- removed uncessary includes of "esp_debug_helpers.h"
2019-06-19 18:30:18 +08:00
Ivan Grokhotkov
a98674d78b unity: don't use stdio in runner, fix code style 2018-11-19 12:36:31 +08:00
Ivan Grokhotkov
6091021e83 unity: separate common and IDF specific functionality
New unity component can be used for testing other applications.
Upstream version of Unity is included as a submodule.
Utilities specific to ESP-IDF unit tests (partitions, leak checking
setup/teardown functions, etc) are kept only in unit-test-app.
Kconfig options are added to allow disabling certain Unity features.
2018-11-19 12:36:31 +08:00