X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Ftools%2Fcollectsdlinfo.in;fp=src%2Ftools%2Fcollectsdlinfo.in;h=583d8b9427966a4c34a9764b80cf062376f4cb45;hb=ef2bf51d04aaf01fa0cabdcaf905b23423067662;hp=0000000000000000000000000000000000000000;hpb=edc9b96a441194b571e8d55ec1603b5be0ea52eb;p=ric-plt%2Fsdl.git diff --git a/src/tools/collectsdlinfo.in b/src/tools/collectsdlinfo.in new file mode 100644 index 0000000..583d8b9 --- /dev/null +++ b/src/tools/collectsdlinfo.in @@ -0,0 +1,26 @@ +#!/bin/sh + +if test "${#}" != 1 ; then + echo "Usage: collectsdlinfo OUTPUTDIR" 1>&2 + exit 1 +fi +if test "${1}" = "-h" || test "${1}" = "--help" ; then + cat << EOF +Usage: collectsdlinfo OUTPUTDIR + +collectsdlinfo finds SDL configuration files and collects debug info. +The results are saved into the given OUTPUTDIR directory. +EOF + exit 0 +fi + +OUTPUTDIR="${1}" +mkdir -p "${OUTPUTDIR}" || exit 1 +outputfile="${OUTPUTDIR}/shareddatalayer_configuration.txt" +sdltool dump-configuration > "${outputfile}" 2>&1 + +outputfile="${OUTPUTDIR}/shareddatalayer_write_read_latency.txt" +sdltool test-get-set -- timeout 10 > "${outputfile}" 2>&1 + +outputfile="${OUTPUTDIR}/shareddatalayer_backend_connectivity.txt" +sdltool test-connectivity -- timeout 10 > "${outputfile}" 2>&1