mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
add integration test for smu node-type
Signed-off-by: Alexandra <alexandra.bach@eonerc.rwth-aachen.de>
This commit is contained in:
parent
42e366a6f2
commit
04515e8206
1 changed files with 52 additions and 0 deletions
52
tests/integration/node-smu.sh
Normal file
52
tests/integration/node-smu.sh
Normal file
|
@ -0,0 +1,52 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# Integration loopback test using villas node for smu node-type.
|
||||
#
|
||||
# Author: Alexandra Bach <alexandra.bach@eonerc.rwth-aachen.de>
|
||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
echo "Test not yet supported"
|
||||
exit 99
|
||||
|
||||
set -e
|
||||
|
||||
DIR=$(mktemp -d)
|
||||
pushd ${DIR}
|
||||
|
||||
function finish {
|
||||
popd
|
||||
rm -rf ${DIR}
|
||||
}
|
||||
trap finish EXIT
|
||||
|
||||
mkdir ./logs
|
||||
|
||||
cat > config.json <<EOF
|
||||
{
|
||||
"nodes": {
|
||||
"smu-node": {
|
||||
"type": "smu",
|
||||
"signals": [
|
||||
{ name = "ch1" type = "float"},
|
||||
{ name = "ch2" type = "float"},
|
||||
{ name = "signal3" type = "float"},
|
||||
{ name = "signal4" type = "float"},
|
||||
{ name = "signal5" type = "float"},
|
||||
{ name = "signal6" type = "float"},
|
||||
{ name = "signal7" type = "float"}
|
||||
]
|
||||
"vectorize": 1000,
|
||||
"sample_rate": "FS_10kSPS"
|
||||
}
|
||||
},
|
||||
"paths": [
|
||||
{
|
||||
"in": "smu-node"
|
||||
"out": "test"
|
||||
}
|
||||
]
|
||||
}
|
||||
EOF
|
||||
|
||||
villas node config.json
|
Loading…
Add table
Reference in a new issue