Skip to content

Commit ba0c330

Browse files
author
chen.qian
committed
[esp/ci] add test_esp_dsp_fpu_optimization new gitlab ci job
1 parent 90d6251 commit ba0c330

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.gitlab-ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,11 @@ build_and_test:
190190
artifacts:
191191
paths:
192192
- ${BUILD_DIR}/*.log
193+
- ./esp-dsp/scripts/
193194
when: always
194195
expire_in: 1 day
195196
variables:
197+
TEST_APP_ESP_DSP_CUSTOM_BRANCH: "llvm-optimization-test"
196198
after_script:
197199
# help to identify that build failed due to OOM
198200
- >
@@ -202,6 +204,7 @@ build_and_test:
202204
[ ! -f "${BUILD_DIR}/lld-tests.log" ] || grep -i "internal compiler error\|Killed" ${BUILD_DIR}/lld-tests.log || true
203205
fi
204206
script:
207+
- LLVM_PROJECT_PATH=$PWD
205208
- export BUILD_PATH=$PWD/${BUILD_DIR}
206209
- mkdir -p ${BUILD_PATH}
207210
- cmake -G Ninja
@@ -210,6 +213,7 @@ build_and_test:
210213
-DCMAKE_BUILD_TYPE=Release
211214
-DLLVM_ENABLE_ASSERTIONS=ON
212215
-DLLDB_INCLUDE_TESTS=OFF
216+
-DLLVM_TOOLCHAIN_ENABLED_TARGETS="RISCV"
213217
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=Xtensa
214218
-B ${BUILD_PATH} 2>&1 > ${BUILD_PATH}/build.log
215219
- export CUR_USER=$(whoami);
@@ -224,6 +228,11 @@ build_and_test:
224228
- chmod o+w ${BUILD_PATH}/lld-tests.log;
225229
- runuser -u test_runner -- ninja -C ${BUILD_PATH} check-lld 2>&1 > ${BUILD_PATH}/lld-tests.log;
226230
- chown -R ${CUR_USER} ${BUILD_PATH};
231+
- export PATH=${BUILD_PATH}/bin:${PATH}
232+
- git clone --shallow-submodules --recursive --single-branch --branch $TEST_APP_ESP_DSP_CUSTOM_BRANCH -- https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/idf/esp-dsp.git esp-dsp
233+
- pushd $PWD/esp-dsp/
234+
- echo ${LLVM_PROJECT_PATH}/llvm/utils/update_test_checks.py
235+
- ./test_all.sh ${LLVM_PROJECT_PATH}/llvm/utils/update_test_checks.py
227236

228237
.build_linux-gnu_template:
229238
extends: .build_toolchain_template

0 commit comments

Comments
 (0)