TT#42858 add support for checking retransmissions

Add 'retrans: true' to the test.yml file and name
it '_test_retransmission.yml.tt2' instead of '_test.yml.tt2'

Change-Id: I2e83f773ed8a1ba537aedb61410db79fecbecf16
changes/95/36495/6
Victor Seva 7 years ago committed by Víctor Seva
parent a60bd79300
commit 6f6e07eba7

@ -148,6 +148,10 @@ The test file is divided in tree different parts:
[0] https://docs.python.org/3/library/re.html#regular-expression-syntax
- retrans:
boolean value indicating if this test is meant for a retransmission.
It's optional, default is false
Cdr test file syntax (cdr_test.yml.tt2):
----------------------------------------

@ -588,6 +588,14 @@ test_filepath() {
if ! "${JSON_KAM}" ; then
msg_name=${1/_test.yml/.yml}
else
if grep -q '^retrans: true' "${1}"; then
echo "$(date) - Detected a test for a retransmission"
msg_name=${1/_test_retransmission.yml/.json_retransmission}
msg="${LOG_DIR}/$(basename "${msg_name}")"
if [ -f "${msg}" ]; then
return
fi
fi
msg_name=${1/_test.yml/.json}
fi
msg="${LOG_DIR}/$(basename "${msg_name}")"
@ -874,7 +882,7 @@ if ! "${SKIP_TESTS}" ; then
"${BIN_DIR}/generate_tests.sh" -d \
"${SCEN_CHECK_DIR}" "${LOG_DIR}/scenario_ids.yml" "${PROFILE}"
for t in ${SCEN_CHECK_DIR}/[0-9][0-9][0-9][0-9]_test.yml; do
for t in ${SCEN_CHECK_DIR}/[0-9][0-9][0-9][0-9]_test*.yml; do
test_filepath "${t}"
echo "$(date) - Check test ${t} on ${msg}"
dest=${RESULT_DIR}/$(basename "${t}" .yml)

Loading…
Cancel
Save