Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
PRRT
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
26
Issues
26
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LARN
PRRT
Commits
ffa809aa
Commit
ffa809aa
authored
Jul 10, 2018
by
Andreas Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add concurrency check using helgrind.
parent
c7e53c07
Pipeline
#2655
failed with stages
in 1 minute and 12 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
.gitlab-ci.yml
.gitlab-ci.yml
+9
-0
tests/concurrency_test.sh
tests/concurrency_test.sh
+22
-0
No files found.
.gitlab-ci.yml
View file @
ffa809aa
...
...
@@ -47,6 +47,15 @@ test:prrt_mem:
script
:
-
bash tests/memtest.sh
test:prrt_concurrency:
stage
:
test
dependencies
:
-
build:prrt
tags
:
-
valgrind
script
:
-
bash tests/concurrencytest.sh
test:prrt_functional:
stage
:
test
dependencies
:
...
...
tests/concurrency_test.sh
0 → 100644
View file @
ffa809aa
#!/usr/bin/env bash
which valgrind
check
()
{
#echo "CHECK $1 $2"
if
[
"
$1
"
-ne
0
]
;
then
echo
>
&2
"
$2
"
exit
$1
fi
}
to
=
"timeout -s INT 30 "
valgrind
=
"valgrind --tool=helgrind --error-exitcode=1"
$to
$valgrind
./receiver
-p
5000
-r
127
-o
receiver.csv &
$to
$valgrind
./sender
-t
127.0.0.1
-p
5000
-r
127
-o
sender.csv
check
"
$?
"
"sender failed"
wait
check
"
$?
"
"receiver failed"
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