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/node-hdf5.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
694 B
Bash
Raw Permalink Normal View History

2024-02-28 11:00:35 +00:00
#!/bin/bash
#
# Test for the hdf5 node-type.
2024-02-28 11:00:35 +00:00
#
# Author: Alexandra Bach <alexandra.bach@eonerc.rwth-aachen.de>
# SPDX-FileCopyrightText: 2014-2024 Institute for Automation of Complex Power Systems, RWTH Aachen University
2024-02-28 11:00:35 +00:00
# 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
2024-02-28 11:00:35 +00:00
}
},
"siggen": {
"type": "signal",
"signal": "sine",
"values": 1,
"limit": 3,
"rate": 10
}
2024-02-28 11:00:35 +00:00
"paths": [
{
"in": "siggen",
"out": "hdf5_node",
2024-02-28 11:00:35 +00:00
}
]
}
EOF
villas node config.json