583d8b9427966a4c34a9764b80cf062376f4cb45
[ric-plt/sdl.git] / collectsdlinfo.in
1 #!/bin/sh
2
3 if test "${#}" != 1 ; then
4     echo "Usage: collectsdlinfo OUTPUTDIR" 1>&2
5     exit 1
6 fi
7 if test "${1}" = "-h" || test "${1}" = "--help" ; then
8     cat << EOF
9 Usage: collectsdlinfo OUTPUTDIR
10
11 collectsdlinfo finds SDL configuration files and collects debug info. 
12 The results are saved into the given OUTPUTDIR directory.
13 EOF
14     exit 0
15 fi
16
17 OUTPUTDIR="${1}"
18 mkdir -p "${OUTPUTDIR}" || exit 1
19 outputfile="${OUTPUTDIR}/shareddatalayer_configuration.txt"
20 sdltool dump-configuration > "${outputfile}" 2>&1
21
22 outputfile="${OUTPUTDIR}/shareddatalayer_write_read_latency.txt"
23 sdltool test-get-set -- timeout 10 > "${outputfile}" 2>&1
24
25 outputfile="${OUTPUTDIR}/shareddatalayer_backend_connectivity.txt"
26 sdltool test-connectivity -- timeout 10 > "${outputfile}" 2>&1