Commit b8c06bb9 authored by Andreas Schmidt's avatar Andreas Schmidt

Add memory tests. Disable perf tests.

parent dda891c4
Pipeline #75 passed with stage
......@@ -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
......@@ -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
cython/prrt.c
\ No newline at end of file
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment