mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix sign in shift_ts hook integration test
This commit is contained in:
parent
555806c813
commit
373ac884dd
1 changed files with 4 additions and 4 deletions
|
@ -24,17 +24,17 @@
|
|||
|
||||
STATS_FILE=$(mktemp)
|
||||
|
||||
OFFSET=10
|
||||
OFFSET=-10
|
||||
EPSILON=0.05
|
||||
|
||||
villas-signal sine -l 10 -r 10 | villas-hook shift_ts offset=${OFFSET} | villas-hook stats format=\"json\" output=\"${STATS_FILE}\" > /dev/null
|
||||
|
||||
#jq .owd ${STATS_FILE}
|
||||
jq .owd ${STATS_FILE}
|
||||
|
||||
jq -e ".owd.mean - ${OFFSET} | length < ${EPSILON}" ${STATS_FILE} > /dev/null
|
||||
jq -e ".owd.mean + ${OFFSET} | length < ${EPSILON}" ${STATS_FILE} > /dev/null
|
||||
|
||||
RC=$?
|
||||
|
||||
rm ${STATS_FILE}
|
||||
|
||||
exit $RC
|
||||
exit $RC
|
||||
|
|
Loading…
Add table
Reference in a new issue