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
98db9291
Commit
98db9291
authored
Aug 15, 2023
by
Samir Halilcevic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove parallel
parent
cad0c29c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
42 deletions
+37
-42
.ci/autobahn-testsuite/run.sh
.ci/autobahn-testsuite/run.sh
+4
-3
Jenkinsfile
Jenkinsfile
+33
-39
No files found.
.ci/autobahn-testsuite/run.sh
100644 → 100755
View file @
98db9291
#! /bin/bash
#! /bin/bash
SCRIPT_DIR
=
$(
dirname
"
$0
"
)
BUILD_DIR
=
$1
BUILD_DIR
=
$1
AUTOBAHN_CONFIG
=
$(
cat
<<
EOF
cat
>
test_config.json
<<
EOF
{
{
"options": {},
"options": {},
"outdir": "./reports/",
"outdir": "./reports/",
...
@@ -17,10 +19,9 @@ AUTOBAHN_CONFIG=$(cat << EOF
...
@@ -17,10 +19,9 @@ AUTOBAHN_CONFIG=$(cat << EOF
"exclude-agent-cases": {}
"exclude-agent-cases": {}
}
}
EOF
EOF
)
"
${
BUILD_DIR
}
"
/libcaf_net/caf-net-autobahn-driver
-p
7788
>
/dev/null &
"
${
BUILD_DIR
}
"
/libcaf_net/caf-net-autobahn-driver
-p
7788
>
/dev/null &
wstest
-m
fuzzingclient
-s
/config/fuzzingclient
.json
wstest
-m
fuzzingclient
-s
test_config
.json
kill
%1
kill
%1
Jenkinsfile
View file @
98db9291
...
@@ -167,47 +167,41 @@ pipeline {
...
@@ -167,47 +167,41 @@ pipeline {
getSources
(
config
)
getSources
(
config
)
}
}
}
}
stage
(
'Build and Test'
)
{
stage
(
'Build'
)
{
parallel
{
steps
{
stage
(
'Build'
)
{
buildParallel
(
config
)
steps
{
}
buildParallel
(
config
)
}
}
stage
(
'Autobahn Testsuite'
)
{
}
steps
{
stage
(
'Autobahn Testsuite'
)
{
script
{
steps
{
def
baseDir
=
pwd
()
node
(
docker
)
{
def
sourceDir
=
"$baseDir/sources"
script
{
def
buildDir
=
"$baseDir/build"
def
baseDir
=
pwd
()
def
installDir
=
"$baseDir/autobahn"
def
sourceDir
=
"$baseDir/sources"
def
initFile
=
"$baseDir/init.cmake"
def
buildDir
=
"$baseDir/build"
def
init
=
new
StringBuilder
()
def
installDir
=
"$baseDir/autobahn"
writeFile
([
def
initFile
=
"$baseDir/init.cmake"
file:
'init.cmake'
,
def
init
=
new
StringBuilder
()
text:
"""
writeFile
([
set(CAF_ENABLE_EXAMPLES OFF CACHE BOOL "")
file:
'init.cmake'
,
set(CAF_ENABLE_RUNTIME_CHECKS ON CACHE BOOL "")
text:
"""
set(CAF_ENABLE_SHARED_LIBS OFF CACHE BOOL "")
set(CAF_ENABLE_EXAMPLES OFF CACHE BOOL "")
set(CAF_ENABLE_IO_MODULE OFF CACHE BOOL "")
set(CAF_ENABLE_RUNTIME_CHECKS ON CACHE BOOL "")
set(CAF_ENABLE_IO_TOOLS OFF CACHE BOOL "")
set(CAF_ENABLE_SHARED_LIBS OFF CACHE BOOL "")
set(CAF_BUILD_INFO_FILE_PATH "$baseDir/build-autobahn.info" CACHE FILEPATH "")
set(CAF_ENABLE_IO_MODULE OFF CACHE BOOL "")
set(CMAKE_INSTALL_PREFIX "$installDir" CACHE PATH "")
set(CAF_ENABLE_IO_TOOLS OFF CACHE BOOL "")
set(CMAKE_BUILD_TYPE "release" CACHE STRING "")
set(CAF_BUILD_INFO_FILE_PATH "$baseDir/build-autobahn.info" CACHE FILEPATH "")
"""
set(CMAKE_INSTALL_PREFIX "$installDir" CACHE PATH "")
])
set(CMAKE_BUILD_TYPE "release" CACHE STRING "")
def
image
=
docker
.
build
(
'autobahn-testsuite'
,
"sources/.ci/autobahn-testsuite"
)
"""
image
.
inside
(
"--cap-add SYS_PTRACE"
)
{
])
sh
"./sources/.ci/run.sh build '$initFile' '$sourceDir' '$buildDir'"
def
image
=
docker
.
build
(
'autobahn-testsuite'
,
"sources/.ci/autobahn-testsuite"
)
warnError
(
'Unit Tests failed!'
)
{
image
.
inside
(
"--cap-add SYS_PTRACE"
)
{
sh
"./sources/.ci/autobahn-testsuite/run.sh"
sh
"./sources/.ci/run.sh build '$initFile' '$sourceDir' '$buildDir'"
writeFile
file:
"build-autobahn.success"
,
text:
"success\n"
warnError
(
'Unit Tests failed!'
)
{
sh
"./sources/.ci/autobahn-testsuite/run.sh"
writeFile
file:
"build-${index}.success"
,
text:
"success\n"
}
}
}
}
}
}
}
}
}
}
}
}
}
...
...
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