#!/usr/bin/env bash # Tests for DevStack meta-config functions TOP=$(cd $(dirname "$0")/.. && pwd) # Import config functions source $TOP/inc/ini-config source $TOP/inc/meta-config # check_result() tests and reports the result values # check_result "actual" "expected" function check_result { local actual=$1 local expected=$2 if [[ "$actual" == "$expected" ]]; then echo "OK" else echo -e "failed: $actual != $expected\n" fi } TEST_1C_ADD="[eee] type=new multi = foo2" function create_test1c { cat >test1c.conf <test2a.conf <test-etc/test4.conf <test.conf <