Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
PRRT
Commits
b8c06bb9
Commit
b8c06bb9
authored
Mar 10, 2016
by
Andreas Schmidt
Browse files
Add memory tests. Disable perf tests.
parent
dda891c4
Pipeline
#75
passed with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.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
Supports
Markdown
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