Skip to content
Commits on Source (2)
  • Bernhard Schmidt's avatar
    Fix autopkgtest by parsing XML results · ae20a341
    Bernhard Schmidt authored
    In 13.23 (also present in 16.1) some upstream change broke creation
    of the txt-formatted testsuite results. Asterisk segfaults in this
    case. The output of the xml-formatted results (used by upstream CI)
    works.
    
    Switch to generating xml results and actually parsing the xml using
    xmllint for errors.
    
    See #909689
    ae20a341
  • Bernhard Schmidt's avatar
    Changelog for 1:13.23.1~dfsg-2 · 65ed7a5c
    Bernhard Schmidt authored
    65ed7a5c
asterisk (1:13.23.1~dfsg-2) unstable; urgency=medium
* Fix autopkgtest by parsing XML results (Closes: #909689)
-- Bernhard Schmidt <berni@debian.org> Thu, 03 Jan 2019 16:20:10 +0100
asterisk (1:13.23.1~dfsg-1) unstable; urgency=medium
* New upstream version 13.23.1~dfsg
......
......@@ -40,7 +40,7 @@ EOF
run() {
$asterisk -rx 'test execute all' 2>&1
$asterisk -rx "test generate results txt $results_file"
$asterisk -rx "test generate results xml $results_file"
$asterisk -rx 'module show like test_' | awk '/Running/ {print $1}' \
| sort > "$output_dir/mods_loaded"
ls /usr/lib/asterisk/modules/ | sort | grep ^test_ > "$output_dir/mods_all"
......@@ -49,12 +49,11 @@ run() {
diff "$output_dir/mods_loaded" "$output_dir/mods_all"
echo "Manually disabled: $disable_mods"
fi
header=`cat "$results_file" | sed -e '/^$/,$d' `
failed=`echo "$header" | awk '/^Failed/ {print $3}'`
failed=`xmllint --xpath 'string(//testsuite/@errors)' $results_file`
test_in_source=`grep AST_TEST_REGISTER tests/test_*.c | wc -l`
if [ "$failed" != '0' ]; then
echo >&2 "Some tests failed:"
echo >&2 "$header"
echo >&2 "$results_file"
$asterisk -rx "test show results failed" >&2
fi
}
......
Tests: asttestmods
Restrictions: needs-root, isolation-container
Depends: asterisk, asterisk-voicemail, asterisk-tests, asterisk-core-sounds-en-gsm
Depends: asterisk, asterisk-voicemail, asterisk-tests, asterisk-core-sounds-en-gsm, libxml2-utils