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/node-hdf5.sh
Alexandra ece0102ec9 add integration test for hdf5 node-type
Signed-off-by: Alexandra <alexandra.bach@eonerc.rwth-aachen.de>
2024-04-22 14:16:24 +00:00

46 lines
694 B
Bash
Executable file

#!/bin/bash
#
# Test for the hdf5 node-type.
#
# Author: Alexandra Bach <alexandra.bach@eonerc.rwth-aachen.de>
# SPDX-FileCopyrightText: 2014-2024 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 > config.json <<EOF
{
"nodes": {
"hdf5_node": {
"type": "hdf5",
"file": "test.h5",
"dataset": "test,
"unit": "none
}
},
"siggen": {
"type": "signal",
"signal": "sine",
"values": 1,
"limit": 3,
"rate": 10
}
"paths": [
{
"in": "siggen",
"out": "hdf5_node",
}
]
}
EOF
villas node config.json