]> granicus.if.org Git - esp-idf/commitdiff
build system tests: Run inside PWD same as build_examples.sh
authorAngus Gratton <angus@espressif.com>
Mon, 4 Sep 2017 01:15:04 +0000 (11:15 +1000)
committerAngus Gratton <gus@projectgus.com>
Mon, 4 Sep 2017 07:40:15 +0000 (17:40 +1000)
.gitlab-ci.yml
tools/ci/build_examples.sh
tools/ci/test_build_system.sh

index f0ed5734e4545f239fb5460056f1e23fbd6338e2..9e68170ce60ef9c17c2004fbfe2ad7d4f051a6ac 100644 (file)
@@ -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
index 368c1efa89577a38e65c45d7bb99fb17516043f5..ec7ff16eb03eff66a6558f6c6cf56f0709a69dae 100755 (executable)
@@ -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.
 #
 #
index 0f2472422064e87528b6f39ad754d4df5889322b..e7a3c731606504f3ff74ff4a770b804a75c5d0b4 100755 (executable)
@@ -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