Skip to content

Commit

Permalink
Add test to edgehog_device
Browse files Browse the repository at this point in the history
Add nvs get/set string test cases.
Add `edgehog_device_get_telemetry_type` test cases.
Add `edgehog_device_get_telemetry_periodic` test cases.
Increase WDT_TIMEOUT_MS for fixing Interrupt wdt timeout on CPU0
in QEMU.

Signed-off-by: Antonio Gisondi <[email protected]>
  • Loading branch information
harlem88 committed Feb 9, 2022
1 parent 67119b4 commit 1d321d3
Show file tree
Hide file tree
Showing 4 changed files with 1,289 additions and 3 deletions.
9 changes: 9 additions & 0 deletions test/app_test/main/test_main.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
#include <unity.h>
#include <nvs_flash.h>
#include <nvs.h>

void app_main(void)
{
esp_err_t err = nvs_flash_init();
if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND) {
ESP_ERROR_CHECK(nvs_flash_erase());
err = nvs_flash_init();
}
ESP_ERROR_CHECK( err );

UNITY_BEGIN();
unity_run_all_tests();
UNITY_END();
Expand Down
Loading

0 comments on commit 1d321d3

Please sign in to comment.