Commit 951251dc authored by Andreas Schmidt's avatar Andreas Schmidt

Extract memtest to local script.

parent 976c6e93
Pipeline #868 failed with stages
in 2 minutes and 37 seconds
......@@ -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
......
......@@ -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)
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
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