You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio-config-tests/tests/do_test_yaml_format.sh

11 lines
346 B

#!/bin/sh
export BASE_DIR=$(pwd) DEST_DIR=${RESULTS}
./bin/generate_tests.sh -d "$1" tests/fixtures/scenario_ids.yml PRO
find "${RESULTS}/$1" -type f -name '[0-9][0-9][0-9][0-9]_test.yml' | while read -r i; do
./tests/test_yaml_format.py "$i" | sed -e 's/skip>/skipped>/g' > "$i.xml"
done
# exclude templates
rm -rf "${RESULTS}/$1/templates"