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
b8c06bb9
Commit
b8c06bb9
authored
Mar 10, 2016
by
Andreas Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add memory tests. Disable perf tests.
parent
dda891c4
Pipeline
#75
passed with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
11 deletions
+18
-11
.gitignore
.gitignore
+2
-2
.gitlab-ci.yml
.gitlab-ci.yml
+10
-4
src/.gitignore
src/.gitignore
+1
-0
src/sender.c
src/sender.c
+5
-5
No files found.
.gitignore
View file @
b8c06bb9
...
...
@@ -2,9 +2,9 @@
build/
bin/
*.cmake
prrt.cpython-35m-x86_64-linux-gnu.so
src/cython/prrt.c
CMakeCache.txt
CMakeFiles/
Makefile
cython_debug/
Makefile
\ No newline at end of file
prrt.cpython*.so
\ No newline at end of file
.gitlab-ci.yml
View file @
b8c06bb9
...
...
@@ -8,12 +8,18 @@ before_script:
-
cmake .
-
make
performanceEvaluation
:
memcheck
:
script
:
-
python3 setup.py build_ext --inplace
-
make perftest
-
export prrtResult=0
-
valgrind --tool=memcheck --track-origins=yes --leak-check=full --error-exitcode=1 ./bin/receiver 5000 & export prrtReceiverProcessID=$!
-
valgrind --tool=memcheck --track-origins=yes --leak-check=full --error-exitcode=1 ./bin/sender 100 || prrtResult=$?; kill -INT $prrtReceiverProcessID; wait $prrtReceiverProcessID || prrtResult=$?
-
exit $prrtResult
#performanceEvaluation:
# script:
# - python3 setup.py build_ext --inplace
# - make perftest
tests
:
script
:
-
./bin/prrtTests
src/.gitignore
0 → 100644
View file @
b8c06bb9
cython/prrt.c
\ No newline at end of file
src/sender.c
View file @
b8c06bb9
...
...
@@ -5,12 +5,14 @@
#include "util/dbg.h"
#include "prrt/socket.h"
int
main
(
int
argc
,
char
*
const
argv
)
{
int
i
;
if
(
argc
!=
1
)
{
int
main
(
int
argc
,
char
*
const
argv
[])
{
if
(
argc
!=
2
)
{
printf
(
"Sender: Too few arguments.
\n
"
);
return
-
1
;
}
uint16_t
rounds
=
(
uint16_t
)
atoi
(
argv
[
1
]);
uint16_t
local_port
=
6000
;
PrrtSocket
*
socket
=
NULL
;
printf
(
"PRRT - SENDER
\n
"
);
...
...
@@ -29,8 +31,6 @@ int main(int argc, char *const argv) {
debug
(
"SENDING
\n
"
);
uint32_t
j
=
0
;
int
rounds
=
10000
;
while
(
j
<
rounds
)
{
char
buf
[
MAX_PAYLOAD_LENGTH
];
sprintf
(
buf
,
"%10d"
,
j
+
1
);
...
...
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