mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-19 14:26:01 -04:00
build system tests: Run inside PWD same as build_examples.sh
This commit is contained in:
parent
774c9d0a61
commit
97efaab27b
@ -235,8 +235,11 @@ test_build_system:
|
||||
- build_test
|
||||
dependencies: []
|
||||
script:
|
||||
- ./tools/ci/test_configure_ci_environment.sh
|
||||
- ./tools/ci/test_build_system.sh
|
||||
- ${IDF_PATH}/tools/ci/test_configure_ci_environment.sh
|
||||
- rm -rf test_build_system
|
||||
- mkdir test_build_system
|
||||
- cd test_build_system
|
||||
- ${IDF_PATH}/tools/ci/test_build_system.sh
|
||||
|
||||
test_report:
|
||||
stage: test_report
|
||||
|
@ -5,7 +5,7 @@
|
||||
#
|
||||
# Runs as part of CI process.
|
||||
#
|
||||
# Assumes CWD is an out-of-tree build directory, and will copy examples
|
||||
# Assumes PWD is an out-of-tree build directory, and will copy examples
|
||||
# to individual subdirectories, one by one.
|
||||
#
|
||||
#
|
||||
|
@ -3,11 +3,12 @@
|
||||
# Test the build system for basic consistency
|
||||
#
|
||||
# A bash script that tests some likely make failure scenarios in a row
|
||||
# Creates its own test build directory under TMP and cleans it up when done.
|
||||
#
|
||||
# Assumes PWD is an out-of-tree build directory, and will create a
|
||||
# subdirectory inside it to run build tests in.
|
||||
#
|
||||
# Environment variables:
|
||||
# IDF_PATH - must be set
|
||||
# TMP - can override /tmp location for build directory
|
||||
# ESP_IDF_TEMPLATE_GIT - Can override git clone source for template app. Otherwise github.
|
||||
# NOCLEANUP - Set to '1' if you want the script to leave its temporary directory when done, for post-mortem.
|
||||
#
|
||||
@ -26,7 +27,6 @@
|
||||
|
||||
# Set up some variables
|
||||
#
|
||||
[ -z ${TMP} ] && TMP="/tmp"
|
||||
# override ESP_IDF_TEMPLATE_GIT to point to a local dir if you're testing and want fast iterations
|
||||
[ -z ${ESP_IDF_TEMPLATE_GIT} ] && ESP_IDF_TEMPLATE_GIT=https://github.com/espressif/esp-idf-template.git
|
||||
|
||||
@ -205,7 +205,7 @@ function failure()
|
||||
FAILURES="${FAILURES}${STATUS} :: $1\n"
|
||||
}
|
||||
|
||||
TESTDIR=${TMP}/build_system_tests_$$
|
||||
TESTDIR=${PWD}/build_system_tests_$$
|
||||
mkdir -p ${TESTDIR}
|
||||
# set NOCLEANUP=1 if you want to keep the test directory around
|
||||
# for post-mortem debugging
|
||||
|
Loading…
Reference in New Issue
Block a user