Skip to content
Snippets Groups Projects
Commit d3f5c06b authored by Daniel Agar's avatar Daniel Agar
Browse files

Jenkins add unit test build with address sanitizier

parent 36ff6202
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment