mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
Improve node-multiple-sources.sh integration test
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
This commit is contained in:
parent
c70cc06df1
commit
4806df99a1
1 changed files with 40 additions and 37 deletions
|
@ -9,9 +9,6 @@
|
||||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
echo "Test is broken"
|
|
||||||
exit 99
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
DIR=$(mktemp -d)
|
DIR=$(mktemp -d)
|
||||||
|
@ -25,40 +22,46 @@ trap finish EXIT
|
||||||
|
|
||||||
cat > config.json <<EOF
|
cat > config.json <<EOF
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"sig_1": {
|
"sig_1": {
|
||||||
"type": "signal",
|
"type": "signal",
|
||||||
"values": 1,
|
"values": 1,
|
||||||
"signal": "counter",
|
"signal": "counter",
|
||||||
"offset": 100,
|
"offset": 100,
|
||||||
"limit": 10,
|
"limit": 10,
|
||||||
"realtime": false
|
"realtime": false
|
||||||
},
|
},
|
||||||
"file_1": {
|
"file_1": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"uri": "output1.dat"
|
"uri": "output1.dat"
|
||||||
},
|
},
|
||||||
"file_2": {
|
"file_2": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"uri": "output2.dat"
|
"uri": "output2.dat"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"paths": [
|
"paths": [
|
||||||
{
|
{
|
||||||
"in": "sig_1",
|
"in": "sig_1",
|
||||||
"out": "file_1"
|
"out": "file_1",
|
||||||
},
|
"hooks": [
|
||||||
{
|
{"type": "print"}
|
||||||
"in": "sig_1",
|
]
|
||||||
"out": "file_2"
|
},
|
||||||
},
|
{
|
||||||
{
|
"in": "sig_1",
|
||||||
"in": "sig_1"
|
"out": "file_2",
|
||||||
},
|
"hooks": [
|
||||||
{
|
{"type": "print"}
|
||||||
"in": "sig_1"
|
]
|
||||||
}
|
},
|
||||||
]
|
{
|
||||||
|
"in": "sig_1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"in": "sig_1"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue