1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-23 00:00:01 +01:00
VILLASnode/tests/integration/hook-skip_first.sh

16 lines
No EOL
283 B
Bash
Executable file

#!/bin/bash
OUTPUT_FILE=$(mktemp)
SKIP=10
echo ${OUTPUT_FILE}
villas-signal random -r 1 -l ${NUM_SAMPLES} -n | villas-hook skip_first seconds=${SKIP} > ${OUTPUT_FILE}
LINES=$(wc -l < ${OUTPUT_FILE})
rm ${OUTPUT_FILE}
# Test condition
(( ${LINES} == ${NUM_SAMPLES} - ${SKIP} ))