Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
1c96d267
Commit
1c96d267
authored
Nov 17, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable LeakSan on fedora-32 and verify checking
parent
f84a26cf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
3 deletions
+29
-3
.ci/build.sh
.ci/build.sh
+24
-1
Jenkinsfile
Jenkinsfile
+5
-2
No files found.
.ci/build.sh
View file @
1c96d267
...
@@ -5,6 +5,7 @@ set -e
...
@@ -5,6 +5,7 @@ set -e
# This script expects the CAF source tree under 'sources', builds in 'build' and
# This script expects the CAF source tree under 'sources', builds in 'build' and
# installs to 'bundle'. Additionally, the script expects the CMake pre-load
# installs to 'bundle'. Additionally, the script expects the CMake pre-load
# script 'cmake-init.txt' in the current working directorys.
# script 'cmake-init.txt' in the current working directorys.
BaseDir
=
"
$PWD
"
InitFile
=
"
$PWD
/cmake-init.txt"
InitFile
=
"
$PWD
/cmake-init.txt"
SourceDir
=
"
$PWD
/sources"
SourceDir
=
"
$PWD
/sources"
BuildDir
=
"
$PWD
/build"
BuildDir
=
"
$PWD
/build"
...
@@ -23,6 +24,28 @@ else
...
@@ -23,6 +24,28 @@ else
exit
1
exit
1
fi
fi
LeakSanCheck
=
"
#include <cstdlib>
int main() {
int* ptr = new int(EXIT_SUCCESS);
return *ptr;
}
"
# Check that LeakSanitizer works if configured for this build.
if
[
"
${
CAF_CHECK_LEAKS
}
"
==
"ON"
]
;
then
mkdir
-p
"
$BaseDir
/LeakCheck"
cd
"
$BaseDir
/LeakCheck"
echo
"
${
LeakSanCheck
}
"
>
check.cpp
c++ check.cpp
-o
check
-fsanitize
=
address
-fno-omit-frame-pointer
out
=
`
./check 2>&1 |
grep
-o
LeakSanitizer
`
if
[
"
$out
"
!=
"LeakSanitizer"
]
;
then
echo
"unable to detected memory leaks on this platform!"
return
1
fi
cd
"
$BaseDir
"
fi
# Make sure all directories exist, then enter build directory.
# Make sure all directories exist, then enter build directory.
mkdir
-p
"
$BuildDir
"
mkdir
-p
"
$BuildDir
"
cd
"
$BuildDir
"
cd
"
$BuildDir
"
...
@@ -34,4 +57,4 @@ if [ -z "$CAF_NUM_CORES" ]; then
...
@@ -34,4 +57,4 @@ if [ -z "$CAF_NUM_CORES" ]; then
else
else
$CMakeCommand
--build
.
--target
install
--
-j
$CAF_NUM_CORES
$CMakeCommand
--build
.
--target
install
--
-j
$CAF_NUM_CORES
fi
fi
$CTestCommand
$CTestCommand
--output-on-failure
Jenkinsfile
View file @
1c96d267
...
@@ -31,13 +31,11 @@ config = [
...
@@ -31,13 +31,11 @@ config = [
numCores:
4
,
numCores:
4
,
tags:
[
'docker'
],
tags:
[
'docker'
],
builds:
[
'debug'
,
'release'
],
builds:
[
'debug'
,
'release'
],
extraDebugFlags:
[
'CAF_SANITIZERS:STRING=address,undefined'
],
]],
]],
[
'centos-8'
,
[
[
'centos-8'
,
[
numCores:
4
,
numCores:
4
,
tags:
[
'docker'
],
tags:
[
'docker'
],
builds:
[
'debug'
,
'release'
],
builds:
[
'debug'
,
'release'
],
extraDebugFlags:
[
'CAF_SANITIZERS:STRING=address,undefined'
],
]],
]],
[
'debian-9'
,
[
[
'debian-9'
,
[
numCores:
4
,
numCores:
4
,
...
@@ -73,6 +71,7 @@ config = [
...
@@ -73,6 +71,7 @@ config = [
numCores:
4
,
numCores:
4
,
tags:
[
'docker'
],
tags:
[
'docker'
],
builds:
[
'debug'
,
'release'
],
builds:
[
'debug'
,
'release'
],
extraDebugFlags:
[
'CAF_SANITIZERS:STRING=address'
],
]],
]],
// One extra debug build with exceptions disabled.
// One extra debug build with exceptions disabled.
[
'centos-7'
,
[
[
'centos-7'
,
[
...
@@ -119,6 +118,10 @@ config = [
...
@@ -119,6 +118,10 @@ config = [
],
],
// Platform-specific environment settings.
// Platform-specific environment settings.
buildEnvironments:
[
buildEnvironments:
[
'fedora-32 && debug'
:
[
'CAF_CHECK_LEAKS=ON'
,
'ASAN_OPTIONS=detect_leaks=1'
,
],
nop:
[],
// Dummy value for getting the proper types.
nop:
[],
// Dummy value for getting the proper types.
],
],
// Default CMake flags by build type.
// Default CMake flags by build type.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment