2024-02-29 20:03:12 +01:00
|
|
|
#!/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
|
|
|
|
|
2021-08-10 10:12:48 -04:00
|
|
|
set -e
|
2018-10-20 14:25:38 +02:00
|
|
|
|
2021-08-10 10:12:48 -04:00
|
|
|
DIR=$(mktemp -d)
|
|
|
|
pushd ${DIR}
|
|
|
|
|
|
|
|
function finish {
|
2024-02-29 21:54:10 +01:00
|
|
|
popd
|
|
|
|
rm -rf ${DIR}
|
2021-08-10 10:12:48 -04:00
|
|
|
}
|
|
|
|
trap finish EXIT
|
|
|
|
|
|
|
|
mkdir ./logs
|
|
|
|
|
|
|
|
cat > config.json <<EOF
|
2018-10-20 14:25:38 +02:00
|
|
|
{
|
2024-02-29 21:54:10 +01: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
|
|
|
|
|
2021-08-10 10:12:48 -04:00
|
|
|
villas node config.json
|