build_esp_idf_tests_make:
<<: *build_esp_idf_unit_test_template
script:
- - export EXTRA_CFLAGS="-Werror -Werror=deprecated-declarations"
+ - export EXTRA_CFLAGS=${PEDANTIC_CFLAGS}
- export EXTRA_CXXFLAGS=${EXTRA_CFLAGS}
- cd $CI_PROJECT_DIR/tools/unit-test-app
- MAKEFLAGS= make help # make sure kconfig tools are built in single process
- make ut-clean-all-configs
- make ut-build-all-configs
- python tools/UnitTestParser.py
+ # Check if the tests demand Make built binaries. If not, delete them
- if [ "$UNIT_TEST_BUILD_SYSTEM" == "make" ]; then exit 0; fi
- # If Make, delete the CMake built artifacts
- rm -rf builds output sdkconfig
- rm -rf components/idf_test/unit_test/TestCaseAll.yml
- rm -rf components/idf_test/unit_test/CIConfigs/*.yml
<<: *build_esp_idf_unit_test_template
script:
- export PATH="$IDF_PATH/tools:$PATH"
- - export EXTRA_CFLAGS="-Werror -Werror=deprecated-declarations"
+ - export EXTRA_CFLAGS=${PEDANTIC_CFLAGS}
- export EXTRA_CXXFLAGS=${EXTRA_CFLAGS}
- cd $CI_PROJECT_DIR/tools/unit-test-app
- # Build with CMake first
- idf.py ut-clean-all-configs
- idf.py ut-build-all-configs
- python tools/UnitTestParser.py
- # Check if test demands CMake or Make built binaries. If CMake leave the built artifacts as is then exit.
+ # Check if the tests demand CMake built binaries. If not, delete them
- if [ "$UNIT_TEST_BUILD_SYSTEM" == "cmake" ]; then exit 0; fi
- # If Make, delete the CMake built artifacts
- rm -rf builds output sdkconfig
- rm -rf components/idf_test/unit_test/TestCaseAll.yml
- rm -rf components/idf_test/unit_test/CIConfigs/*.yml
when: always
paths:
- build_examples/*/*/*/build/*.bin
+ - build_examples/*/*/*/sdkconfig
- build_examples/*/*/*/build/*.elf
- build_examples/*/*/*/build/*.map
- build_examples/*/*/*/build/download.config
when: always
paths:
- build_examples_cmake/*/*/*/build/*.bin
+ - build_examples_cmake/*/*/*/sdkconfig
- build_examples_cmake/*/*/*/build/*.elf
- build_examples_cmake/*/*/*/build/*.map
- build_examples_cmake/*/*/*/build/download.config
# run it only under Python 3 (it is very slow under Python 2)
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.4.8 python -m flake8 --config=$IDF_PATH/.flake8 --output-file=flake8_output.txt --tee --benchmark $IDF_PATH
+check_kconfigs:
+ <<: *check_job_template
+ before_script: *do_nothing_before
+ artifacts:
+ when: on_failure
+ paths:
+ - components/*/Kconfig*.new
+ - examples/*/*/*/Kconfig*.new
+ - examples/*/*/*/*/Kconfig*.new
+ - tools/*/Kconfig*.new
+ - tools/*/*/Kconfig*.new
+ - tools/*/*/*/Kconfig*.new
+ expire_in: 1 week
+ script:
+ - ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh ${IDF_PATH}/tools/test_check_kconfigs.py
+ - ${IDF_PATH}/tools/check_kconfigs.py
+
check_ut_cmake_make:
stage: check
image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG
- $BOT_LABEL_UNIT_TEST
- $BOT_LABEL_INTEGRATION_TEST
- $BOT_LABEL_EXAMPLE_TEST
- before_script: *add_gitlab_key_before
script:
# assign example tests
- python $TEST_FW_PATH/CIAssignExampleTest.py $IDF_PATH/examples $IDF_PATH/.gitlab-ci.yml $EXAMPLE_CONFIG_OUTPUT_PATH
- UT_T1_I2S
- psram
+UT_017_01:
+ <<: *unit_test_template
+ tags:
+ - ESP32_IDF
+ - UT_T2_1
+
+UT_017_02:
+ <<: *unit_test_template
+ tags:
+ - ESP32_IDF
+ - UT_T2_1
+
+UT_017_03:
+ <<: *unit_test_template
+ tags:
+ - ESP32_IDF
+ - UT_T2_1
+
+UT_017_04:
+ <<: *unit_test_template
+ tags:
+ - ESP32_IDF
+ - UT_T2_1
+ - psram
+
+UT_017_05:
+ <<: *unit_test_template
+ tags:
+ - ESP32_IDF
+ - UT_T2_1
+ - 8Mpsram
+
UT_601_01:
<<: *unit_test_template
tags: