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
3c2f991e
Commit
3c2f991e
authored
Apr 02, 2023
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sanitizer build with the new Robot tests
parent
c1f9e44d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
7 deletions
+31
-7
.ci/asan-flags.cmake
.ci/asan-flags.cmake
+9
-0
.ci/fedora-36/Dockerfile
.ci/fedora-36/Dockerfile
+7
-0
.cirrus.yml
.cirrus.yml
+12
-0
examples/http/rest.cpp
examples/http/rest.cpp
+2
-6
robot/dependencies.txt
robot/dependencies.txt
+1
-1
No files found.
.ci/asan-flags.cmake
0 → 100644
View file @
3c2f991e
set
(
CAF_ENABLE_ACTOR_PROFILER ON CACHE BOOL
""
)
set
(
CAF_ENABLE_EXAMPLES ON CACHE BOOL
""
)
set
(
CAF_ENABLE_ROBOT_TESTS ON CACHE BOOL
""
)
set
(
CAF_ENABLE_RUNTIME_CHECKS ON CACHE BOOL
""
)
set
(
CAF_LOG_LEVEL TRACE CACHE STRING
""
)
set
(
CAF_SANITIZERS
"address,undefined"
CACHE STRING
""
)
if
(
NOT MSVC AND NOT CMAKE_SYSTEM MATCHES BSD
)
set
(
CMAKE_BUILD_TYPE Debug CACHE STRING
""
)
endif
()
.ci/fedora-36/Dockerfile
View file @
3c2f991e
...
...
@@ -10,4 +10,11 @@ RUN dnf update -y \
libubsan
\
make
\
openssl-devel
\
python3
\
python3-pip
\
&&
dnf clean all
RUN
python3
-m
pip
install
\
robotframework
\
robotframework-requests
\
robotframework-websocketclient
.cirrus.yml
View file @
3c2f991e
...
...
@@ -8,6 +8,10 @@ debug_build_template: &DEBUG_BUILD_TEMPLATE
build_script
:
.ci/run.sh build .ci/debug-flags.cmake . build
test_script
:
.ci/run.sh test build
asan_build_template
:
&ASAN_BUILD_TEMPLATE
build_script
:
.ci/run.sh build .ci/asan-flags.cmake . build
test_script
:
.ci/run.sh test build
# CentOS 7 EOL: June 2024
centos7_task
:
container
:
...
...
@@ -38,6 +42,14 @@ freebsd12_task:
prepare_script
:
.ci/freebsd-12/prepare.sh
<<
:
*DEBUG_BUILD_TEMPLATE
# Fedora 36 EOL: May 2023
sanitizers_task
:
container
:
dockerfile
:
.ci/fedora-36/Dockerfile
<<
:
*RESOURCES_TEMPLATE
prepare_script
:
.ci/run.sh assert UBSanitizer
<<
:
*ASAN_BUILD_TEMPLATE
# Windows Server 2019 EOL: January 2024
windows_task
:
timeout_in
:
120m
...
...
examples/http/rest.cpp
View file @
3c2f991e
...
...
@@ -42,13 +42,10 @@ struct config : caf::actor_system_config {
// -- our key-value store actor ------------------------------------------------
struct
kvs_actor_state
{
explicit
kvs_actor_state
(
caf
::
event_based_actor
*
self_ptr
)
:
self
(
self_ptr
)
{
// nop
}
caf
::
behavior
make_behavior
()
{
using
caf
::
result
;
return
{
[
this
](
caf
::
get_atom
,
const
std
::
string
&
key
)
->
caf
::
result
<
std
::
string
>
{
[
this
](
caf
::
get_atom
,
const
std
::
string
&
key
)
->
result
<
std
::
string
>
{
if
(
auto
i
=
data
.
find
(
key
);
i
!=
data
.
end
())
return
i
->
second
;
else
...
...
@@ -62,7 +59,6 @@ struct kvs_actor_state {
}
std
::
map
<
std
::
string
,
std
::
string
>
data
;
caf
::
event_based_actor
*
self
;
};
using
kvs_actor_impl
=
caf
::
stateful_actor
<
kvs_actor_state
>
;
...
...
robot/dependencies.txt
View file @
3c2f991e
obotframework-websocketclient
robotframework
robotframework-requests
robotframework-websocketclient
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