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-test_rtt.sh

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

64 lines
1.2 KiB
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
2018-10-20 14:25:38 +02:00
#
2021-09-22 10:42:03 +02:00
# Integration loopback test using villas node.
2018-10-20 14:25:38 +02:00
#
2022-03-15 09:18:01 -04:00
# Author: Steffen Vogel <post@steffenvogel.de>
2022-03-15 09:28:57 -04:00
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
2022-07-04 18:20:03 +02:00
# SPDX-License-Identifier: Apache-2.0
2018-10-20 14:25:38 +02:00
echo "Test not yet supported"
exit 99
set -e
2018-10-20 14:25:38 +02:00
DIR=$(mktemp -d)
pushd ${DIR}
function finish {
popd
rm -rf ${DIR}
}
trap finish EXIT
mkdir ./logs
cat > config.json <<EOF
2018-10-20 14:25:38 +02:00
{
"logging": { "level": 2 },
"stats": 1,
"nodes": {
"test": {
"type": "test_rtt",
"cooldown": 2,
"output": "./logs",
"cases": [
{
"rates": 55.0,
"values": 5,
"limit": 100
},
{
"rates": [ 10, 10, 1000 ],
"values": [ 2, 10, 20, 50 ],
"duration": 5
}
],
"hooks": [
{
"type": "stats",
"verbose": false
}
]
}
},
"paths": [
{
"in": "test",
"out": "test"
}
]
2018-10-20 14:25:38 +02:00
}
EOF
villas node config.json