1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
VILLASnode/tests/integration/signal.sh
Steffen Vogel 0735eb0f89 Make project REUSE compliant
And various other cleanups and harmonizations

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2023-09-07 11:16:04 +02:00

36 lines
939 B
Bash
Executable file

#!/bin/bash
#
# Integration test for villas signal tool
#
# Author: Steffen Vogel <post@steffenvogel.de>
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: 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