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/test-config.sh

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

30 lines
951 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
#
# Test example configurations
#
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
set -e
CONFIGS=$(find ${SRCDIR}/etc/ -name '*.conf' -o -name '*.json')
for CONFIG in ${CONFIGS}; do
if [ "$(basename ${CONFIG})" == "opal.conf" ] ||
[ "$(basename ${CONFIG})" == "fpga.conf" ] ||
[ "$(basename ${CONFIG})" == "paths.conf" ] ||
2021-09-21 15:22:09 +02:00
[ "$(basename ${CONFIG})" == "tricks.json" ] ||
[ "$(basename ${CONFIG})" == "tricks.conf" ] ||
[ "$(basename ${CONFIG})" == "vc707_ips.conf" ] ||
2021-09-21 15:22:09 +02:00
[ "$(basename ${CONFIG})" == "infiniband.conf" ] ||
[ "$(basename ${CONFIG})" == "global.conf" ]; then
echo "=== Skipping config: ${CONFIG}"
continue
fi
echo "=== Testing config: ${CONFIG}"
2021-09-22 10:42:03 +02:00
villas test-config -c ${CONFIG}
done