2
0
mirror of https://github.com/meganz/MEGAcmd synced 2025-08-22 09:57:09 +00:00

Update daily jenkinsfile with latest changes

This commit is contained in:
Diego Ximenez 2025-03-17 11:32:58 +01:00
parent 1d80990329
commit 3d79007ef5
No known key found for this signature in database
GPG Key ID: 8E94095CB5DBCBA0

View File

@ -59,7 +59,7 @@ pipeline {
DOCKER_BUILDKIT=1 DOCKER_BUILDKIT=1
} }
steps { steps {
sh "docker build -t meganz/megacmd-branchstatus-${BUILD_SYSTEM}-${SANITIZERS}:${env.BUILD_NUMBER} -f ${megacmd_sources_workspace}/build-with-docker/Dockerfile.${BUILD_SYSTEM} --build-arg=BUILD_OPT_SANITIZERS=${SANITIZERS} --ulimit=core=-1 --cpuset-cpus=0,1 -- ${megacmd_sources_workspace}" sh "docker build -t meganz/megacmd-branchstatus-${BUILD_SYSTEM}-${SANITIZERS}:${env.BUILD_NUMBER} -f ${megacmd_sources_workspace}/build-with-docker/Dockerfile.${BUILD_SYSTEM} --build-arg=ENABLE_${SANITIZERS}=ON --ulimit=core=-1 --cpuset-cpus=0,1 -- ${megacmd_sources_workspace}"
} }
} }
stage("MEGAcmd unit tests") { stage("MEGAcmd unit tests") {
@ -121,7 +121,8 @@ pipeline {
sh """ sh """
/usr/bin/mega-cmd-tests-integration \ /usr/bin/mega-cmd-tests-integration \
--gtest_output=xml:${megacmd_sources_workspace}/test-dir-${SANITIZERS}/results/mega-cmd-tests-integration.xml \ --gtest_output=xml:${megacmd_sources_workspace}/test-dir-${SANITIZERS}/results/mega-cmd-tests-integration.xml \
--gtest_shuffle --gtest_shuffle \
--gtest_filter=-FuseTests.*
""" """
} }
} }
@ -181,14 +182,11 @@ pipeline {
]) { ]) {
def envStr = '' def envStr = ''
if (cmdshell != '') { if (cmdshell != '') {
envStr = "MEGACMDSHELL=/usr/bin/mega-cmd LSAN_OPTIONS=suppressions=${megacmd_sources_workspace}/${testDir}/suppressed_asan.txt " envStr = "MEGACMDSHELL=/usr/bin/mega-cmd "
} }
try { try {
dir("pytest-dir-${SANITIZERS}/working-dir") { dir("pytest-dir-${SANITIZERS}/working-dir") {
// CMD-578 Fix readline leak instead of suppressing it sh "${envStr}/usr/local/bin/megacmd_${test}_test.py"
writeFile file: "${megacmd_sources_workspace}/${testDir}/suppressed_asan.txt", text: 'leak:expand_prompt'
sh "/usr/local/bin/megacmd_${test}_test.py"
} }
junit "${testDir}/TEST-*.xml" junit "${testDir}/TEST-*.xml"
} finally { } finally {