Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
PRRT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
36
Issues
36
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LARN
PRRT
Commits
951251dc
Commit
951251dc
authored
Feb 23, 2017
by
Andreas Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract memtest to local script.
parent
976c6e93
Pipeline
#868
failed with stages
in 2 minutes and 37 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
.gitlab-ci.yml
.gitlab-ci.yml
+1
-4
CMakeLists.txt
CMakeLists.txt
+1
-0
memtest.sh
memtest.sh
+5
-0
No files found.
.gitlab-ci.yml
View file @
951251dc
...
...
@@ -44,10 +44,7 @@ test_prrt_mem:
-
valgrind
script
:
-
which valgrind
-
export prrtResult=0
-
valgrind --tool=memcheck --track-origins=yes --leak-check=full --error-exitcode=1 ./bin/receiver 5000 127 receiver.csv & export prrtReceiverProcessID=$!
-
valgrind --tool=memcheck --track-origins=yes --leak-check=full --error-exitcode=1 ./bin/sender 127.0.0.1 5000 127 sender.csv || prrtResult=$?; kill -INT $prrtReceiverProcessID; wait $prrtReceiverProcessID || prrtResult=$?
-
exit $prrtResult
-
make memtest
test_prrt_functional
:
stage
:
test
...
...
CMakeLists.txt
View file @
951251dc
...
...
@@ -24,3 +24,4 @@ add_subdirectory(tests)
add_custom_target
(
funtest ./bin/prrtTests
)
add_custom_target
(
perftest python3 eval.py
)
add_custom_target
(
memtest ./memtest.sh
)
memtest.sh
0 → 100644
View file @
951251dc
which valgrind
export
prrtResult
=
0
valgrind
--tool
=
memcheck
--track-origins
=
yes
--leak-check
=
full
--error-exitcode
=
1 ./bin/receiver 5000 127 receiver.csv &
export
prrtReceiverProcessID
=
$!
valgrind
--tool
=
memcheck
--track-origins
=
yes
--leak-check
=
full
--error-exitcode
=
1 ./bin/sender 127.0.0.1 5000 127 sender.csv
||
prrtResult
=
$?
;
kill
-INT
$prrtReceiverProcessID
;
wait
$prrtReceiverProcessID
||
prrtResult
=
$?
exit
$prrtResult
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