Jenkins add unit test build with address sanitizier

This commit is contained in:
Daniel Agar 2018-08-04 13:35:03 -04:00
parent 36ff6202a9
commit d3f5c06ba7
1 changed files with 22 additions and 19 deletions

41
Jenkinsfile vendored
View File

@ -219,31 +219,34 @@ pipeline {
steps {
sh 'export'
sh 'make distclean'
sh 'ccache -z'
sh 'make posix_sitl_default test_results_junit'
sh 'ccache -s'
junit 'build/posix_sitl_default/JUnitTestResults.xml'
sh 'make distclean'
}
}
// TODO: PX4 requires clean shutdown first
// stage('unit tests (address sanitizer)') {
// agent {
// docker {
// image 'px4io/px4-dev-base:2018-07-19'
// args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
// }
// }
// environment {
// PX4_ASAN = 1
// ASAN_OPTIONS = "color=always:check_initialization_order=1:detect_stack_use_after_return=1"
// }
// steps {
// sh 'export'
// sh 'make distclean'
// sh 'make tests'
// sh 'make distclean'
// }
// }
stage('unit tests (address sanitizer)') {
agent {
docker {
image 'px4io/px4-dev-base:2018-07-19'
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
}
}
environment {
PX4_ASAN = 1
ASAN_OPTIONS = "color=always:check_initialization_order=1:detect_stack_use_after_return=1"
}
steps {
sh 'export'
sh 'make distclean'
sh 'ccache -z'
sh 'make tests || true' // always pass for now, TODO: PX4 sitl clean shutdown
sh 'ccache -s'
sh 'make distclean'
}
}
} // parallel
} // stage Test