File: asterisk-tests-run

package info (click to toggle)
asterisk-testsuite 0.0.0%2Bsvn.5781-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 18,632 kB
  • sloc: xml: 33,912; python: 32,904; ansic: 1,599; sh: 395; makefile: 170; sql: 17
file content (20 lines) | stat: -rwxr-xr-x 547 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# Run the asterisk testsuite. Should probably be run by root

# use --help to get the usage message of runtests.py. Without any
# options runs all tests. -l will list tests. -t can select one specific
# test.

out_dir="/var/lib/asterisk-testsuite"
results="$out_dir/asterisk-test-suite-report.xml"

cd /usr/share/asterisk-testsuite
./runtests.py -o "$out_dir" "$@"

# Now, check the results file

# list of failed tests:
#grep '<failure>Running' $results | sed -e "s|^.*'tests/|'tests/|" | cut -d"'" -f2 
# Summary:
#sed -n 2p $results