Commit f78f5a84 authored by Andreas Schmidt's avatar Andreas Schmidt

Timestamps table size. Payloads. Docker build.

Allow for more timestamps. Use more realistic payloads. Ensure docker build runs.
parent 689c406e
Pipeline #844 canceled with stages
in 5625 minutes and 40 seconds
......@@ -27,6 +27,17 @@ build_prrt:
- CC=gcc-5 CXX=g++-5 cmake .
- make
build_container:
stage: build
tags:
- docker
script:
- export DOCKER_TAG=$(echo "$CI_BUILD_REF_NAME" | sed 's#/#_#' | sed 's#^master$#latest#')
- docker build -t $CI_REGISTRY_IMAGE:$DOCKER_TAG --build-arg http_proxy=http://www-proxy.uni-saarland.de:3128 .
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE:$DOCKER_TAG
- docker rmi $CI_REGISTRY_IMAGE:$DOCKER_TAG
test_prrt_mem:
stage: test
tags:
......@@ -43,17 +54,6 @@ test_prrt_functional:
script:
- ./bin/prrtTests
build_container:
stage: deploy
tags:
- docker
script:
- export DOCKER_TAG=$(echo "$CI_BUILD_REF_NAME" | sed 's#/#_#' | sed 's#^master$#latest#')
- docker build -t $CI_REGISTRY_IMAGE:$DOCKER_TAG --build-arg http_proxy=http://www-proxy.uni-saarland.de:3128 .
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE:$DOCKER_TAG
- docker rmi $CI_REGISTRY_IMAGE:$DOCKER_TAG
package_pypi:
stage: deploy
tags:
......
......@@ -54,7 +54,7 @@ typedef struct PrrtTimestampTableRow {
* by default, store timestamps for 128 packages
*/
#ifndef TS_ROWS
#define TS_ROWS (1u<<7)
#define TS_ROWS (1u<<12)
#endif
/*
......
......@@ -32,12 +32,14 @@ int main(int argc, char *const argv[]) {
uint32_t j = 0;
while(j < rounds) {
char buf[MAX_PAYLOAD_LENGTH];
sprintf(buf, "%10d", j+1);
// 40 bytes, as this is a sensible control traffic payload.
sprintf(buf, "%40d", j+1);
PrrtSocket_send(socket, (unsigned char *) buf, strlen(buf));
j++;
usleep(50);
// Send every 1ms, as this is a sensible packet interval.
usleep(1000);
}
PrrtTimestampTableDumpHeader(stdout);
......
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