#!/bin/bash # # Test example configurations # # @author Steffen Vogel # @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC # @license 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" ] || [ "$(basename ${CONFIG})" == "tricks.json" ] || [ "$(basename ${CONFIG})" == "tricks.conf" ] || [ "$(basename ${CONFIG})" == "vc707_ips.conf" ] || [ "$(basename ${CONFIG})" == "infiniband.conf" ] || [ "$(basename ${CONFIG})" == "global.conf" ]; then echo "=== Skipping config: ${CONFIG}" continue fi echo "=== Testing config: ${CONFIG}" villas test-config -c ${CONFIG} done