mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
[nvs] add nvs page host test to CI
Closes IDF-2425
This commit is contained in:
parent
2554d8956a
commit
2fb5b42eb1
@ -352,3 +352,10 @@ test_detect_python:
|
|||||||
- "dash -c '. tools/detect_python.sh && echo Our Python: ${ESP_PYTHON?Python is not set}'"
|
- "dash -c '. tools/detect_python.sh && echo Our Python: ${ESP_PYTHON?Python is not set}'"
|
||||||
- "zsh -c '. tools/detect_python.sh && echo Our Python: ${ESP_PYTHON?Python is not set}'"
|
- "zsh -c '. tools/detect_python.sh && echo Our Python: ${ESP_PYTHON?Python is not set}'"
|
||||||
- "fish -c 'source tools/detect_python.fish && echo Our Python: $ESP_PYTHON'"
|
- "fish -c 'source tools/detect_python.fish && echo Our Python: $ESP_PYTHON'"
|
||||||
|
|
||||||
|
test_nvs_page:
|
||||||
|
extends: .host_test_template
|
||||||
|
script:
|
||||||
|
- cd ${IDF_PATH}/components/nvs_flash/host_test/nvs_page_test
|
||||||
|
- idf.py build
|
||||||
|
- build/host_nvs_page_test.elf
|
||||||
|
@ -90,9 +90,11 @@ if(CONFIG_COMPILER_DUMP_RTL_FILES)
|
|||||||
list(APPEND compile_options "-fdump-rtl-expand")
|
list(APPEND compile_options "-fdump-rtl-expand")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_COMPILER_HIDE_PATHS_MACROS)
|
if(NOT ${CMAKE_C_COMPILER_VERSION} VERSION_LESS 8.0.0)
|
||||||
|
if(CONFIG_COMPILER_HIDE_PATHS_MACROS)
|
||||||
list(APPEND compile_options "-fmacro-prefix-map=${CMAKE_SOURCE_DIR}=.")
|
list(APPEND compile_options "-fmacro-prefix-map=${CMAKE_SOURCE_DIR}=.")
|
||||||
list(APPEND compile_options "-fmacro-prefix-map=${IDF_PATH}=IDF")
|
list(APPEND compile_options "-fmacro-prefix-map=${IDF_PATH}=IDF")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# GCC-specific options
|
# GCC-specific options
|
||||||
|
@ -1,11 +1,16 @@
|
|||||||
/* Hello World Example
|
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
|
||||||
This example code is in the Public Domain (or CC0 licensed, at your option.)
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
Unless required by applicable law or agreed to in writing, this
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
CONDITIONS OF ANY KIND, either express or implied.
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
*/
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "test_fixtures.hpp"
|
#include "test_fixtures.hpp"
|
||||||
@ -929,6 +934,6 @@ int main(int argc, char **argv)
|
|||||||
RUN_TEST(test_Page_calcEntries__active_wo_blob);
|
RUN_TEST(test_Page_calcEntries__active_wo_blob);
|
||||||
RUN_TEST(test_Page_calcEntries__active_with_blob);
|
RUN_TEST(test_Page_calcEntries__active_with_blob);
|
||||||
RUN_TEST(test_Page_calcEntries__invalid);
|
RUN_TEST(test_Page_calcEntries__invalid);
|
||||||
UNITY_END();
|
int failures = UNITY_END();
|
||||||
return 0;
|
return failures;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
CONFIG_UNITY_ENABLE_IDF_TEST_RUNNER=n
|
CONFIG_UNITY_ENABLE_IDF_TEST_RUNNER=n
|
||||||
|
CONFIG_COMPILER_HIDE_PATHS_MACROS=n
|
||||||
CONFIG_IDF_TARGET="linux"
|
CONFIG_IDF_TARGET="linux"
|
||||||
CONFIG_CXX_EXCEPTIONS=y
|
CONFIG_CXX_EXCEPTIONS=y
|
||||||
|
@ -41,6 +41,11 @@ typedef enum {
|
|||||||
SPI_FLASH_READ_MODE_MAX, ///< The fastest io mode supported by the host is ``ESP_FLASH_READ_MODE_MAX-1``.
|
SPI_FLASH_READ_MODE_MAX, ///< The fastest io mode supported by the host is ``ESP_FLASH_READ_MODE_MAX-1``.
|
||||||
} esp_flash_io_mode_t;
|
} esp_flash_io_mode_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configuration structure for the flash chip suspend feature.
|
||||||
|
*/
|
||||||
|
typedef struct spi_flash_sus_cmd_conf_dummy spi_flash_sus_cmd_conf;
|
||||||
|
|
||||||
struct spi_flash_host_driver_s;
|
struct spi_flash_host_driver_s;
|
||||||
typedef struct spi_flash_host_driver_s spi_flash_host_driver_t;
|
typedef struct spi_flash_host_driver_s spi_flash_host_driver_t;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user