Merge branch 'feature/btdm_blufi' into feature/btdm_bluedroid
This commit is contained in:
commit
bee1be67da
291
.gitlab-ci.yml
291
.gitlab-ci.yml
|
@ -62,7 +62,7 @@ build_ssc:
|
||||||
expire_in: 6 mos
|
expire_in: 6 mos
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- git clone ssh://git@gitlab.espressif.cn:27227/yinling/SSC.git
|
- git clone $GITLAB_SSH_SERVER/yinling/SSC.git
|
||||||
- cd SSC
|
- cd SSC
|
||||||
- git checkout ${CI_BUILD_REF_NAME} || echo "Using SSC default branch..."
|
- git checkout ${CI_BUILD_REF_NAME} || echo "Using SSC default branch..."
|
||||||
- make defconfig
|
- make defconfig
|
||||||
|
@ -105,43 +105,29 @@ test_build_system:
|
||||||
script:
|
script:
|
||||||
- ./make/test_build_system.sh
|
- ./make/test_build_system.sh
|
||||||
|
|
||||||
|
test_report:
|
||||||
|
stage: deploy
|
||||||
# template for test jobs
|
|
||||||
.test_template: &test_template
|
|
||||||
stage: test
|
|
||||||
when: on_success
|
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- triggers
|
- triggers
|
||||||
|
tags:
|
||||||
|
- test_report
|
||||||
|
allow_failure: true
|
||||||
variables:
|
variables:
|
||||||
# need user to set SDK_NAME and CONFIG_FILE (may need to set BIN_PATH and APP_NAME later) in before_script
|
LOG_PATH: "$CI_PROJECT_DIR/$CI_BUILD_REF"
|
||||||
SCRIPT_PATH: /home/gitlab-runner/auto_test_script
|
TEST_CASE_FILE_PATH: "$CI_PROJECT_DIR/components/idf_test"
|
||||||
BIN_PATH: ${CI_PROJECT_DIR}/SSC/build/
|
REPORT_PATH: "$CI_PROJECT_DIR/CI_Test_Report"
|
||||||
APP_NAME: ssc
|
|
||||||
LOG_PATH: $CI_PROJECT_DIR/$CI_BUILD_REF
|
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
paths:
|
paths:
|
||||||
- $LOG_PATH
|
- $REPORT_PATH
|
||||||
expire_in: 6 mos
|
expire_in: 6 mos
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cd $SCRIPT_PATH
|
# clone test bench
|
||||||
- python CIRunner.py -l $LOG_PATH -c $SDK_NAME/$CONFIG_FILE bin_path $APP_NAME $BIN_PATH
|
- git clone $GITLAB_SSH_SERVER/yinling/auto_test_script.git
|
||||||
|
- cd auto_test_script
|
||||||
sanity_test:
|
# generate report
|
||||||
<<: *test_template
|
- python CITestReport.py -l $LOG_PATH -t $TEST_CASE_FILE_PATH -p $REPORT_PATH
|
||||||
tags:
|
|
||||||
- ESP32
|
|
||||||
- SSC_T1_1
|
|
||||||
- SSC_T2_1
|
|
||||||
- SSC_T1_WAN
|
|
||||||
before_script:
|
|
||||||
- SDK_NAME=ESP32_IDF
|
|
||||||
- CONFIG_FILE=sanity_test.yml
|
|
||||||
|
|
||||||
|
|
||||||
push_master_to_github:
|
push_master_to_github:
|
||||||
|
@ -165,3 +151,250 @@ push_master_to_github:
|
||||||
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||||
- git remote add github git@github.com:espressif/esp-idf.git
|
- git remote add github git@github.com:espressif/esp-idf.git
|
||||||
- git push --follow-tags github HEAD:master
|
- git push --follow-tags github HEAD:master
|
||||||
|
|
||||||
|
|
||||||
|
# AUTO GENERATED PART START, DO NOT MODIFY CONTENT BELOW
|
||||||
|
# template for test jobs
|
||||||
|
.test_template: &test_template
|
||||||
|
stage: test
|
||||||
|
when: on_success
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- triggers
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
|
variables:
|
||||||
|
# LOCAL_ENV_CONFIG_PATH: define in template and jobs can overwrite if required
|
||||||
|
LOCAL_ENV_CONFIG_PATH: /home/gitlab-runner/LocalConfig/ESP32_IDF
|
||||||
|
BIN_PATH: "$CI_PROJECT_DIR/SSC/build/"
|
||||||
|
APP_NAME: "ssc"
|
||||||
|
LOG_PATH: "$CI_PROJECT_DIR/$CI_BUILD_REF"
|
||||||
|
# append test level folder to TEST_CASE_FILE_PATH in before_script of test job
|
||||||
|
TEST_CASE_FILE_PATH: "$CI_PROJECT_DIR/components/idf_test"
|
||||||
|
# jobs MUST set CONFIG_FILE in before_script, and overwrite the variables above if necessary
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
when: always
|
||||||
|
paths:
|
||||||
|
- $LOG_PATH
|
||||||
|
expire_in: 6 mos
|
||||||
|
|
||||||
|
script:
|
||||||
|
# add gitlab ssh key
|
||||||
|
- mkdir -p ~/.ssh
|
||||||
|
- chmod 700 ~/.ssh
|
||||||
|
- echo -n $GITLAB_KEY > ~/.ssh/id_rsa_base64
|
||||||
|
- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
|
||||||
|
- chmod 600 ~/.ssh/id_rsa
|
||||||
|
- echo -e "Host gitlab.espressif.cn\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||||
|
# clone test bench
|
||||||
|
- git clone $GITLAB_SSH_SERVER/yinling/auto_test_script.git
|
||||||
|
- cd auto_test_script
|
||||||
|
# run test
|
||||||
|
- python CIRunner.py -l $LOG_PATH -c $CONFIG_FILE -e $LOCAL_ENV_CONFIG_PATH -t $TEST_CASE_FILE_PATH bin_path $APP_NAME $BIN_PATH
|
||||||
|
|
||||||
|
|
||||||
|
# template for overnight test jobs
|
||||||
|
.test_template_night: &test_template_night
|
||||||
|
<<: *test_template
|
||||||
|
only:
|
||||||
|
# can only be triggered
|
||||||
|
- triggers
|
||||||
|
script:
|
||||||
|
# must be night build triggers, otherwise exit without test
|
||||||
|
- test $NIGHT_BUILD = "Yes" || exit 0
|
||||||
|
# add gitlab ssh key
|
||||||
|
- mkdir -p ~/.ssh
|
||||||
|
- chmod 700 ~/.ssh
|
||||||
|
- echo -n $GITLAB_KEY > ~/.ssh/id_rsa_base64
|
||||||
|
- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
|
||||||
|
- chmod 600 ~/.ssh/id_rsa
|
||||||
|
- echo -e "Host gitlab.espressif.cn\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||||
|
# clone test bench
|
||||||
|
- git clone $GITLAB_SSH_SERVER/yinling/auto_test_script.git
|
||||||
|
- cd auto_test_script
|
||||||
|
# run test
|
||||||
|
- python CIRunner.py -l $LOG_PATH -c $CONFIG_FILE -e $LOCAL_ENV_CONFIG_PATH -t $TEST_CASE_FILE_PATH bin_path $APP_NAME $BIN_PATH
|
||||||
|
|
||||||
|
IT_Function_SYS_01:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_SYS_01.yml
|
||||||
|
|
||||||
|
IT_Function_WIFI_01:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
- SSC_T2_1
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_WIFI_01.yml
|
||||||
|
|
||||||
|
IT_Function_WIFI_02:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
- SSC_T2_1
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_WIFI_02.yml
|
||||||
|
|
||||||
|
IT_Function_TCPIP_01:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
- SSC_T2_1
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_TCPIP_01.yml
|
||||||
|
|
||||||
|
IT_Function_TCPIP_02:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
- SSC_T2_1
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_TCPIP_02.yml
|
||||||
|
|
||||||
|
IT_Function_TCPIP_03:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
- SSC_T2_1
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_TCPIP_03.yml
|
||||||
|
|
||||||
|
IT_Function_TCPIP_04:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
- SSC_T2_1
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_TCPIP_04.yml
|
||||||
|
|
||||||
|
IT_Function_TCPIP_05:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
- SSC_T2_1
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_TCPIP_05.yml
|
||||||
|
|
||||||
|
IT_Function_TCPIP_06:
|
||||||
|
<<: *test_template_night
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_TCPIP_06.yml
|
||||||
|
|
||||||
|
IT_Function_WIFI_03:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T3_PhyMode
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_WIFI_03.yml
|
||||||
|
|
||||||
|
IT_Function_WIFI_04:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_APC
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_WIFI_04.yml
|
||||||
|
|
||||||
|
IT_Function_WIFI_05:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_WEP
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_WIFI_05.yml
|
||||||
|
|
||||||
|
IT_Function_WIFI_06:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T2_PhyMode
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_WIFI_06.yml
|
||||||
|
|
||||||
|
IT_Function_TCPIP_07:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
- SSC_T1_2
|
||||||
|
- SSC_T2_1
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_TCPIP_07.yml
|
||||||
|
|
||||||
|
IT_Function_TCPIP_08:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_TCPIP_08.yml
|
||||||
|
|
||||||
|
IT_Function_TCPIP_09:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_TCPIP_09.yml
|
||||||
|
|
||||||
|
IT_Function_TCPIP_10:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
- SSC_T1_2
|
||||||
|
- SSC_T2_1
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_TCPIP_10.yml
|
||||||
|
|
||||||
|
IT_Function_TCPIP_11:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_TCPIP_11.yml
|
||||||
|
|
||||||
|
IT_Function_TCPIP_12:
|
||||||
|
<<: *test_template
|
||||||
|
tags:
|
||||||
|
- ESP32_IDF
|
||||||
|
- SSC_T1_1
|
||||||
|
- SSC_T1_2
|
||||||
|
before_script:
|
||||||
|
- TEST_CASE_FILE_PATH=$TEST_CASE_FILE_PATH/integration_test
|
||||||
|
- CONFIG_FILE=$TEST_CASE_FILE_PATH/CIConfigs/IT_Function_TCPIP_12.yml
|
||||||
|
|
|
@ -77,4 +77,4 @@ ALL_LIB_FILES := $(patsubst %,$(COMPONENT_PATH)/lib/lib%.a,$(LIBS))
|
||||||
$(COMPONENT_LIBRARY): $(ALL_LIB_FILES)
|
$(COMPONENT_LIBRARY): $(ALL_LIB_FILES)
|
||||||
|
|
||||||
# automatically trigger a git submodule update if BT library is missing
|
# automatically trigger a git submodule update if BT library is missing
|
||||||
$(eval $(call SubmoduleRequiredForFiles,$(ALL_LIB_FILES)))
|
$(eval $(call SubmoduleCheck,$(ALL_LIB_FILES),$(COMPONENT_PATH)/lib))
|
||||||
|
|
|
@ -27,7 +27,7 @@ ALL_LIB_FILES := $(patsubst %,$(COMPONENT_PATH)/lib/lib%.a,$(LIBS))
|
||||||
|
|
||||||
# automatically trigger a git submodule update
|
# automatically trigger a git submodule update
|
||||||
# if any libraries are missing
|
# if any libraries are missing
|
||||||
$(eval $(call SubmoduleRequiredForFiles,$(ALL_LIB_FILES)))
|
$(eval $(call SubmoduleCheck,$(ALL_LIB_FILES),$(COMPONENT_PATH)/lib))
|
||||||
|
|
||||||
# this is a hack to make sure the app is re-linked if the binary
|
# this is a hack to make sure the app is re-linked if the binary
|
||||||
# libraries change or are updated. If they change, the main esp32
|
# libraries change or are updated. If they change, the main esp32
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
#include <freertos/heap_regions.h>
|
#include <freertos/heap_regions.h>
|
||||||
|
|
||||||
#include "heap_alloc_caps.h"
|
#include "esp_heap_alloc_caps.h"
|
||||||
#include "spiram.h"
|
#include "spiram.h"
|
||||||
#include "esp_log.h"
|
#include "esp_log.h"
|
||||||
|
|
||||||
|
|
34
components/esp32/include/heap_alloc_caps.h
Normal file
34
components/esp32/include/heap_alloc_caps.h
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
// 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
|
||||||
|
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// 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.
|
||||||
|
#ifndef HEAP_ALLOC_CAPS_H
|
||||||
|
#define HEAP_ALLOC_CAPS_H
|
||||||
|
|
||||||
|
#define MALLOC_CAP_EXEC (1<<0) //Memory must be able to run executable code
|
||||||
|
#define MALLOC_CAP_32BIT (1<<1) //Memory must allow for aligned 32-bit data accesses
|
||||||
|
#define MALLOC_CAP_8BIT (1<<2) //Memory must allow for 8/16/...-bit data accesses
|
||||||
|
#define MALLOC_CAP_DMA (1<<3) //Memory must be able to accessed by DMA
|
||||||
|
#define MALLOC_CAP_PID2 (1<<4) //Memory must be mapped to PID2 memory space
|
||||||
|
#define MALLOC_CAP_PID3 (1<<5) //Memory must be mapped to PID3 memory space
|
||||||
|
#define MALLOC_CAP_PID4 (1<<6) //Memory must be mapped to PID4 memory space
|
||||||
|
#define MALLOC_CAP_PID5 (1<<7) //Memory must be mapped to PID5 memory space
|
||||||
|
#define MALLOC_CAP_PID6 (1<<8) //Memory must be mapped to PID6 memory space
|
||||||
|
#define MALLOC_CAP_PID7 (1<<9) //Memory must be mapped to PID7 memory space
|
||||||
|
#define MALLOC_CAP_SPISRAM (1<<10) //Memory must be in SPI SRAM
|
||||||
|
#define MALLOC_CAP_INVALID (1<<31) //Memory can't be used / list end marker
|
||||||
|
|
||||||
|
|
||||||
|
void heap_alloc_caps_init();
|
||||||
|
void *pvPortMallocCaps(size_t xWantedSize, uint32_t caps);
|
||||||
|
|
||||||
|
#endif
|
|
@ -225,4 +225,22 @@ typedef volatile struct {
|
||||||
uint32_t date; /*This is the version register.*/
|
uint32_t date; /*This is the version register.*/
|
||||||
} rmt_dev_t;
|
} rmt_dev_t;
|
||||||
extern rmt_dev_t RMT;
|
extern rmt_dev_t RMT;
|
||||||
|
|
||||||
|
//Allow access to RMT memory using RMTMEM.chan[0].data[8]
|
||||||
|
typedef volatile struct {
|
||||||
|
struct {
|
||||||
|
union {
|
||||||
|
struct {
|
||||||
|
uint32_t level1: 1;
|
||||||
|
uint32_t duration1: 15;
|
||||||
|
uint32_t level0: 1;
|
||||||
|
uint32_t duration0: 15;
|
||||||
|
|
||||||
|
};
|
||||||
|
uint32_t val;
|
||||||
|
} data[64];
|
||||||
|
} chan[8];
|
||||||
|
} rmt_mem_t;
|
||||||
|
extern rmt_mem_t RMTMEM;
|
||||||
|
|
||||||
#endif /* _SOC_RMT_STRUCT_H_ */
|
#endif /* _SOC_RMT_STRUCT_H_ */
|
||||||
|
|
|
@ -9,6 +9,7 @@ PROVIDE ( UART1 = 0x3ff50000 );
|
||||||
PROVIDE ( I2C0 = 0x3ff53000 );
|
PROVIDE ( I2C0 = 0x3ff53000 );
|
||||||
PROVIDE ( UHCI0 = 0x3ff54000 );
|
PROVIDE ( UHCI0 = 0x3ff54000 );
|
||||||
PROVIDE ( RMT = 0x3ff56000 );
|
PROVIDE ( RMT = 0x3ff56000 );
|
||||||
|
PROVIDE ( RMTMEM = 0x3ff56800 );
|
||||||
PROVIDE ( PCNT = 0x3ff57000 );
|
PROVIDE ( PCNT = 0x3ff57000 );
|
||||||
PROVIDE ( LEDC = 0x3ff59000 );
|
PROVIDE ( LEDC = 0x3ff59000 );
|
||||||
PROVIDE ( TIMERG0 = 0x3ff5F000 );
|
PROVIDE ( TIMERG0 = 0x3ff5F000 );
|
||||||
|
|
|
@ -142,6 +142,10 @@ int _open_r(struct _reent *r, const char * path, int flags, int mode) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _exit(int __status) {
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
|
||||||
ssize_t _write_r(struct _reent *r, int fd, const void * data, size_t size) {
|
ssize_t _write_r(struct _reent *r, int fd, const void * data, size_t size) {
|
||||||
const char *data_c = (const char *)data;
|
const char *data_c = (const char *)data;
|
||||||
if (fd == STDOUT_FILENO) {
|
if (fd == STDOUT_FILENO) {
|
||||||
|
|
|
@ -24,10 +24,11 @@ $(APP_BIN): $(APP_ELF) $(ESPTOOLPY_SRC)
|
||||||
$(Q) $(ESPTOOLPY) elf2image --flash_mode $(ESPFLASHMODE) --flash_freq $(ESPFLASHFREQ) -o $@ $<
|
$(Q) $(ESPTOOLPY) elf2image --flash_mode $(ESPFLASHMODE) --flash_freq $(ESPFLASHFREQ) -o $@ $<
|
||||||
|
|
||||||
flash: all_binaries $(ESPTOOLPY_SRC)
|
flash: all_binaries $(ESPTOOLPY_SRC)
|
||||||
@echo "Flashing project app to $(CONFIG_APP_OFFSET)..."
|
@echo "Flashing binaries to serial port $(ESPPORT) (app at offset $(CONFIG_APP_OFFSET))..."
|
||||||
$(Q) $(ESPTOOLPY_WRITE_FLASH) $(ESPTOOL_ALL_FLASH_ARGS)
|
$(Q) $(ESPTOOLPY_WRITE_FLASH) $(ESPTOOL_ALL_FLASH_ARGS)
|
||||||
|
|
||||||
app-flash: $(APP_BIN) $(ESPTOOLPY_SRC)
|
app-flash: $(APP_BIN) $(ESPTOOLPY_SRC)
|
||||||
|
@echo "Flashing app to serial port $(ESPPORT), offset $(CONFIG_APP_OFFSET)..."
|
||||||
$(Q) $(ESPTOOLPY_WRITE_FLASH) $(CONFIG_APP_OFFSET) $(APP_BIN)
|
$(Q) $(ESPTOOLPY_WRITE_FLASH) $(CONFIG_APP_OFFSET) $(APP_BIN)
|
||||||
|
|
||||||
$(eval $(call SubmoduleRequiredForFiles,$(ESPTOOLPY_SRC)))
|
$(eval $(call SubmoduleCheck,$(ESPTOOLPY_SRC),$(COMPONENT_PATH)/esptool))
|
||||||
|
|
|
@ -39,7 +39,7 @@ endchoice
|
||||||
|
|
||||||
config FREERTOS_HZ
|
config FREERTOS_HZ
|
||||||
int "Tick rate (Hz)"
|
int "Tick rate (Hz)"
|
||||||
range 1 10000
|
range 1 1000
|
||||||
default 100
|
default 100
|
||||||
help
|
help
|
||||||
Select the tick rate at which FreeRTOS does pre-emptive context switching.
|
Select the tick rate at which FreeRTOS does pre-emptive context switching.
|
||||||
|
|
|
@ -3342,7 +3342,6 @@ TCB_t *pxNewTCB;
|
||||||
BaseType_t xTaskGetAffinity( TaskHandle_t xTask )
|
BaseType_t xTaskGetAffinity( TaskHandle_t xTask )
|
||||||
{
|
{
|
||||||
TCB_t *pxTCB;
|
TCB_t *pxTCB;
|
||||||
UBaseType_t uxReturn;
|
|
||||||
|
|
||||||
pxTCB = prvGetTCBFromHandle( xTask );
|
pxTCB = prvGetTCBFromHandle( xTask );
|
||||||
|
|
||||||
|
|
61
components/idf_test/README.md
Normal file
61
components/idf_test/README.md
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
|
||||||
|
# Note: The test cases in this folder are for Espressif internal use.
|
||||||
|
|
||||||
|
# Goto internal project wiki Testing page for detail about this folder.
|
||||||
|
|
||||||
|
## File Structure
|
||||||
|
|
||||||
|
```
|
||||||
|
test --- CIConfigs --- sanity_test1.yml (Runner config files)
|
||||||
|
| |-- stress_test1.yml
|
||||||
|
|-- TestCaseAll.yml (TestCaseFiles)
|
||||||
|
|-- TestEnvAll.yml (TestCaseFiles)
|
||||||
|
|-- InitialConditionAll.yml (TestCaseFiles)
|
||||||
|
|-- TestCaseScript --- ... (Test case scripts)
|
||||||
|
```
|
||||||
|
|
||||||
|
1. CIConfigs folder
|
||||||
|
* config for CI config files are put in this folder
|
||||||
|
* CI config files configs the cases and some other options for the CI job with same name
|
||||||
|
1. Test case files
|
||||||
|
* TestCaseAll.yml (test cases)
|
||||||
|
* InitialConditionAll.yml (initial conditions)
|
||||||
|
* TestEnvAll.yml (test environments)
|
||||||
|
* [how to modify test cases](https://gitlab.espressif.cn:6688/yinling/auto_test_script/blob/master/public/Design/TestCaseFiles.DesignNote.md)
|
||||||
|
1. Test case scripts
|
||||||
|
* some cases are implemented by specified script. those scripts are put in this folder.
|
||||||
|
|
||||||
|
|
||||||
|
## Modify test cases
|
||||||
|
|
||||||
|
1. check if the "SDK" of the test case only contain the current SDK
|
||||||
|
* if Yes, then just modify the test case behavior
|
||||||
|
* if No:
|
||||||
|
1. then remove current SDK name from "SDK" of the test case
|
||||||
|
2. Add a new test case, and set "SDK" only support current SDK name
|
||||||
|
2. use [auto_test_script](https://gitlab.espressif.cn:6688/yinling/auto_test_script) to load the modified case and verify the modification
|
||||||
|
3. create a merge request and assign to HYL (or add comment @yinling for merging test).
|
||||||
|
After review it will be merged to SDK and will be The cases will be synced to database in auto_test_script.
|
||||||
|
|
||||||
|
|
||||||
|
## Run test case locally
|
||||||
|
|
||||||
|
1. clone auto_test_script (ssh://git@gitlab.espressif.cn:27227/yinling/auto_test_script.git) from gitlab
|
||||||
|
2. create test environment:
|
||||||
|
1. search test case (search test case ID in components/test/TestCaseAll.yml, get the "test environment" value
|
||||||
|
2. goto [test environment list](https://gitlab.espressif.cn:6688/yinling/auto_test_script/blob/master/public/Documents/TestEnvList.md), find the link and goto the environment detail page
|
||||||
|
3. create test environment according to figure and description
|
||||||
|
4. [config test environment](https://gitlab.espressif.cn:6688/yinling/auto_test_script/blob/master/public/Design/TestEnvConfig.DesignNote.md). All parameters in table "Parameters require config before use" MUST be configured.
|
||||||
|
3. run test cases with [CIRunner.py](https://gitlab.espressif.cn:6688/yinling/auto_test_script/blob/master/public/Design/RunnerConfigs.DesignNote.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## exclude known issues for CI
|
||||||
|
the test cases listed in file "KnownIssues" will be excluded by CI when calculating results
|
||||||
|
|
||||||
|
Editing KnownIssues file is very simple, one single line for the ID for each case.
|
||||||
|
```
|
||||||
|
TCPIP_TCP_0101
|
||||||
|
TCPIP_TCP_0201
|
||||||
|
...
|
||||||
|
```
|
|
@ -0,0 +1,5 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [SYS_MISC_0101, SYS_MISC_0201]
|
|
@ -0,0 +1,10 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC2, SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [^TCPIP_DHCP_0302, TCPIP_DHCP_0302, TCPIP_DHCP_0301, TCPIP_TCP_0403, TCPIP_TCP_0402,
|
||||||
|
TCPIP_TCP_0401, TCPIP_TCP_0407, TCPIP_TCP_0406, ^TCPIP_TCP_0411, TCPIP_TCP_0404,
|
||||||
|
TCPIP_TCP_0408, TCPIP_TCP_0110, TCPIP_TCP_0115, TCPIP_IP_0101, TCPIP_IP_0102,
|
||||||
|
^TCPIP_IGMP_0102, ^TCPIP_IGMP_0101, ^TCPIP_IGMP_0104, TCPIP_IGMP_0104, TCPIP_IGMP_0103,
|
||||||
|
TCPIP_IGMP_0102, TCPIP_IGMP_0101, TCPIP_UDP_0108, TCPIP_UDP_0106, TCPIP_UDP_0107,
|
||||||
|
TCPIP_UDP_0105, TCPIP_UDP_0101, TCPIP_IGMP_0204, TCPIP_IGMP_0201, TCPIP_IGMP_0202]
|
|
@ -0,0 +1,10 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC2, SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [TCPIP_IGMP_0203, ^TCPIP_TCP_0403, ^TCPIP_TCP_0408, TCPIP_UDP_0201, TCPIP_UDP_0202,
|
||||||
|
^TCPIP_DHCP_0301, ^TCPIP_TCP_0101, ^TCPIP_TCP_0103, ^TCPIP_TCP_0105, ^TCPIP_TCP_0104,
|
||||||
|
^TCPIP_TCP_0107, ^TCPIP_TCP_0106, ^TCPIP_DHCP_0210, ^TCPIP_DHCP_0211, ^TCPIP_TCP_0404,
|
||||||
|
TCPIP_TCP_0212, TCPIP_TCP_0210, ^TCPIP_TCP_0406, ^TCPIP_TCP_0407, ^TCPIP_TCP_0401,
|
||||||
|
^TCPIP_TCP_0210, ^TCPIP_TCP_0212, TCPIP_DHCP_0211, TCPIP_DHCP_0210, TCPIP_DHCP_0101,
|
||||||
|
TCPIP_DHCP_0103, TCPIP_DHCP_0102, TCPIP_DHCP_0206, TCPIP_DHCP_0207, ^TCPIP_IP_0102]
|
|
@ -0,0 +1,10 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC2, SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [^TCPIP_UDP_0105, ^TCPIP_UDP_0107, ^TCPIP_UDP_0106, ^TCPIP_UDP_0101, TCPIP_TCP_0203,
|
||||||
|
TCPIP_TCP_0202, ^TCPIP_UDP_0108, ^TCPIP_IGMP_0201, ^TCPIP_IGMP_0203, ^TCPIP_IGMP_0202,
|
||||||
|
^TCPIP_IGMP_0103, TCPIP_UDP_0114, TCPIP_UDP_0113, TCPIP_UDP_0112, TCPIP_DHCP_0205,
|
||||||
|
TCPIP_DHCP_0202, TCPIP_DHCP_0203, ^TCPIP_TCP_0102, TCPIP_TCP_0106, TCPIP_TCP_0107,
|
||||||
|
TCPIP_TCP_0104, TCPIP_TCP_0105, TCPIP_TCP_0102, TCPIP_TCP_0103, TCPIP_TCP_0101,
|
||||||
|
^TCPIP_TCP_0116, ^TCPIP_TCP_0114, ^TCPIP_TCP_0115, ^TCPIP_TCP_0112, ^TCPIP_TCP_0113]
|
|
@ -0,0 +1,10 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC2, SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [^TCPIP_TCP_0110, ^TCPIP_TCP_0111, TCPIP_DHCP_0209, ^TCPIP_DHCP_0209, ^TCPIP_DHCP_0207,
|
||||||
|
^TCPIP_DHCP_0206, ^TCPIP_DHCP_0205, ^TCPIP_DHCP_0204, ^TCPIP_DHCP_0203, ^TCPIP_DHCP_0202,
|
||||||
|
^TCPIP_DHCP_0201, TCPIP_TCP_0204, TCPIP_TCP_0207, TCPIP_TCP_0206, TCPIP_TCP_0201,
|
||||||
|
^TCPIP_DHCP_0101, ^TCPIP_DHCP_0102, ^TCPIP_DHCP_0103, ^TCPIP_DHCP_0208, TCPIP_TCP_0208,
|
||||||
|
^TCPIP_TCP_0202, ^TCPIP_TCP_0203, TCPIP_DHCP_0204, ^TCPIP_TCP_0201, ^TCPIP_TCP_0206,
|
||||||
|
^TCPIP_TCP_0207, ^TCPIP_TCP_0204, TCPIP_DHCP_0201, ^TCPIP_TCP_0208, TCPIP_DHCP_0208]
|
|
@ -0,0 +1,8 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC2, SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [^TCPIP_IGMP_0204, ^TCPIP_TCP_0412, TCPIP_TCP_0411, TCPIP_TCP_0412, ^TCPIP_UDP_0112,
|
||||||
|
^TCPIP_UDP_0113, ^TCPIP_UDP_0114, ^TCPIP_UDP_0202, ^TCPIP_UDP_0201, ^TCPIP_IP_0101,
|
||||||
|
^TCPIP_TCP_0402, TCPIP_TCP_0114, TCPIP_TCP_0116, TCPIP_TCP_0111, TCPIP_TCP_0113,
|
||||||
|
TCPIP_TCP_0112]
|
|
@ -0,0 +1,5 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [TCPIP_TCP_0405, ^TCPIP_TCP_0405]
|
|
@ -0,0 +1,10 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC2, SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [TCPIP_ICMP_0101, TCPIP_ICMP_0101, TCPIP_ICMP_0101, TCPIP_ICMP_0101, TCPIP_ICMP_0101,
|
||||||
|
TCPIP_DNS_0102, TCPIP_DNS_0102, TCPIP_DNS_0102, TCPIP_DNS_0102, TCPIP_DNS_0102,
|
||||||
|
TCPIP_DNS_0101, TCPIP_DNS_0101, TCPIP_DNS_0101, TCPIP_DNS_0101, TCPIP_DNS_0101,
|
||||||
|
^TCPIP_ICMP_0101, ^TCPIP_ICMP_0101, ^TCPIP_ICMP_0101, ^TCPIP_ICMP_0101, ^TCPIP_ICMP_0101,
|
||||||
|
TCPIP_UDP_0109, TCPIP_UDP_0109, TCPIP_UDP_0109, TCPIP_UDP_0109, TCPIP_UDP_0109,
|
||||||
|
TCPIP_UDP_0104, TCPIP_UDP_0104, TCPIP_UDP_0104, TCPIP_UDP_0104, TCPIP_UDP_0104]
|
|
@ -0,0 +1,10 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [TCPIP_UDP_0102, TCPIP_UDP_0102, TCPIP_UDP_0102, TCPIP_UDP_0102, TCPIP_UDP_0102,
|
||||||
|
TCPIP_UDP_0103, TCPIP_UDP_0103, TCPIP_UDP_0103, TCPIP_UDP_0103, TCPIP_UDP_0103,
|
||||||
|
^TCPIP_UDP_0307, ^TCPIP_UDP_0307, ^TCPIP_UDP_0307, ^TCPIP_UDP_0307, ^TCPIP_UDP_0307,
|
||||||
|
^TCPIP_UDP_0306, ^TCPIP_UDP_0306, ^TCPIP_UDP_0306, ^TCPIP_UDP_0306, ^TCPIP_UDP_0306,
|
||||||
|
^TCPIP_UDP_0305, ^TCPIP_UDP_0305, ^TCPIP_UDP_0305, ^TCPIP_UDP_0305, ^TCPIP_UDP_0305,
|
||||||
|
^TCPIP_UDP_0304, ^TCPIP_UDP_0304, ^TCPIP_UDP_0304, ^TCPIP_UDP_0304, ^TCPIP_UDP_0304]
|
|
@ -0,0 +1,10 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [^TCPIP_UDP_0303, ^TCPIP_UDP_0303, ^TCPIP_UDP_0303, ^TCPIP_UDP_0303, ^TCPIP_UDP_0303,
|
||||||
|
^TCPIP_UDP_0302, ^TCPIP_UDP_0302, ^TCPIP_UDP_0302, ^TCPIP_UDP_0302, ^TCPIP_UDP_0302,
|
||||||
|
^TCPIP_UDP_0301, ^TCPIP_UDP_0301, ^TCPIP_UDP_0301, ^TCPIP_UDP_0301, ^TCPIP_UDP_0301,
|
||||||
|
^TCPIP_UDP_0104, ^TCPIP_UDP_0104, ^TCPIP_UDP_0104, ^TCPIP_UDP_0104, ^TCPIP_UDP_0104,
|
||||||
|
^TCPIP_UDP_0103, ^TCPIP_UDP_0103, ^TCPIP_UDP_0103, ^TCPIP_UDP_0103, ^TCPIP_UDP_0103,
|
||||||
|
^TCPIP_UDP_0102, ^TCPIP_UDP_0102, ^TCPIP_UDP_0102, ^TCPIP_UDP_0102, ^TCPIP_UDP_0102]
|
|
@ -0,0 +1,10 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC2, SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [TCPIP_UDP_0111, TCPIP_UDP_0111, TCPIP_UDP_0111, TCPIP_UDP_0111, TCPIP_UDP_0111,
|
||||||
|
TCPIP_UDP_0110, TCPIP_UDP_0110, TCPIP_UDP_0110, TCPIP_UDP_0110, TCPIP_UDP_0110,
|
||||||
|
^TCPIP_DNS_0101, ^TCPIP_DNS_0101, ^TCPIP_DNS_0101, ^TCPIP_DNS_0101, ^TCPIP_DNS_0101,
|
||||||
|
^TCPIP_DNS_0103, ^TCPIP_DNS_0103, ^TCPIP_DNS_0103, ^TCPIP_DNS_0103, ^TCPIP_DNS_0103,
|
||||||
|
^TCPIP_DNS_0102, ^TCPIP_DNS_0102, ^TCPIP_DNS_0102, ^TCPIP_DNS_0102, ^TCPIP_DNS_0102,
|
||||||
|
TCPIP_UDP_0304, TCPIP_UDP_0304, TCPIP_UDP_0304, TCPIP_UDP_0304, TCPIP_UDP_0304]
|
|
@ -0,0 +1,10 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [TCPIP_UDP_0305, TCPIP_UDP_0305, TCPIP_UDP_0305, TCPIP_UDP_0305, TCPIP_UDP_0305,
|
||||||
|
TCPIP_UDP_0306, TCPIP_UDP_0306, TCPIP_UDP_0306, TCPIP_UDP_0306, TCPIP_UDP_0306,
|
||||||
|
TCPIP_UDP_0307, TCPIP_UDP_0307, TCPIP_UDP_0307, TCPIP_UDP_0307, TCPIP_UDP_0307,
|
||||||
|
TCPIP_UDP_0301, TCPIP_UDP_0301, TCPIP_UDP_0301, TCPIP_UDP_0301, TCPIP_UDP_0301,
|
||||||
|
TCPIP_UDP_0302, TCPIP_UDP_0302, TCPIP_UDP_0302, TCPIP_UDP_0302, TCPIP_UDP_0302,
|
||||||
|
TCPIP_UDP_0303, TCPIP_UDP_0303, TCPIP_UDP_0303, TCPIP_UDP_0303, TCPIP_UDP_0303]
|
|
@ -0,0 +1,6 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [TCPIP_DNS_0103, TCPIP_DNS_0103, TCPIP_DNS_0103, TCPIP_DNS_0103, TCPIP_DNS_0103,
|
||||||
|
^TCPIP_UDP_0110, ^TCPIP_UDP_0110, ^TCPIP_UDP_0110, ^TCPIP_UDP_0110, ^TCPIP_UDP_0110]
|
|
@ -0,0 +1,10 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC2, SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [^WIFI_CONN_0601, ^WIFI_ADDR_0101, WIFI_SCAN_0103, WIFI_SCAN_0102, WIFI_SCAN_0101,
|
||||||
|
WIFI_SCAN_0105, WIFI_SCAN_0104, ^WIFI_CONN_0103, WIFI_CONN_0201, WIFI_CONN_0904,
|
||||||
|
^WIFI_SCAN_0102, ^WIFI_SCAN_0103, ^WIFI_SCAN_0104, ^WIFI_SCAN_0105, WIFI_CONN_0401,
|
||||||
|
WIFI_ADDR_0101, WIFI_ADDR_0102, WIFI_CONN_0301, ^WIFI_CONN_0801, ^WIFI_CONN_0301,
|
||||||
|
WIFI_CONN_0501, WIFI_CONN_0502, ^WIFI_CONN_0401, WIFI_MODE_0101, WIFI_MODE_0103,
|
||||||
|
WIFI_MODE_0102, ^WIFI_CONN_0904, ^WIFI_CONN_0901, WIFI_CONN_0601, ^WIFI_CONN_0201]
|
|
@ -0,0 +1,7 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC2, SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [^WIFI_ADDR_0102, WIFI_CONN_0901, WIFI_CONN_0801, ^WIFI_CONN_0104, WIFI_CONN_0104,
|
||||||
|
WIFI_CONN_0101, WIFI_CONN_0102, WIFI_CONN_0103, ^WIFI_SCAN_0101, ^WIFI_CONN_0101,
|
||||||
|
^WIFI_CONN_0502, ^WIFI_CONN_0501]
|
|
@ -0,0 +1,6 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC3, SSC2, SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [WIFI_PHY_0502, WIFI_PHY_0503, WIFI_PHY_0501, WIFI_PHY_0506, WIFI_PHY_0505,
|
||||||
|
WIFI_PHY_0504]
|
|
@ -0,0 +1,5 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [^WIFI_CONN_0902, WIFI_CONN_0902]
|
|
@ -0,0 +1,5 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [^WIFI_CONN_0903, WIFI_CONN_0903]
|
|
@ -0,0 +1,7 @@
|
||||||
|
Config: {execute count: 1, execute order: in order}
|
||||||
|
DUT: [SSC2, SSC1]
|
||||||
|
Filter:
|
||||||
|
- Add:
|
||||||
|
ID: [WIFI_SCAN_0301, WIFI_SCAN_0303, WIFI_SCAN_0304, WIFI_SCAN_0302, WIFI_SCAN_0201,
|
||||||
|
WIFI_PHY_0403, WIFI_PHY_0402, WIFI_PHY_0401, WIFI_PHY_0407, WIFI_PHY_0406, WIFI_PHY_0405,
|
||||||
|
WIFI_PHY_0404, WIFI_PHY_0408]
|
2935
components/idf_test/integration_test/InitialConditionAll.yml
Normal file
2935
components/idf_test/integration_test/InitialConditionAll.yml
Normal file
File diff suppressed because it is too large
Load diff
66
components/idf_test/integration_test/KnownIssues
Normal file
66
components/idf_test/integration_test/KnownIssues
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
|
||||||
|
# NOT SUPPORT
|
||||||
|
|
||||||
|
# ICMP send Ping not supported
|
||||||
|
TCPIP_ICMP_0101
|
||||||
|
^TCPIP_ICMP_0101
|
||||||
|
|
||||||
|
# IGMP cases are not supported for now
|
||||||
|
TCPIP_IGMP_0101
|
||||||
|
TCPIP_IGMP_0102
|
||||||
|
TCPIP_IGMP_0103
|
||||||
|
TCPIP_IGMP_0104
|
||||||
|
TCPIP_IGMP_0201
|
||||||
|
TCPIP_IGMP_0202
|
||||||
|
TCPIP_IGMP_0203
|
||||||
|
TCPIP_IGMP_0204
|
||||||
|
^TCPIP_IGMP_0101
|
||||||
|
^TCPIP_IGMP_0102
|
||||||
|
^TCPIP_IGMP_0103
|
||||||
|
^TCPIP_IGMP_0104
|
||||||
|
^TCPIP_IGMP_0201
|
||||||
|
^TCPIP_IGMP_0202
|
||||||
|
^TCPIP_IGMP_0203
|
||||||
|
^TCPIP_IGMP_0204
|
||||||
|
|
||||||
|
# BUG
|
||||||
|
|
||||||
|
# auth change event
|
||||||
|
WIFI_CONN_0801
|
||||||
|
|
||||||
|
# disconnect reason
|
||||||
|
WIFI_CONN_0904
|
||||||
|
^WIFI_CONN_0904
|
||||||
|
WIFI_CONN_0901
|
||||||
|
^WIFI_CONN_0901
|
||||||
|
|
||||||
|
# Wifi connect issue
|
||||||
|
WIFI_CONN_0104
|
||||||
|
^WIFI_CONN_0104
|
||||||
|
|
||||||
|
# DHCP issues
|
||||||
|
^TCPIP_DHCP_0301
|
||||||
|
TCPIP_DHCP_0301
|
||||||
|
TCPIP_DHCP_0101
|
||||||
|
TCPIP_DHCP_0207
|
||||||
|
^TCPIP_DHCP_0207
|
||||||
|
TCPIP_DHCP_0208
|
||||||
|
^TCPIP_DHCP_0208
|
||||||
|
|
||||||
|
# TCP issue
|
||||||
|
TCPIP_TCP_0402
|
||||||
|
^TCPIP_TCP_0406
|
||||||
|
^TCPIP_TCP_0401
|
||||||
|
TCPIP_TCP_0210
|
||||||
|
^TCPIP_TCP_0210
|
||||||
|
TCPIP_TCP_0103
|
||||||
|
|
||||||
|
|
||||||
|
# UDP issue
|
||||||
|
TCPIP_UDP_0103
|
||||||
|
^TCPIP_UDP_0103
|
||||||
|
TCPIP_UDP_0110
|
||||||
|
^TCPIP_UDP_0110
|
||||||
|
|
||||||
|
|
||||||
|
|
14718
components/idf_test/integration_test/TestCaseAll.yml
Normal file
14718
components/idf_test/integration_test/TestCaseAll.yml
Normal file
File diff suppressed because it is too large
Load diff
275
components/idf_test/integration_test/TestEnvAll.yml
Normal file
275
components/idf_test/integration_test/TestEnvAll.yml
Normal file
|
@ -0,0 +1,275 @@
|
||||||
|
test environment:
|
||||||
|
- {PC OS: '', Special: N, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_1,
|
||||||
|
test environment detail: 'PC has 2 wired NIC connected to AP.
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
1 AT target connect with PC by UART (AT and LOG port).', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_2,
|
||||||
|
test environment detail: 'PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
1 AT target connect with PC by UART (AT and LOG port).', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_3,
|
||||||
|
test environment detail: 'Able to access WAN after connect to AP.
|
||||||
|
|
||||||
|
1 AT target connect with PC by UART (AT and LOG port).', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_ADC,
|
||||||
|
test environment detail: 'PC has 1 wired NIC connected to AP.
|
||||||
|
|
||||||
|
Analog input connect to AT1 TOUT.
|
||||||
|
|
||||||
|
Multimeter connect to input, able to measure input voltage.
|
||||||
|
|
||||||
|
1 AT target connect with PC by UART (AT and LOG port).', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_APC1,
|
||||||
|
test environment detail: "PC has 1 wired NIC connected to AP.\nPC has 1 wired NIC\
|
||||||
|
\ connected to APC (static IP within the same subnet with APC). \nAPC control\
|
||||||
|
\ AP power supply. \nPC has 1 WiFi NIC. \n1 AT target connect with PC by UART\
|
||||||
|
\ (AT and LOG port).", test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_APC2,
|
||||||
|
test environment detail: "Able to access WAN after connect to AP.\nPC has 1 wired\
|
||||||
|
\ NIC connected to APC (static IP within the same subnet with APC). \nAPC control\
|
||||||
|
\ AP power supply.\nPC has 1 WiFi NIC.\n1 AT target connect with PC by UART (AT\
|
||||||
|
\ and LOG port).", test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_HighSpeedUART,
|
||||||
|
test environment detail: 'PC has 2 wired NIC connected to AP.
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
1 AT target connect with PC by high speed UART (AT and LOG port).', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_SmartConfigIOT,
|
||||||
|
test environment detail: '1 AT target connect with PC by UART (AT and LOG port).
|
||||||
|
|
||||||
|
PC has 1 wired NIC connect to Common AP.
|
||||||
|
|
||||||
|
Several AP are placed near AT target.
|
||||||
|
|
||||||
|
Several smart phone installed test APK are placed near AT target.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 2.0, script path: EnvBase.py, tag: AT_T2_1,
|
||||||
|
test environment detail: 'PC has 1 wired NIC connected to AP.
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
2 AT target connect with PC by UART (AT and LOG port).', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, script path: EnvBase.py, tag: AT_T2_JAP,
|
||||||
|
test environment detail: "Several AP are placed near AT target.\nPC has 1 wired\
|
||||||
|
\ NIC connected to APC (static IP within the same subnet with APC).\nAPC control\
|
||||||
|
\ power supply for all APs. \n2 AT target connect with PC by UART (AT and LOG\
|
||||||
|
\ port).", test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, script path: EnvBase.py, tag: AT_T2_Sleep,
|
||||||
|
test environment detail: 'AP support DTIM placed with AT target.
|
||||||
|
|
||||||
|
2 AT target connect with PC by UART (AT and LOG port).
|
||||||
|
|
||||||
|
Multimeter connect with PC via GPIB.
|
||||||
|
|
||||||
|
Series multimeter between GND and VCC of AT1.
|
||||||
|
|
||||||
|
AT1''s light sleep wakeup pin and wakeup indication connect with AT2''s GPIO.',
|
||||||
|
test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 2.0, script path: EnvBase.py, tag: AT_T2_SmartConfig,
|
||||||
|
test environment detail: '2 AT target connect with PC by UART (AT and LOG port).
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
One HT20 AP and One HT40 AP are placed near target.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, UART ports: 'SSC1
|
||||||
|
|
||||||
|
SSC2', additional param list: '', basic param list: '', script path: EnvBase.py,
|
||||||
|
tag: IR_T2_1, test environment detail: '[TBD] 本测试为非自动测试, 红外能够做到数据收发吻合即可通过', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, script path: EnvBase.py, tag: NVS_T1_1,
|
||||||
|
test environment detail: '1 NVS target connect with PC by UART.
|
||||||
|
|
||||||
|
1 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
SSC2 GPIO connect to NVS1 power control pin.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, UART ports: SSC_1, additional param list: '',
|
||||||
|
basic param list: '', script path: EnvBase.py, tag: PWM_T1_1, test environment detail: "[TBD]\
|
||||||
|
\ 1. PWM OS SDK 以及 Non-OS SDK的测试建议分开进行, 放在不同的文件夹, 防止文件命名混淆\n2. 分析CSV文件的Python脚本只能分析单个channel\
|
||||||
|
\ \n3. 如果Init脚本打印\"Network Error\" 检查TCP Server是不是正常发送data", test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_1,
|
||||||
|
test environment detail: 'PC has 2 wired NIC connected to AP.
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
1 SSC target connect with PC by UART.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_2,
|
||||||
|
test environment detail: 'Able to access WAN after connect to AP.
|
||||||
|
|
||||||
|
1 SSC target connect with PC by UART.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_8089,
|
||||||
|
test environment detail: 'PC has 1 wired NIC connected to AP.
|
||||||
|
|
||||||
|
1 8089 tablet able to run iperf test placed near SSC1.
|
||||||
|
|
||||||
|
1 SSC target connect with PC by UART.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_ADC,
|
||||||
|
test environment detail: 'PC has 1 wired NIC connected to AP.
|
||||||
|
|
||||||
|
Analog input connect to SSC1 TOUT.
|
||||||
|
|
||||||
|
Multimeter connect to input, able to measure input voltage.
|
||||||
|
|
||||||
|
1 SSC target connect with PC by UART.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_APC,
|
||||||
|
test environment detail: "PC has 1 wired NIC connected to AP.\nPC has 1 wired NIC\
|
||||||
|
\ connected to APC (static IP within the same subnet with APC). \nAPC control\
|
||||||
|
\ AP power supply. \nPC has 1 WiFi NIC. \n1 SSC target connect with PC by UART.",
|
||||||
|
test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_Enterprise,
|
||||||
|
test environment detail: "AP use WPA2-Etherprise is placed near SSC1. \n1 SSC target\
|
||||||
|
\ connect with PC by UART.", test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_IOT1,
|
||||||
|
test environment detail: 'PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
1 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
AP todo IOT test are placed near SSC1.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, script path: EnvBase.py, tag: SSC_T1_InitData,
|
||||||
|
test environment detail: '2 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
SSC1 use 40M crystal oscillator.
|
||||||
|
|
||||||
|
SSC2 use normal 26M crystal oscillator.
|
||||||
|
|
||||||
|
SSC2 GPIO connect to SSC1 power control pin.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_ShieldBox,
|
||||||
|
test environment detail: 'refer to figure.
|
||||||
|
|
||||||
|
All APs and APC should be set to the same IP subnet.
|
||||||
|
|
||||||
|
PC wired NIC should set static IP address within the same subnet with AP.
|
||||||
|
|
||||||
|
Must use onboard wired NIC.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_TempBox,
|
||||||
|
test environment detail: '1 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
Put SSC target to temperature box.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, UART ports: SSC_1, additional param list: '',
|
||||||
|
basic param list: '', script path: EnvBase.py, tag: SSC_T1_Timer, test environment detail: '[TBD]
|
||||||
|
通过串口工具调节Timer, 将GPIO_13端口连接到逻辑分析仪', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_VDD33,
|
||||||
|
test environment detail: '1 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
Multimeter connect to VDD33, able to measure voltage.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_WEP,
|
||||||
|
test environment detail: '1 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
One WEP share key AP placed near SSC1.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 2.0, script path: EnvBase.py, tag: SSC_T2_1,
|
||||||
|
test environment detail: 'PC has 1 wired NIC connected to AP.
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
2 SSC target connect with PC by UART.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, UART ports: 'SSC1
|
||||||
|
|
||||||
|
SSC2', additional param list: '', basic param list: '', script path: EnvBase.py,
|
||||||
|
tag: SSC_T2_GPIO1, test environment detail: '[TBD] 2个ESP_8266通过UART连到PC, ESP_8266的
|
||||||
|
GPIO_6相连', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, UART ports: 'SSC1
|
||||||
|
|
||||||
|
SSC2', additional param list: '', basic param list: '', script path: EnvBase.py,
|
||||||
|
tag: SSC_T2_GPIO2, test environment detail: '[TBD] 1. 2个ESP_8266通过UART连到PC, ESP_8266的
|
||||||
|
GPIO_15通过面包板相连
|
||||||
|
|
||||||
|
2. 可借助面包板, 将GPIO_15, 以及中断函数被打开的8266板的GPIO_2 相连', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, UART ports: 'SSC1
|
||||||
|
|
||||||
|
SSC2', additional param list: '', basic param list: '', script path: EnvBase.py,
|
||||||
|
tag: SSC_T2_GPIO3, test environment detail: '[TBD] 2个ESP_8266通过UART连到PC, ESP_8266之间需要测试的Target_GPIO相连',
|
||||||
|
test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 2.0, script path: EnvBase.py, tag: SSC_T2_PhyMode,
|
||||||
|
test environment detail: '2 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
PC has one WiFi NIC support capture wlan packet using libpcap.
|
||||||
|
|
||||||
|
Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
|
||||||
|
|
||||||
|
Put 4 APs near SSC targets.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, script path: EnvBase.py, tag: SSC_T2_ShieldBox,
|
||||||
|
test environment detail: '2 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
Put them to Shield box.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, script path: EnvBase.py, tag: SSC_T2_Sleep1,
|
||||||
|
test environment detail: 'AP support DTIM placed with AT target.
|
||||||
|
|
||||||
|
2 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
Multimeter connect with PC via GPIB.
|
||||||
|
|
||||||
|
Series multimeter between GND and VCC of SSC1.
|
||||||
|
|
||||||
|
SSC1''s light sleep wakeup pin and wakeup indication connect with AT2''s GPIO.
|
||||||
|
|
||||||
|
SSC1''s XPD connect with RSTB.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, script path: EnvBase.py, tag: SSC_T2_Sleep2,
|
||||||
|
test environment detail: 'AP support DTIM placed with AT target.
|
||||||
|
|
||||||
|
2 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
Multimeter connect with PC via GPIB.
|
||||||
|
|
||||||
|
Series multimeter between GND and VCC of SSC1.
|
||||||
|
|
||||||
|
SSC1''s RSTB pin connect with AT2''s GPIO.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 2.0, script path: EnvBase.py, tag: SSC_T2_SmartConfig,
|
||||||
|
test environment detail: '2 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
One HT20 AP and One HT40 AP are placed near target.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 3.0, script path: EnvBase.py, tag: SSC_T3_PhyMode,
|
||||||
|
test environment detail: '3 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
PC has one WiFi NIC support capture wlan packet using libpcap.
|
||||||
|
|
||||||
|
Set 4 AP with (HT20, channel1), (HT20, channel2), (HT40, channel1), (HT40, channel2).
|
||||||
|
|
||||||
|
Put 4 APs near SSC targets.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 5.0, script path: EnvBase.py, tag: SSC_T5_1,
|
||||||
|
test environment detail: 5 SSC target connect with PC by UART., test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T6_1,
|
||||||
|
test environment detail: 'PC has 1 wired NIC connected to AP.
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
6 SSC target connect with PC by UART.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: TempSensor_T1_1,
|
||||||
|
test environment detail: 'Tempeture sensor target connect with PC by UART.
|
||||||
|
|
||||||
|
AP support DTIM placed with AT target.
|
||||||
|
|
||||||
|
Multimeter connect with PC via GPIB.
|
||||||
|
|
||||||
|
Series multimeter between GND and VCC of TempSensor1.
|
||||||
|
|
||||||
|
PC has 1 wired NIC connected to switch.
|
||||||
|
|
||||||
|
APC, AP also connect with swtich.
|
||||||
|
|
||||||
|
All devices connected with switch use the same IP subnet.
|
||||||
|
|
||||||
|
APC control AP power supply.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, UART ports: SSC_1, additional param list: '',
|
||||||
|
basic param list: '', script path: EnvBase.py, tag: UART_T1_1, test environment detail: '[TBD]
|
||||||
|
将ESP_8266通过UART连到PC', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, UART ports: 'SSC1
|
||||||
|
|
||||||
|
SSC2', additional param list: '', basic param list: '', script path: EnvBase.py,
|
||||||
|
tag: UART_T1_2, test environment detail: '[TBD] ESP_8266通过UART_0通过USB, UART_1 TXD
|
||||||
|
通过 TTLcable 连到PC', test script: EnvBase}
|
||||||
|
- {PC OS: linux, Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: WebServer_T1_1,
|
||||||
|
test environment detail: 'Web Server target connect with PC by UART.
|
||||||
|
|
||||||
|
PC has 1 wired NIC connected to switch.
|
||||||
|
|
||||||
|
APC, AP also connect with swtich.
|
||||||
|
|
||||||
|
All devices connected with switch use same IP subnet.
|
||||||
|
|
||||||
|
APC control AP power supply.', test script: EnvBase}
|
||||||
|
- {PC OS: linux, Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: WebServer_T1_2,
|
||||||
|
test environment detail: 'Web Server target connect with PC by UART.
|
||||||
|
|
||||||
|
4 PC with WiFi NIC placed near WebServer1.', test script: EnvBase}
|
2935
components/idf_test/uint_test/InitialConditionAll.yml
Normal file
2935
components/idf_test/uint_test/InitialConditionAll.yml
Normal file
File diff suppressed because it is too large
Load diff
1
components/idf_test/uint_test/TestCaseAll.yml
Normal file
1
components/idf_test/uint_test/TestCaseAll.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
test cases: []
|
275
components/idf_test/uint_test/TestEnvAll.yml
Normal file
275
components/idf_test/uint_test/TestEnvAll.yml
Normal file
|
@ -0,0 +1,275 @@
|
||||||
|
test environment:
|
||||||
|
- {PC OS: '', Special: N, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_1,
|
||||||
|
test environment detail: 'PC has 2 wired NIC connected to AP.
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
1 AT target connect with PC by UART (AT and LOG port).', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_2,
|
||||||
|
test environment detail: 'PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
1 AT target connect with PC by UART (AT and LOG port).', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_3,
|
||||||
|
test environment detail: 'Able to access WAN after connect to AP.
|
||||||
|
|
||||||
|
1 AT target connect with PC by UART (AT and LOG port).', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_ADC,
|
||||||
|
test environment detail: 'PC has 1 wired NIC connected to AP.
|
||||||
|
|
||||||
|
Analog input connect to AT1 TOUT.
|
||||||
|
|
||||||
|
Multimeter connect to input, able to measure input voltage.
|
||||||
|
|
||||||
|
1 AT target connect with PC by UART (AT and LOG port).', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_APC1,
|
||||||
|
test environment detail: "PC has 1 wired NIC connected to AP.\nPC has 1 wired NIC\
|
||||||
|
\ connected to APC (static IP within the same subnet with APC). \nAPC control\
|
||||||
|
\ AP power supply. \nPC has 1 WiFi NIC. \n1 AT target connect with PC by UART\
|
||||||
|
\ (AT and LOG port).", test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_APC2,
|
||||||
|
test environment detail: "Able to access WAN after connect to AP.\nPC has 1 wired\
|
||||||
|
\ NIC connected to APC (static IP within the same subnet with APC). \nAPC control\
|
||||||
|
\ AP power supply.\nPC has 1 WiFi NIC.\n1 AT target connect with PC by UART (AT\
|
||||||
|
\ and LOG port).", test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_HighSpeedUART,
|
||||||
|
test environment detail: 'PC has 2 wired NIC connected to AP.
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
1 AT target connect with PC by high speed UART (AT and LOG port).', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: AT_T1_SmartConfigIOT,
|
||||||
|
test environment detail: '1 AT target connect with PC by UART (AT and LOG port).
|
||||||
|
|
||||||
|
PC has 1 wired NIC connect to Common AP.
|
||||||
|
|
||||||
|
Several AP are placed near AT target.
|
||||||
|
|
||||||
|
Several smart phone installed test APK are placed near AT target.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 2.0, script path: EnvBase.py, tag: AT_T2_1,
|
||||||
|
test environment detail: 'PC has 1 wired NIC connected to AP.
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
2 AT target connect with PC by UART (AT and LOG port).', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, script path: EnvBase.py, tag: AT_T2_JAP,
|
||||||
|
test environment detail: "Several AP are placed near AT target.\nPC has 1 wired\
|
||||||
|
\ NIC connected to APC (static IP within the same subnet with APC).\nAPC control\
|
||||||
|
\ power supply for all APs. \n2 AT target connect with PC by UART (AT and LOG\
|
||||||
|
\ port).", test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, script path: EnvBase.py, tag: AT_T2_Sleep,
|
||||||
|
test environment detail: 'AP support DTIM placed with AT target.
|
||||||
|
|
||||||
|
2 AT target connect with PC by UART (AT and LOG port).
|
||||||
|
|
||||||
|
Multimeter connect with PC via GPIB.
|
||||||
|
|
||||||
|
Series multimeter between GND and VCC of AT1.
|
||||||
|
|
||||||
|
AT1''s light sleep wakeup pin and wakeup indication connect with AT2''s GPIO.',
|
||||||
|
test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 2.0, script path: EnvBase.py, tag: AT_T2_SmartConfig,
|
||||||
|
test environment detail: '2 AT target connect with PC by UART (AT and LOG port).
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
One HT20 AP and One HT40 AP are placed near target.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, UART ports: 'SSC1
|
||||||
|
|
||||||
|
SSC2', additional param list: '', basic param list: '', script path: EnvBase.py,
|
||||||
|
tag: IR_T2_1, test environment detail: '[TBD] 本测试为非自动测试, 红外能够做到数据收发吻合即可通过', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, script path: EnvBase.py, tag: NVS_T1_1,
|
||||||
|
test environment detail: '1 NVS target connect with PC by UART.
|
||||||
|
|
||||||
|
1 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
SSC2 GPIO connect to NVS1 power control pin.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, UART ports: SSC_1, additional param list: '',
|
||||||
|
basic param list: '', script path: EnvBase.py, tag: PWM_T1_1, test environment detail: "[TBD]\
|
||||||
|
\ 1. PWM OS SDK 以及 Non-OS SDK的测试建议分开进行, 放在不同的文件夹, 防止文件命名混淆\n2. 分析CSV文件的Python脚本只能分析单个channel\
|
||||||
|
\ \n3. 如果Init脚本打印\"Network Error\" 检查TCP Server是不是正常发送data", test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_1,
|
||||||
|
test environment detail: 'PC has 2 wired NIC connected to AP.
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
1 SSC target connect with PC by UART.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_2,
|
||||||
|
test environment detail: 'Able to access WAN after connect to AP.
|
||||||
|
|
||||||
|
1 SSC target connect with PC by UART.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_8089,
|
||||||
|
test environment detail: 'PC has 1 wired NIC connected to AP.
|
||||||
|
|
||||||
|
1 8089 tablet able to run iperf test placed near SSC1.
|
||||||
|
|
||||||
|
1 SSC target connect with PC by UART.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_ADC,
|
||||||
|
test environment detail: 'PC has 1 wired NIC connected to AP.
|
||||||
|
|
||||||
|
Analog input connect to SSC1 TOUT.
|
||||||
|
|
||||||
|
Multimeter connect to input, able to measure input voltage.
|
||||||
|
|
||||||
|
1 SSC target connect with PC by UART.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_APC,
|
||||||
|
test environment detail: "PC has 1 wired NIC connected to AP.\nPC has 1 wired NIC\
|
||||||
|
\ connected to APC (static IP within the same subnet with APC). \nAPC control\
|
||||||
|
\ AP power supply. \nPC has 1 WiFi NIC. \n1 SSC target connect with PC by UART.",
|
||||||
|
test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_Enterprise,
|
||||||
|
test environment detail: "AP use WPA2-Etherprise is placed near SSC1. \n1 SSC target\
|
||||||
|
\ connect with PC by UART.", test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_IOT1,
|
||||||
|
test environment detail: 'PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
1 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
AP todo IOT test are placed near SSC1.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, script path: EnvBase.py, tag: SSC_T1_InitData,
|
||||||
|
test environment detail: '2 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
SSC1 use 40M crystal oscillator.
|
||||||
|
|
||||||
|
SSC2 use normal 26M crystal oscillator.
|
||||||
|
|
||||||
|
SSC2 GPIO connect to SSC1 power control pin.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_ShieldBox,
|
||||||
|
test environment detail: 'refer to figure.
|
||||||
|
|
||||||
|
All APs and APC should be set to the same IP subnet.
|
||||||
|
|
||||||
|
PC wired NIC should set static IP address within the same subnet with AP.
|
||||||
|
|
||||||
|
Must use onboard wired NIC.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_TempBox,
|
||||||
|
test environment detail: '1 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
Put SSC target to temperature box.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, UART ports: SSC_1, additional param list: '',
|
||||||
|
basic param list: '', script path: EnvBase.py, tag: SSC_T1_Timer, test environment detail: '[TBD]
|
||||||
|
通过串口工具调节Timer, 将GPIO_13端口连接到逻辑分析仪', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_VDD33,
|
||||||
|
test environment detail: '1 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
Multimeter connect to VDD33, able to measure voltage.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T1_WEP,
|
||||||
|
test environment detail: '1 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
One WEP share key AP placed near SSC1.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 2.0, script path: EnvBase.py, tag: SSC_T2_1,
|
||||||
|
test environment detail: 'PC has 1 wired NIC connected to AP.
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
2 SSC target connect with PC by UART.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, UART ports: 'SSC1
|
||||||
|
|
||||||
|
SSC2', additional param list: '', basic param list: '', script path: EnvBase.py,
|
||||||
|
tag: SSC_T2_GPIO1, test environment detail: '[TBD] 2个ESP_8266通过UART连到PC, ESP_8266的
|
||||||
|
GPIO_6相连', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, UART ports: 'SSC1
|
||||||
|
|
||||||
|
SSC2', additional param list: '', basic param list: '', script path: EnvBase.py,
|
||||||
|
tag: SSC_T2_GPIO2, test environment detail: '[TBD] 1. 2个ESP_8266通过UART连到PC, ESP_8266的
|
||||||
|
GPIO_15通过面包板相连
|
||||||
|
|
||||||
|
2. 可借助面包板, 将GPIO_15, 以及中断函数被打开的8266板的GPIO_2 相连', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, UART ports: 'SSC1
|
||||||
|
|
||||||
|
SSC2', additional param list: '', basic param list: '', script path: EnvBase.py,
|
||||||
|
tag: SSC_T2_GPIO3, test environment detail: '[TBD] 2个ESP_8266通过UART连到PC, ESP_8266之间需要测试的Target_GPIO相连',
|
||||||
|
test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 2.0, script path: EnvBase.py, tag: SSC_T2_PhyMode,
|
||||||
|
test environment detail: '2 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
PC has one WiFi NIC support capture wlan packet using libpcap.
|
||||||
|
|
||||||
|
Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
|
||||||
|
|
||||||
|
Put 4 APs near SSC targets.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, script path: EnvBase.py, tag: SSC_T2_ShieldBox,
|
||||||
|
test environment detail: '2 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
Put them to Shield box.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, script path: EnvBase.py, tag: SSC_T2_Sleep1,
|
||||||
|
test environment detail: 'AP support DTIM placed with AT target.
|
||||||
|
|
||||||
|
2 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
Multimeter connect with PC via GPIB.
|
||||||
|
|
||||||
|
Series multimeter between GND and VCC of SSC1.
|
||||||
|
|
||||||
|
SSC1''s light sleep wakeup pin and wakeup indication connect with AT2''s GPIO.
|
||||||
|
|
||||||
|
SSC1''s XPD connect with RSTB.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 2.0, script path: EnvBase.py, tag: SSC_T2_Sleep2,
|
||||||
|
test environment detail: 'AP support DTIM placed with AT target.
|
||||||
|
|
||||||
|
2 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
Multimeter connect with PC via GPIB.
|
||||||
|
|
||||||
|
Series multimeter between GND and VCC of SSC1.
|
||||||
|
|
||||||
|
SSC1''s RSTB pin connect with AT2''s GPIO.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 2.0, script path: EnvBase.py, tag: SSC_T2_SmartConfig,
|
||||||
|
test environment detail: '2 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
One HT20 AP and One HT40 AP are placed near target.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 3.0, script path: EnvBase.py, tag: SSC_T3_PhyMode,
|
||||||
|
test environment detail: '3 SSC target connect with PC by UART.
|
||||||
|
|
||||||
|
PC has one WiFi NIC support capture wlan packet using libpcap.
|
||||||
|
|
||||||
|
Set 4 AP with (HT20, channel1), (HT20, channel2), (HT40, channel1), (HT40, channel2).
|
||||||
|
|
||||||
|
Put 4 APs near SSC targets.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 5.0, script path: EnvBase.py, tag: SSC_T5_1,
|
||||||
|
test environment detail: 5 SSC target connect with PC by UART., test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: N, Target Count: 1.0, script path: EnvBase.py, tag: SSC_T6_1,
|
||||||
|
test environment detail: 'PC has 1 wired NIC connected to AP.
|
||||||
|
|
||||||
|
PC has 1 WiFi NIC.
|
||||||
|
|
||||||
|
6 SSC target connect with PC by UART.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: TempSensor_T1_1,
|
||||||
|
test environment detail: 'Tempeture sensor target connect with PC by UART.
|
||||||
|
|
||||||
|
AP support DTIM placed with AT target.
|
||||||
|
|
||||||
|
Multimeter connect with PC via GPIB.
|
||||||
|
|
||||||
|
Series multimeter between GND and VCC of TempSensor1.
|
||||||
|
|
||||||
|
PC has 1 wired NIC connected to switch.
|
||||||
|
|
||||||
|
APC, AP also connect with swtich.
|
||||||
|
|
||||||
|
All devices connected with switch use the same IP subnet.
|
||||||
|
|
||||||
|
APC control AP power supply.', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, UART ports: SSC_1, additional param list: '',
|
||||||
|
basic param list: '', script path: EnvBase.py, tag: UART_T1_1, test environment detail: '[TBD]
|
||||||
|
将ESP_8266通过UART连到PC', test script: EnvBase}
|
||||||
|
- {PC OS: '', Special: Y, Target Count: 1.0, UART ports: 'SSC1
|
||||||
|
|
||||||
|
SSC2', additional param list: '', basic param list: '', script path: EnvBase.py,
|
||||||
|
tag: UART_T1_2, test environment detail: '[TBD] ESP_8266通过UART_0通过USB, UART_1 TXD
|
||||||
|
通过 TTLcable 连到PC', test script: EnvBase}
|
||||||
|
- {PC OS: linux, Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: WebServer_T1_1,
|
||||||
|
test environment detail: 'Web Server target connect with PC by UART.
|
||||||
|
|
||||||
|
PC has 1 wired NIC connected to switch.
|
||||||
|
|
||||||
|
APC, AP also connect with swtich.
|
||||||
|
|
||||||
|
All devices connected with switch use same IP subnet.
|
||||||
|
|
||||||
|
APC control AP power supply.', test script: EnvBase}
|
||||||
|
- {PC OS: linux, Special: Y, Target Count: 1.0, script path: EnvBase.py, tag: WebServer_T1_2,
|
||||||
|
test environment detail: 'Web Server target connect with PC by UART.
|
||||||
|
|
||||||
|
4 PC with WiFi NIC placed near WebServer1.', test script: EnvBase}
|
|
@ -1442,8 +1442,15 @@ lwip_sendto(int s, const void *data, size_t size, int flags,
|
||||||
#ifdef LWIP_ESP8266
|
#ifdef LWIP_ESP8266
|
||||||
/*fix the code for getting the UDP proto's remote information by liuh at 2014.8.27*/
|
/*fix the code for getting the UDP proto's remote information by liuh at 2014.8.27*/
|
||||||
if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_UDP){
|
if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_UDP){
|
||||||
|
if(NETCONNTYPE_ISIPV6(netconn_type(sock->conn))) {
|
||||||
|
memcpy(&buf.addr.u_addr.ip6.addr, sock->conn->pcb.udp->remote_ip.u_addr.ip6.addr,16);
|
||||||
|
remote_port = sock->conn->pcb.udp->remote_port;
|
||||||
|
IP_SET_TYPE(&buf.addr, IPADDR_TYPE_V6);
|
||||||
|
} else {
|
||||||
buf.addr.u_addr.ip4.addr = sock->conn->pcb.udp->remote_ip.u_addr.ip4.addr;
|
buf.addr.u_addr.ip4.addr = sock->conn->pcb.udp->remote_ip.u_addr.ip4.addr;
|
||||||
remote_port = sock->conn->pcb.udp->remote_port;
|
remote_port = sock->conn->pcb.udp->remote_port;
|
||||||
|
IP_SET_TYPE(&buf.addr, IPADDR_TYPE_V4);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
#endif
|
#endif
|
||||||
remote_port = 0;
|
remote_port = 0;
|
||||||
|
|
|
@ -23,19 +23,27 @@ summary := @echo
|
||||||
details := @true
|
details := @true
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Pseudo-target to handle the case where submodules need to be
|
# Pseudo-target to check a git submodule has been properly initialised
|
||||||
# re-initialised.
|
|
||||||
#
|
#
|
||||||
# $(eval $(call SubmoduleRequiredForFiles,FILENAMES)) to create a target that
|
# $(eval $(call SubmoduleCheck,FILENAMES,SUBMODULE_PATH)) to create a target that
|
||||||
# automatically runs 'git submodule update --init' if those files
|
# automatically runs 'git submodule update --init SUBMODULE_PATH' if any of
|
||||||
# are missing, and fails if this is not possible.
|
# the files in FILENAMES are missing, and fails if this is not possible.
|
||||||
define SubmoduleRequiredForFiles
|
#
|
||||||
|
# Will also print a WARNING if the submodule at SUBMODULE_PATH appears
|
||||||
|
# to require an update.
|
||||||
|
define SubmoduleCheck
|
||||||
$(1):
|
$(1):
|
||||||
@echo "WARNING: Missing submodule for $$@..."
|
@echo "WARNING: Missing submodule $(2) for $$@..."
|
||||||
$(Q) [ -d ${IDF_PATH}/.git ] || ( echo "ERROR: esp-idf must be cloned from git to work."; exit 1)
|
$(Q) [ -d ${IDF_PATH}/.git ] || ( echo "ERROR: esp-idf must be cloned from git to work."; exit 1)
|
||||||
$(Q) [ -x $(which git) ] || ( echo "ERROR: Need to run 'git submodule --init' in esp-idf root directory."; exit 1)
|
$(Q) [ -x $(which git) ] || ( echo "ERROR: Need to run 'git submodule --init' in esp-idf root directory."; exit 1)
|
||||||
@echo "Attempting 'git submodule update --init' in esp-idf root directory..."
|
@echo "Attempting 'git submodule update --init' in esp-idf root directory..."
|
||||||
cd ${IDF_PATH} && git submodule update --init
|
cd ${IDF_PATH} && git submodule update --init $(2)
|
||||||
|
|
||||||
|
# Parse 'git submodule status' output for out-of-date submodule.
|
||||||
|
# Status output prefixes status line with '+' if the submodule commit doesn't match
|
||||||
|
ifneq ("$(shell cd ${IDF_PATH} && git submodule status $(2) | grep '^+')","")
|
||||||
|
$$(info WARNING: git submodule $2 may be out of date. Run 'git submodule update' to update.)
|
||||||
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -165,7 +165,7 @@ CPPFLAGS = -DESP_PLATFORM -Og -g3 -Wpointer-arith -Werror -Wno-error=unused-func
|
||||||
CFLAGS = $(CPPFLAGS) -std=gnu99 -g3 -fstrict-volatile-bitfields
|
CFLAGS = $(CPPFLAGS) -std=gnu99 -g3 -fstrict-volatile-bitfields
|
||||||
|
|
||||||
# CXXFLAGS uses by C++ only
|
# CXXFLAGS uses by C++ only
|
||||||
CXXFLAGS = $(CPPFLAGS) -Og -std=gnu++11 -g3 -fno-exceptions -fstrict-volatile-bitfields
|
CXXFLAGS = $(CPPFLAGS) -Og -std=gnu++11 -g3 -fno-exceptions -fstrict-volatile-bitfields -fno-rtti
|
||||||
|
|
||||||
export CFLAGS CPPFLAGS CXXFLAGS
|
export CFLAGS CPPFLAGS CXXFLAGS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue