1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-16 00:00:02 +01:00
VILLASnode/tests/integration/signal.sh
Steffen Vogel 7eec1bb753 update Steffens mail address
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2022-12-16 23:44:07 +01:00

37 lines
978 B
Bash
Executable file

#!/bin/bash
#
# Integration test for villas signal tool
#
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
##################################################################################
set -e
DIR=$(mktemp -d)
pushd ${DIR}
function finish {
popd
rm -rf ${DIR}
}
trap finish EXIT
cat > input.dat <<EOF
# seconds.nanoseconds(sequence) sine
1635933135.006234199(0) 0.00000000000000000
1635933135.106234199(1) 0.58778525229247314
1635933135.206234199(2) 0.95105651629515353
1635933135.306234199(3) 0.95105651629515353
1635933135.406234199(4) 0.58778525229247325
1635933135.506234199(5) 0.00000000000000012
1635933135.606234199(6) -0.58778525229247336
1635933135.706234199(7) -0.95105651629515353
1635933135.806234199(8) -0.95105651629515364
1635933135.906234199(9) -0.58778525229247336
EOF
villas signal sine -nl 10 > output.dat
villas compare -T input.dat output.dat