From e4efeadbd62340858db85c194925ec3f4692b7e1 Mon Sep 17 00:00:00 2001 From: Matej Habrnal Date: Mar 06 2015 17:37:48 +0000 Subject: abrt-cli: add abrt-cli tests 5-abrt-cli-test.sh Tests reporter-mantisbt on mock version of the MantisBT. 10-abrt-cli-reporting-test.sh Tests reporting to the MantisBT via abrt-cli. Signed-off-by: Matej Habrnal --- diff --git a/tests/p_abrt-cli/0-install_abrt-cli.sh b/tests/p_abrt-cli/0-install_abrt-cli.sh new file mode 100755 index 0000000..6b3ac68 --- /dev/null +++ b/tests/p_abrt-cli/0-install_abrt-cli.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# Author: Matej Habrnal + +if [[ $centos_ver == 7 ]] +then + t_InstallPackage abrt-cli + t_InstallPackage expect + t_InstallPackage curl + t_InstallPackage python + t_InstallPackage python-libs +else + echo "Skipped on CentOS 5 and CentOS 6" +fi diff --git a/tests/p_abrt-cli/10-abrt-cli-reporting-test.sh b/tests/p_abrt-cli/10-abrt-cli-reporting-test.sh new file mode 100755 index 0000000..7391188 --- /dev/null +++ b/tests/p_abrt-cli/10-abrt-cli-reporting-test.sh @@ -0,0 +1,170 @@ +#!/bin/bash +# Author: Matej Habrnal + +TEST_DIR="tests/p_abrt-cli" +source $TEST_DIR/_lib.sh +source $TEST_DIR/_CentOSBugTracker.conf + +# run only on centos 7 or greater +[[ $centos_ver -lt 7 ]] && exit + +t_Log "Running $0 - test reporting to CentOS Bug Tracker" + +conf_file="/etc/libreport/events/report_CentOSBugTracker.conf" + +cat > /etc/libreport/events.d/test_event.conf << _EOF_ +EVENT=notify + touch /tmp/abrt-done +EVENT=notify-dup + touch /tmp/abrt-done +_EOF_ + +function wait_for_hooks() { + echo "Waiting for all hooks to end" + local c=0 + while [ ! -f "/tmp/abrt-done" ]; do + sleep 0.1 + let c=$c+1 + if [ $c -gt 3000 ]; then + echo "Timeout" + break + fi + done + t=$( echo "scale=2; $c/10" | bc ) + echo "Hooks ended in $t seconds" +} + +function get_crash_path() +{ + crash_PATH="$(abrt-cli list 2> /dev/null | grep Directory | awk '{ print $2 }' | tail -n1)" + + if [ ! -d "$crash_PATH" ]; then + echo "No crash dir generated, this shouldn't happen" + exit 1 + fi + echo "crash dir path: $crash_PATH" +} + +function check_prior_crashes() +{ + abrt-cli list 2> /dev/null >cli-list.log + count_of_crashes=`wc -l < cli-list.log` + rm -f cli-list.log + + if [[ $count_of_crashes != 0 ]]; then + echo "There are some existing crashes" + exit 1 + fi +} + +function generate_crash() +{ + echo "Generate crash" + sleep 1000 & + kill -SIGSEGV $! + sleep 3 +} + +function set_configuration() +{ + conf_file_original=`cat $conf_file` + + cat > $conf_file << EOF +Mantisbt_MantisbtURL = $URL +Mantisbt_Login = $LOGIN +Mantisbt_Password = $PASSWORD +Mantisbt_SSLVerify = $SSLVERIFY +EOF +} + +function restore_configuration() +{ + echo $conf_file_original > $conf_file +} + +rlJournalStart + rlPhaseStartSetup + LANG="" + export LANG + + check_prior_crashes + + orig_editor=`echo $EDITOR` + export EDITOR=cat + + TmpDir=$(mktemp -d) + cp $TEST_DIR/_expect $TmpDir/expect + cp $TEST_DIR/_expect_report $TmpDir/expect_report + + pushd $TmpDir + rlPhaseEnd + + rlPhaseStartTest "testing workflow" + generate_crash + get_crash_path + wait_for_hooks + + rlRun "./expect $crash_PATH &> abrt-cli.log" 0 "run abrt-cli report CRASH_DIR" + + rlAssertGrep "CentOS Bug Tracker User name:" abrt-cli.log + rlAssertGrep "CentOS Bug Tracker Password:" abrt-cli.log + + rm -f abrt-cli.log + rlPhaseEnd + + rlPhaseStartTest "create a new issue" + #set url, username and password + set_configuration + + echo "I am comment. abrt-cli testing" > $crash_PATH/comment + hash=`date +%s` + echo $hash > $crash_PATH/duphash + rlRun "./expect_report $crash_PATH &> abrt-cli.log" 0 "run report-cli -e report_CentOSBugTracker CRASH_DIR" + + rlAssertGrep "Checking for duplicates" abrt-cli.log + rlAssertGrep "Creating a new issue" abrt-cli.log + rlAssertGrep "Adding External URL to issue" abrt-cli.log + + #get issue id + issue_id=`grep "Status: new " abrt-cli.log | grep -e [0-9]* -o` + echo "Created issue $issue_id" + + rm -f abrt-cli.log + rlPhaseEnd + + rlPhaseStartTest "duplicate issue" + + rlRun "./expect_report $crash_PATH &> abrt-cli.log" 0 "run report-cli -e report_CentOSBugTracker CRASH_DIR" + + rlAssertGrep "Checking for duplicates" abrt-cli.log + rlAssertGrep "Bug is already reported:" abrt-cli.log + rlAssertGrep "Adding new comment to issue" abrt-cli.log + + rlPhaseEnd + + rlPhaseStartTest "check created issue" + + data="$LOGIN$PASSWORD$issue_id" + + curl --data "$data" $URL"/api/soap/mantisconnect.php" > curl.log + rlAssertGrep "\[abrt\]" curl.log + rlAssertGrep "I am comment. abrt-cli testing" curl.log + rlAssertGrep "AttachmentData\[[0-9]*\]" curl.log -e + rlAssertNotGrep "AttachmentData\[0\]" curl.log + rlAssertGrep "CustomFieldValueForIssueData\[[0-9]*\]" curl.log -e + rlAssertNotGrep "CustomFieldValueForIssueData\[0\]" curl.log + rlAssertGrep " +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2011 Red Hat, Inc. All rights reserved. +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +TEST_DIR="tests/p_abrt-cli" +source $TEST_DIR/_lib.sh + +# run only on centos 7 or greater +[[ $centos_ver -lt 7 ]] && exit + +t_Log "Running $0 - reporter-mantisbt test suite" + +rlJournalStart + rlPhaseStartSetup + LANG="" + export LANG + + TmpDir=$(mktemp -d) + cp -R $TEST_DIR/queries/* $TmpDir + cp -R $TEST_DIR/problem_dir $TmpDir + cp $TEST_DIR/_pyserve $TmpDir/pyserve + cp $TEST_DIR/_mantisbt.conf $TmpDir/mantisbt.conf + cp $TEST_DIR/_mantisbt_format.conf $TmpDir/mantisbt_format.conf + cp $TEST_DIR/_mantisbt_formatdup.conf $TmpDir/mantisbt_formatdup.conf + cp $TEST_DIR/_attachment_file $TmpDir/attachment_file + pushd $TmpDir + rlPhaseEnd + + rlPhaseStartTest "sanity" + rlRun "reporter-mantisbt --help &> null" + rlRun "reporter-mantisbt --help 2>&1 | grep 'Usage:'" + rlPhaseEnd + + # search by duphash + # API new method for searching in MantisBT by duphas + rlPhaseStartTest "search by duphash" + ./pyserve \ + login_correct \ + search_two_issues &> server_log & + + sleep 1 + rlRun "reporter-mantisbt -vvv -h bbfe66399cc9cb8ba647414e33c5d1e4ad82b511 -c mantisbt.conf &> client_log" + kill %1 + + rlAssertGrep "test" server_log + rlAssertGrep "password" server_log + rlAssertGrep "" server_log + rlAssertGrep "abrt_hash" server_log + rlAssertGrep "bbfe66399cc9cb8ba647414e33c5d1e4ad82b511" server_log + + rlAssertGrep "" client_log + rlAssertGrep "2" client_log + rlAssertGrep "test" client_log + + rlAssertGrep "Looking for similar problems in CentOS Bug Tracker" client_log + rlAssertGrep "99" client_log + rlAssertGrep "99" client_log + + # not contain + rlAssertNotGrep "Status: new open http://localhost:12345/view.php?id=99" client_log + rlAssertNotGrep "323795" client_log + + rm -f problem_dir/reported_to + rlPhaseEnd + + # attach files to issue (parameter t, issue ID is specified) + rlPhaseStartTest "attach files to issue (issue ID is specified)" + ./pyserve \ + $QUERIES_DIR/login_correct \ + $QUERIES_DIR/project_get_id_from_name \ + $QUERIES_DIR/attachment \ + &> server_log & + sleep 1 + rlRun "reporter-mantisbt -vvv -c mantisbt.conf -F mantisbt_format.conf \ + -d problem_dir -t1 attachment_file &> client_log" + kill %1 + + # request + rlAssertGrep "test" server_log + + rlAssertGrep "" server_log + rlAssertGrep "1" server_log + rlAssertGrep "attachment_file" server_log + rlAssertGrep "U1NCaGJTQmhkSFJoWTJobFpDQTZLUW89Cg==" server_log + + # response + rlAssertGrep "" client_log + rlAssertGrep "2" client_log + rlAssertGrep "name xsi:type=\"xsd:string\">test" client_log + + rlAssertGrep "Attaching file 'attachment_file' to issue 1" client_log + rlAssertGrep "4" client_log + + # not contain + rlAssertNotGrep "Status: new open http://localhost:12345/view.php?id=99" client_log + rlAssertNotGrep "323795" client_log + + rm -f problem_dir/reported_to + rlPhaseEnd + + # attach files to issue (parameter -t, issue ID is not specified) + # API mc_issue_attachment_add + rlPhaseStartTest "attach files to issue (issue ID is not specified)" + ./pyserve \ + $QUERIES_DIR/login_correct \ + $QUERIES_DIR/project_get_id_from_name \ + $QUERIES_DIR/attachment \ + &> server_log & + + rlRun "echo \"CentOS Bug Tracker: URL=http://localhost:12345/mantisbt/view.php?id=1\" > problem_dir/reported_to" + + sleep 1 + rlRun "reporter-mantisbt -vvv -c mantisbt.conf -F mantisbt_format.conf -d problem_dir -t attachment_file &> client_log" + kill %1 + + # request + rlAssertGrep "" server_log + rlAssertGrep "1" server_log + rlAssertGrep "attachment_file" server_log + + # response + rlAssertGrep "" client_log + rlAssertGrep "2" client_log + rlAssertGrep "name xsi:type=\"xsd:string\">test" client_log + + rlAssertGrep "Attaching file 'attachment_file' to issue 1" client_log + rlAssertGrep "4" client_log + + # not contain + rlAssertNotGrep "Status: new open http://localhost:12345/view.php?id=99" client_log + rlAssertNotGrep "323795" client_log #dummy + + rm -f problem_dir/reported_to + rlPhaseEnd + + # force reporting even if this problem is already reported (parameter -f) + rlPhaseStartTest "force reporting" + ./pyserve \ + $QUERIES_DIR/login_correct \ + $QUERIES_DIR/project_get_id_from_name \ + $QUERIES_DIR/search_two_issues \ + $QUERIES_DIR/search_no_issue \ + $QUERIES_DIR/get_custom_fields \ + $QUERIES_DIR/create \ + $QUERIES_DIR/attachment \ + $QUERIES_DIR/attachment \ + &> server_log & + + # is reported + rlRun "echo \"CentOS Bug Tracker: URL=http://localhost:12345/mantisbt/view.php?id=1\" > problem_dir/reported_to" + + sleep 1 + rlRun "reporter-mantisbt -f -vvv -c mantisbt.conf -F mantisbt_format.conf -A mantisbt_formatdup.conf -d problem_dir >client_log 2>&1 " + kill %1 + + #request + rlAssertGrep "test" server_log + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "proj" server_log + rlAssertGrep "public" server_log + rlAssertGrep "666" server_log + rlAssertGrep "\[abrt\] : rxvt_term::selection_delimit_word(): Process /usr/bin/urxvtd was killed by signal 11 (SIGSEGV)" server_log + rlAssertGrep "" server_log + rlAssertGrep "backtrace" server_log + + rlAssertGrep "7" server_log + rlAssertGrep "backtrace" server_log + + #response + rlAssertGrep "" client_log + rlAssertGrep "2" client_log + rlAssertGrep "name xsi:type=\"xsd:string\">test" client_log + + rlAssertGrep "Checking for duplicates" client_log + rlAssertGrep "CentOS Bug Tracker has 2 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511' including cross-version ones" client_log + rlAssertGrep "" client_log + rlAssertGrep "Potential duplicate: issue 99" client_log + rlAssertGrep "CentOS Bug Tracker has 0 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511'" client_log + rlAssertGrep "" client_log + + rlAssertGrep "Creating a new issue" client_log + rlAssertGrep "7" client_log + + # not contain + rlAssertNotGrep "323795" client_log #dummy + + rm -f problem_dir/reported_to + rlPhaseEnd + + # create a new issue (only potential duplicate issues exist) + rlPhaseStartTest "create an issue (only potential duplicate issues exist)" + ./pyserve \ + $QUERIES_DIR/login_correct \ + $QUERIES_DIR/project_get_id_from_name \ + $QUERIES_DIR/search_two_issues \ + $QUERIES_DIR/search_no_issue \ + $QUERIES_DIR/get_custom_fields \ + $QUERIES_DIR/create \ + $QUERIES_DIR/attachment \ + $QUERIES_DIR/attachment \ + &> server_log & + + # is reported + rlRun "echo \"CentOS Bug Tracker: URL=http://localhost:12345/mantisbt/view.php?id=1\" > problem_dir/reported_to" + + sleep 1 + rlRun "reporter-mantisbt -f -vvv -c mantisbt.conf -F mantisbt_format.conf -A mantisbt_formatdup.conf -d problem_dir >client_log 2>&1 " + kill %1 + + #request + rlAssertGrep "test" server_log + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "proj" server_log + rlAssertGrep "public" server_log + rlAssertGrep "666" server_log + rlAssertGrep "\[abrt\] : rxvt_term::selection_delimit_word(): Process /usr/bin/urxvtd was killed by signal 11 (SIGSEGV)" server_log + rlAssertGrep "" server_log + rlAssertGrep "backtrace" server_log + + rlAssertGrep "7" server_log + rlAssertGrep "backtrace" server_log + + #response + rlAssertGrep "" client_log + rlAssertGrep "2" client_log + rlAssertGrep "name xsi:type=\"xsd:string\">test" client_log + + rlAssertGrep "Checking for duplicates" client_log + rlAssertGrep "CentOS Bug Tracker has 2 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511' including cross-version ones" client_log + rlAssertGrep "" client_log + rlAssertGrep "Potential duplicate: issue 99" client_log + rlAssertGrep "CentOS Bug Tracker has 0 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511'" client_log + rlAssertGrep "" client_log + + rlAssertGrep "Creating a new issue" client_log + rlAssertGrep "7" client_log + + rlAssertGrep "Status: new http://localhost:12345/view.php?id=7" client_log + + # not contain + rlAssertNotGrep "323795" client_log #dummy + + rm -f problem_dir/reported_to + rlPhaseEnd + + # create a new issue (no potential duplicate issues exist) + rlPhaseStartTest "create an issue (no potential duplicate issues exist)" + ./pyserve \ + $QUERIES_DIR/login_correct \ + $QUERIES_DIR/project_get_id_from_name \ + $QUERIES_DIR/search_no_issue \ + $QUERIES_DIR/get_custom_fields \ + $QUERIES_DIR/create \ + $QUERIES_DIR/attachment \ + $QUERIES_DIR/attachment \ + &> server_log & + + sleep 1 + rlRun "reporter-mantisbt -vvv -c mantisbt.conf -F mantisbt_format.conf -d problem_dir &> client_log" + kill %1 + + #request + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "" server_log + + #response + rlAssertGrep "" client_log + rlAssertGrep "2" client_log + rlAssertGrep "name xsi:type=\"xsd:string\">test" client_log + + rlAssertGrep "Checking for duplicates" client_log + rlAssertGrep "CentOS Bug Tracker has 0 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511' including cross-version ones" client_log + rlAssertGrep "" client_log + + # not contain + rlAssertNotGrep "CentOS Bug Tracker has 2 reports" client_log #not + + rlAssertGrep "Creating a new issue" client_log + rlAssertGrep "7" client_log + + rlAssertGrep "Status: new http://localhost:12345/view.php?id=7" client_log + rlAssertNotGrep "323795" client_log #dummy + + rm -f problem_dir/reported_to + rlPhaseEnd + + # duplicate issue exist (comment doesn't exist, not closed as duplicate) + rlPhaseStartTest "duplicate issue exist (comment doesn't exist)" + ./pyserve \ + $QUERIES_DIR/login_correct \ + $QUERIES_DIR/project_get_id_from_name \ + $QUERIES_DIR/search_two_issues \ + $QUERIES_DIR/search_one_issue \ + $QUERIES_DIR/get_issue \ + &> server_log & + + rlRun "rm -f problem_dir/comment" + + sleep 1 + rlRun "reporter-mantisbt -vvv -c mantisbt.conf -F mantisbt_format.conf -A mantisbt_formatdup.conf -d problem_dir &> client_log" + kill %1 + + # request + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "99" server_log + + # response + rlAssertGrep "" client_log + rlAssertGrep "2" client_log + rlAssertGrep "name xsi:type=\"xsd:string\">test" client_log + + rlAssertGrep "Checking for duplicates" client_log + rlAssertGrep "CentOS Bug Tracker has 2 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511' including cross-version ones" client_log + rlAssertGrep "" client_log + rlAssertGrep "CentOS Bug Tracker has 1 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511'" client_log + rlAssertNotGrep "" client_log #not + + rlAssertGrep "99" client_log + rlAssertGrep "new" client_log + rlAssertGrep "Bug is already reported: 99" client_log + + rlAssertGrep "Status: new open http://localhost:12345/view.php?id=99" client_log + + # not contain + rlAssertNotGrep "323795" client_log #dummy + + rm -f problem_dir/reported_to + rlPhaseEnd + + # duplicate issue exist (comment doesn't exist, closed as duplicate) + rlPhaseStartTest "duplicate issue exist (comment doesn't exist)" + ./pyserve \ + $QUERIES_DIR/login_correct \ + $QUERIES_DIR/project_get_id_from_name \ + $QUERIES_DIR/search_two_issues \ + $QUERIES_DIR/search_one_issue \ + $QUERIES_DIR/get_issue_closed_as_duplicate \ + $QUERIES_DIR/get_issue \ + &> server_log & + + sleep 1 + rlRun "reporter-mantisbt -vvv -c mantisbt.conf -F mantisbt_format.conf -A mantisbt_formatdup.conf -d problem_dir &> client_log" + kill %1 + + # request + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "99" server_log + + # response + rlAssertGrep "" client_log + rlAssertGrep "2" client_log + rlAssertGrep "name xsi:type=\"xsd:string\">test" client_log + + rlAssertGrep "Checking for duplicates" client_log + rlAssertGrep "CentOS Bug Tracker has 2 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511' including cross-version ones" client_log + rlAssertGrep "" client_log + rlAssertGrep "CentOS Bug Tracker has 1 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511'" client_log + + # not contain + rlAssertNotGrep "" client_log + + rlAssertGrep "99" client_log + rlAssertGrep "new" client_log + rlAssertGrep "duplicate" client_log + rlAssertGrep "Bug is already reported: 99" client_log + rlAssertGrep "Issue 99 is a duplicate, using parent issue 101" client_log + + rlAssertGrep "Status: new open http://localhost:12345/view.php?id=101" client_log + # not contain + rlAssertNotGrep "Status: new open http://localhost:12345/view.php?id=99" client_log + rlAssertNotGrep "323795" client_log #dummy + + rm -f problem_dir/reported_to + rm -f problem_dir/comment + + rlPhaseEnd + + # duplicate issue exist (comment file exists, isn't duplicate, attach backtrace) + rlPhaseStartTest "duplicate issue exist (comment file exists, isn't duplicate, attach backtrace)" + ./pyserve \ + $QUERIES_DIR/login_correct \ + $QUERIES_DIR/project_get_id_from_name \ + $QUERIES_DIR/search_two_issues \ + $QUERIES_DIR/search_one_issue \ + $QUERIES_DIR/get_issue \ + $QUERIES_DIR/add_note \ + $QUERIES_DIR/attachment \ + &> server_log & + + # create a comment file + rlRun "echo \"i am comment\" > problem_dir/comment" + + sleep 1 + rlRun "reporter-mantisbt -vvv -c mantisbt.conf -F mantisbt_format.conf -A mantisbt_formatdup.conf -d problem_dir &> client_log" + kill %1 + + # request + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "99" server_log + rlAssertGrep "" server_log + rlAssertGrep "" server_log + + # response + rlAssertGrep "" client_log + rlAssertGrep "2" client_log + rlAssertGrep "name xsi:type=\"xsd:string\">test" client_log + + rlAssertGrep "Checking for duplicates" client_log + rlAssertGrep "CentOS Bug Tracker has 2 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511' including cross-version ones" client_log + rlAssertGrep "" client_log + rlAssertGrep "CentOS Bug Tracker has 1 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511'" client_log + rlAssertNotGrep "" client_log #not + + rlAssertGrep "99" client_log + rlAssertGrep "new" client_log + rlAssertGrep "Bug is already reported: 99" client_log + rlAssertGrep "Adding new comment to issue 99" client_log + rlAssertGrep "Attaching better backtrace" client_log + rlAssertGrep "5" client_log + rlAssertGrep "4" client_log + + rlAssertGrep "Status: new open http://localhost:12345/view.php?id=99" client_log + + # not contain + rlAssertNotGrep "323795" client_log #dummy + + rm -f problem_dir/reported_to + rm -f problem_dir/comment + rlPhaseEnd + + # duplicate issue exist (comment file exists, is duplicate) + rlPhaseStartTest "duplicate issue exist (comment file exists, is duplicate)" + ./pyserve \ + $QUERIES_DIR/login_correct \ + $QUERIES_DIR/project_get_id_from_name \ + $QUERIES_DIR/search_two_issues \ + $QUERIES_DIR/search_one_issue \ + $QUERIES_DIR/get_issue_dup_comment_rating_1 \ + &> server_log & + + # create a comment file + rlRun "echo \"i am comment\" > problem_dir/comment" + + sleep 1 + rlRun "reporter-mantisbt -vvv -c mantisbt.conf -F mantisbt_format.conf -A mantisbt_formatdup.conf -d problem_dir &> client_log" + kill %1 + + # request + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "99" server_log + + # response + rlAssertGrep "" client_log + rlAssertGrep "2" client_log + rlAssertGrep "name xsi:type=\"xsd:string\">test" client_log + + rlAssertGrep "Checking for duplicates" client_log + rlAssertGrep "CentOS Bug Tracker has 2 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511' including cross-version ones" client_log + rlAssertGrep "" client_log + rlAssertGrep "CentOS Bug Tracker has 1 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511'" client_log + + # not contain + rlAssertNotGrep "" client_log + + rlAssertGrep "99" client_log + rlAssertGrep "new" client_log + rlAssertGrep "Bug is already reported: 99" client_log + rlAssertGrep "Found the same comment in the issue history, not adding a new one" client_log + + # not contain + rlAssertNotGrep "5" client_log + rlAssertNotGrep "4" client_log + + rlAssertGrep "Status: new open http://localhost:12345/view.php?id=99" client_log + rlAssertNotGrep "323795" client_log #dummy + + rm -f problem_dir/reported_to + rm -f problem_dir/comment + rlPhaseEnd + + rlPhaseStartTest "duplicate issue exist (comment file exists, isn't duplicate, the same backtrace rating)" + ./pyserve \ + $QUERIES_DIR/login_correct \ + $QUERIES_DIR/project_get_id_from_name \ + $QUERIES_DIR/search_two_issues \ + $QUERIES_DIR/search_one_issue \ + $QUERIES_DIR/get_issue_comment_rating_1 \ + $QUERIES_DIR/add_note \ + &> server_log & + + # create a comment file + rlRun "echo \"i am comment\" > problem_dir/comment" + + sleep 1 + rlRun "reporter-mantisbt -vvv -c mantisbt.conf -F mantisbt_format.conf -A mantisbt_formatdup.conf -d problem_dir &> client_log" + kill %1 + + # request + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "99" server_log + rlAssertGrep "" server_log + + #not contain + rlAssertNotGrep "" server_log + + # response + rlAssertGrep "" client_log + rlAssertGrep "2" client_log + rlAssertGrep "name xsi:type=\"xsd:string\">test" client_log + + rlAssertGrep "Checking for duplicates" client_log + rlAssertGrep "CentOS Bug Tracker has 2 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511' including cross-version ones" client_log + rlAssertGrep "" client_log + rlAssertGrep "CentOS Bug Tracker has 1 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511'" client_log + rlAssertGrep "Status: new open http://localhost:12345/view.php?id=99" client_log + + + rlAssertGrep "99" client_log + rlAssertGrep "new" client_log + rlAssertGrep "Bug is already reported: 99" client_log + rlAssertGrep "5" client_log + rlAssertGrep "Adding new comment to issue 99" client_log + + # not contain + rlAssertNotGrep "" client_log + rlAssertNotGrep "Attaching better backtrace" client_log + rlAsserNottGrep "Found the same comment in the issue history, not adding a new one" client_log + rlAssertNotGrep "4" client_log + rlAssertNotGrep "323795" client_log #dummy + + + rm -f problem_dir/reported_to + rm -f problem_dir/comment + rlPhaseEnd + + rlPhaseStartTest "duplicate issue exist (comment file exists, isn't duplicate, better backtrace rating)" + ./pyserve \ + $QUERIES_DIR/login_correct \ + $QUERIES_DIR/project_get_id_from_name \ + $QUERIES_DIR/search_two_issues \ + $QUERIES_DIR/search_one_issue \ + $QUERIES_DIR/get_issue_comment_rating_1 \ + $QUERIES_DIR/add_note \ + $QUERIES_DIR/attachment \ + &> server_log & + + # create a comment file + rlRun "echo \"i am comment\" > problem_dir/comment" + rlRun "echo \"5\" > problem_dir/backtrace_rating" + + sleep 1 + rlRun "reporter-mantisbt -vvv -c mantisbt.conf -F mantisbt_format.conf -A mantisbt_formatdup.conf -d problem_dir &> client_log" + kill %1 + + # request + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "" server_log + rlAssertGrep "99" server_log + rlAssertGrep "" server_log + rlAssertGrep "" server_log + + # response + rlAssertGrep "" client_log + rlAssertGrep "2" client_log + rlAssertGrep "name xsi:type=\"xsd:string\">test" client_log + + rlAssertGrep "Checking for duplicates" client_log + rlAssertGrep "CentOS Bug Tracker has 2 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511' including cross-version ones" client_log + rlAssertGrep "" client_log + + # not contain + rlAssertGrep "CentOS Bug Tracker has 1 reports with duphash 'bbfe66399cc9cb8ba647414e33c5d1e4ad82b511'" client_log + rlAssertNotGrep "" client_log + + rlAssertGrep "99" client_log + rlAssertGrep "new" client_log + rlAssertGrep "Bug is already reported: 99" client_log + rlAssertGrep "5" client_log + rlAssertGrep "Adding new comment to issue 99" client_log + rlAssertGrep "Attaching better backtrace" client_log + rlAssertGrep "4" client_log + + rlAssertGrep "Status: new open http://localhost:12345/view.php?id=99" client_log + + # not contain + rlAsserNottGrep "Found the same comment in the issue history, not adding a new one" client_log + rlAssertNotGrep "323795" client_log #dummy + + rm -f problem_dir/reported_to + rm -f problem_dir/comment + rlRun "echo \"1\" > problem_dir/backtrace_rating" + rlPhaseEnd + + rlPhaseStartCleanup + rlBundleLogs abrt server* client* + popd # TmpDir + rm -rf $TmpDir + rlPhaseEnd + rlJournalPrintText +rlJournalEnd diff --git a/tests/p_abrt-cli/_CentOSBugTracker.conf b/tests/p_abrt-cli/_CentOSBugTracker.conf new file mode 100644 index 0000000..d1e9703 --- /dev/null +++ b/tests/p_abrt-cli/_CentOSBugTracker.conf @@ -0,0 +1,4 @@ +URL=http://localhost/mantisbt +LOGIN=administrator +PASSWORD=root +SSLVERIFY=no diff --git a/tests/p_abrt-cli/_attachment_file b/tests/p_abrt-cli/_attachment_file new file mode 100644 index 0000000..7beed84 --- /dev/null +++ b/tests/p_abrt-cli/_attachment_file @@ -0,0 +1 @@ +SSBhbSBhdHRhY2hlZCA6KQo= diff --git a/tests/p_abrt-cli/_expect b/tests/p_abrt-cli/_expect new file mode 100755 index 0000000..d1248c3 --- /dev/null +++ b/tests/p_abrt-cli/_expect @@ -0,0 +1,44 @@ +#!/usr/bin/expect -f + +set dir [lindex $argv 0] + +spawn abrt-cli report $dir + +set timeout 10 + +# timeout handler +proc itstime {args} { + puts "!! expect timeout !!" + exit 1 +} + +while {1} { + expect { + + eof {break} + + timeout { itstime } + + "Ok to upload core dump? (It may contain sensitive data)." { + send "N\n" + } + "This problem was already reported to CentOS Bug Tracker" { + send "y\n" + } + -re "Downloading.*Continue?.*" { + send "N\n" + } + "CentOS Bug Tracker Password" { + send "\n" + } + "CentOS Bug Tracker User name" { + send "\n" + } + "CentOS Bug Tracker CentOS Bug Tracker project" { + send "\n" + } + "Select a workflow to run" { + send "3\n" + } + } +} diff --git a/tests/p_abrt-cli/_expect_report b/tests/p_abrt-cli/_expect_report new file mode 100755 index 0000000..48dfe7c --- /dev/null +++ b/tests/p_abrt-cli/_expect_report @@ -0,0 +1,41 @@ +#!/usr/bin/expect -f + +set dir [lindex $argv 0] + +spawn report-cli -e report_CentOSBugTracker $dir + +set timeout 10 + +# timeout handler +proc itstime {args} { + puts "!! expect timeout !!" + exit 1 +} + +while {1} { + expect { + + eof {break} + + timeout { itstime } + + "Ok to upload core dump? (It may contain sensitive data)." { + send "N\n" + } + "This problem was already reported to CentOS Bug Tracker" { + send "y\n" + } + -re "Downloading.*Continue?.*" { + send "N\n" + } + "CentOS Bug Tracker Password" { + send "aaa\n" + } + "CentOS Bug Tracker User name" { + send "aaa\n" + } + "Select a workflow to run" { + send "3\n" + } + } +} diff --git a/tests/p_abrt-cli/_lib.sh b/tests/p_abrt-cli/_lib.sh new file mode 100644 index 0000000..6e3fddb --- /dev/null +++ b/tests/p_abrt-cli/_lib.sh @@ -0,0 +1,163 @@ +#!/bin/bash +# Author: Matej Habrnal + +LOG_FILE=test.log +LOG_SEPARATOR='----------------------------------------------------' + +QUERIES_DIR="." + +function createSeparator +{ + sep="$LOG_SEPARATOR\n" + sep+="$1" + sep+="\n" + sep+="$LOG_SEPARATOR\n" +} + +function log +{ + echo -e "$1" + echo -e "$1" >> $LOG_FILE +} + +function logWithSeparator +{ + createSeparator "$1" + log "$sep" +} + +# logResult returnCode message +function logResult +{ + if [[ $1 == 0 ]]; then + log "PASS : $2\n" + else + log "FAIL : $2\n" + fi +} + +function rlJournalStart +{ + return 0 +} + +function rlPhaseStartSetup +{ + return 0 +} + +function rlPhaseStartTest +{ + logWithSeparator "$1" +} + +function rlPhaseEnd +{ +#logWithSeparator "rlPhaseEnd" + return 0 +} + +function rlRun +{ + local command=$1 + local expected_orig=${2:-0} + local expected=${2:-0} + local comment + local comment_begin + if [[ -z "$3" ]]; then + comment_begin="Running '$command'" + comment="Command '$command'" + else + comment_begin="$3 :: actually running '$command'" + comment="$3" + fi + + echo "$comment_begin" "BEGIN" + + eval "$command" + local exitcode=$? + + echo "rlRun: command = '$command'; exitcode = $exitcode; expected = $expected" + if [[ $exitcode == $expected ]]; then + retval=0 + else + retval=1 + fi + + logResult $retval "$command" + return $retval +} + +function rlAssertGrep +{ + if [ ! -e "$2" ] ; then + echo "rlAssertGrep: failed to find file $2" + return 2 + fi + local options=${3:--q} + grep $options "$1" "$2" + + local exitcode=$? + command="File '$2' should contain '$1'" + echo $command + + logResult $exitcode "$command" + return $exitcode +} + +function rlAssertNotGrep +{ + if [ ! -e "$2" ] ; then + echo "rlAssertGrep: failed to find file $2" + return 2 + fi + local options=${3:--q} + grep $options "$1" "$2" + + local exitcode=$? + if [ $exitcode == 0 ]; then + exitcode=1 + else + exitcode=0 + fi + + command="File '$2' should not contain '$1'" + echo $command + + logResult $exitcode "$command" + return $exitcode +} + +function rlPhaseStartCleanup +{ + logWithSeparator "rlPhaseStartCleanup" +} + +function rlBundleLogs +{ + local pass_count=`grep 'PASS' $LOG_FILE | wc -l` + local fail_count=`grep 'FAIL' $LOG_FILE | wc -l` + + log $LOG_SEPARATOR + log "TEST STATUS" + log "PASS: $pass_count" + log "FAIL: $fail_count" + log "TOTAL: $(( $pass_count + $fail_count))" + log $LOG_SEPARATOR + + if [[ $fail_count == 0 ]]; then + test_return_value=0 + else + test_return_value=1 + fi +} + +function rlJournalPrintText +{ + return 0 +} + +function rlJournalEnd +{ + t_CheckExitStatus $test_return_value +} diff --git a/tests/p_abrt-cli/_mantisbt.conf b/tests/p_abrt-cli/_mantisbt.conf new file mode 100644 index 0000000..058af36 --- /dev/null +++ b/tests/p_abrt-cli/_mantisbt.conf @@ -0,0 +1,11 @@ +# MantisBT URL +MantisbtURL = http://localhost:12345 +# yes means that ssl certificates will be checked +SSLVerify = no +# your login has to exist, if you don have any, please create one +Login = test +# your password +Password = password + +Project = proj +ProjectVersion = 666 diff --git a/tests/p_abrt-cli/_mantisbt_format.conf b/tests/p_abrt-cli/_mantisbt_format.conf new file mode 100644 index 0000000..52e29c8 --- /dev/null +++ b/tests/p_abrt-cli/_mantisbt_format.conf @@ -0,0 +1,58 @@ +# Lines starting with # are ignored. +# Lines can be continued on the next line using trailing backslash. +# +# Format: +# %summary:: summary format +# section:: element1[,element2]... +# The literal text line to be added to Bugzilla comment. Can be empty. +# (IOW: empty lines are NOT ignored!) +# +# Summary format is a line of text, where %element% is replaced by +# text element's content, and [[...%element%...]] block is used only if +# %element% exists. [[...]] blocks can nest. +# +# Sections can be: +# - %summary: bug summary format string. +# - %attach: a list of elements to attach. +# - text, double colon (::) and the list of comma-separated elements. +# Text can be empty (":: elem1, elem2, elem3" works), +# in this case "Text:" header line will be omitted. +# +# Elements can be: +# - problem directory element names, which get formatted as +# : +# or +# : +# : +# : +# : +# - problem directory element names prefixed by "%bare_", +# which is formatted as-is, without ":" and colons +# - %oneline, %multiline, %text wildcards, which select all corresponding +# elements for output or attachment +# - %binary wildcard, valid only for %attach section, instructs to attach +# binary elements +# - problem directory element names prefixed by "-", +# which excludes given element from all wildcards +# +# Nonexistent elements are silently ignored. +# If none of elements exists, the section will not be created. + +%summary:: [abrt] %pkg_name%[[: %crash_function%()]][[: %reason%]][[: TAINTED %tainted_short%]] + +Description of problem:: %bare_comment + +Version-Release number of selected component:: %bare_package + +Truncated backtrace:: %bare_%short_backtrace + +%Additional info:: +:: -pkg_arch,-pkg_epoch,-pkg_name,-pkg_release,-pkg_version,\ + >--->----component,-architecture,\ + >----analyzer,-count,-duphash,-uuid,-abrt_version,\ + >----username,-hostname,-os_release,-os_info,\ + >----time,-pid,-pwd,-last_occurrence,-ureports_counter,\ + >---%reporter,\ + >---%oneline + +%attach:: backtrace, maps diff --git a/tests/p_abrt-cli/_mantisbt_formatdup.conf b/tests/p_abrt-cli/_mantisbt_formatdup.conf new file mode 100644 index 0000000..98345a0 --- /dev/null +++ b/tests/p_abrt-cli/_mantisbt_formatdup.conf @@ -0,0 +1,64 @@ +# Lines starting with # are ignored. +# Lines can be continued on the next line using trailing backslash. +# +# Format: +# %summary:: summary format +# section:: element1[,element2]... +# The literal text line to be added to Bugzilla comment. Can be empty. +# (IOW: empty lines are NOT ignored!) +# +# Summary format is a line of text, where %element% is replaced by +# text element's content, and [[...%element%...]] block is used only if +# %element% exists. [[...]] blocks can nest. +# +# Sections can be: +# - %summary: bug summary format string. +# - %attach: a list of elements to attach. +# - text, double colon (::) and the list of comma-separated elements. +# Text can be empty (":: elem1, elem2, elem3" works), +# in this case "Text:" header line will be omitted. +# +# Elements can be: +# - problem directory element names, which get formatted as +# : +# or +# : +# : +# : +# : +# - problem directory element names prefixed by "%bare_", +# which is formatted as-is, without ":" and colons +# - %oneline, %multiline, %text wildcards, which select all corresponding +# elements for output or attachment +# - %binary wildcard, valid only for %attach section, instructs to attach +# binary elements +# - problem directory element names prefixed by "-", +# which excludes given element from all wildcards +# +# Nonexistent elements are silently ignored. +# If none of elements exists, the section will not be created. + +# When we add a comment to an existing BZ, %summary is ignored +# (it specifies *new bug* summary field): +# %summary:: blah blah + +# When dup is detected, BZ reporter adds a comment to it. +# This comment may interrupt an ongoing conversation in the BZ. +# (Three people independently filed a bug against abrt about this). +# Need to clearly explain what this comment is, to prevent confusion. +# Hopefully, this line would suffice: +Another user experienced a similar problem: + +# If user filled out comment field, show it: +:: %bare_comment + +# var_log_messages has too much variance (time/date), +# we exclude it from message so that dup message elimination has more chances to work +:: \ + -pkg_arch,-pkg_epoch,-pkg_name,-pkg_release,-pkg_version,\ + -component,-architecture,\ + -analyzer,-count,-duphash,-uuid,-abrt_version,\ + -username,-hostname,-os_release,-os_info,\ + -time,-pid,-pwd,-last_occurrence,-ureports_counter,\ + -var_log_messages,\ + %oneline diff --git a/tests/p_abrt-cli/_pyserve b/tests/p_abrt-cli/_pyserve new file mode 100755 index 0000000..dd71ae0 --- /dev/null +++ b/tests/p_abrt-cli/_pyserve @@ -0,0 +1,51 @@ +#!/usr/bin/env python +# Single purpose HTTP server +# - serves files specified as arguments in order of appearance + + +import os +import sys +import BaseHTTPServer +#from pprint import pprint + +class Handler(BaseHTTPServer.BaseHTTPRequestHandler): + def do_POST(self): + + print self.rfile.read(int(self.headers.getheader('content-length'))) + + response = self.dummy_response + if not self.filelist: + print 'No more files to serve - sending dummy response' + sys.stdout.flush() + else: + response = self.filelist.pop() + self.reply(response) + + def reply(self, response): + try: + #redirect stdout to client + stdout = sys.stdout + sys.stdout = self.wfile + print response + stdout.flush() + finally: + sys.stdout = stdout # restore + pass + +PORT = 12345 +print "Serving at port", PORT +sys.stdout.flush() + +filelist = [] +for file in sys.argv[1:]: + if os.path.isfile(file): + print "Adding file %s" % file + sys.stdout.flush() + with open(file) as f: + filelist.append(f.read()) + +filelist.reverse() +Handler.filelist = filelist +Handler.dummy_response = open("dummy", "r").read() +httpd = BaseHTTPServer.HTTPServer(("", PORT), Handler) +httpd.serve_forever() diff --git a/tests/p_abrt-cli/problem_dir/analyzer b/tests/p_abrt-cli/problem_dir/analyzer new file mode 100644 index 0000000..1ab966f --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/analyzer @@ -0,0 +1 @@ +CCpp \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/architecture b/tests/p_abrt-cli/problem_dir/architecture new file mode 100644 index 0000000..8790996 --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/architecture @@ -0,0 +1 @@ +x86_64 \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/backtrace b/tests/p_abrt-cli/problem_dir/backtrace new file mode 100644 index 0000000..2352266 --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/backtrace @@ -0,0 +1,305 @@ +[New LWP 10303] +warning: File "/usr/lib64/perl5/CORE/libperl.so" has a different build-id, file skipped +Missing separate debuginfo for /usr/lib64/freetype-freeworld/libfreetype.so.6 +Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/32/e3c32575e6fd2a16d5db151377c140c1130f3e +Missing separate debuginfo for +Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/3a/8fe6cb0063d56fc9be76ecd085c05f1b8a76e6 +warning: File "/usr/lib64/perl5/CORE/libperl.so" has a different build-id, file skipped +warning: the debug information found in "/usr/lib/debug//usr/lib64/perl5/CORE/libperl.so.debug" does not match "/usr/lib64/perl5/CORE/libperl.so" (CRC mismatch). + +warning: the debug information found in "/usr/lib/debug/usr/lib64/perl5/CORE/libperl.so.debug" does not match "/usr/lib64/perl5/CORE/libperl.so" (CRC mismatch). + +[Thread debugging using libthread_db enabled] +Core was generated by `urxvtd -q -o -f'. +Program terminated with signal 11, Segmentation fault. +#0 0x0000000000420240 in rxvt_term::selection_delimit_word (this=0x12e7ee0, dirn=DN, mark=, ret=0x12e8154) at screen.C:3047 +3047 stp = ROW(row).t + col; w1 = DELIMIT_TEXT (*stp); + +Thread 1 (Thread 0x7f7badf717e0 (LWP 10303)): +#0 0x0000000000420240 in rxvt_term::selection_delimit_word (this=0x12e7ee0, dirn=DN, mark=, ret=0x12e8154) at screen.C:3047 + tcol = + w2 = + col = + stp = 0x56 + row = 44 + dirnadd = 1 + trow = + w1 = + bound = {row = 44, col = 139} +#1 0x00000000004209ec in rxvt_term::selection_extend_colrow (this=0x12e7ee0, col=, row=, button3=, buttonpress=, clickchange=) at screen.C:3279 + pos = + closeto = rxvt_term::RIGHT +#2 0x000000000040f368 in rxvt_term::button_press (this=0x12e7ee0, ev=...) at command.C:1938 + reportmode = 0 + clickintime = +#3 0x000000000041148b in rxvt_term::x_cb (this=0x12e7ee0, ev=...) at command.C:1365 + dpy = 0x10f1800 + unused_root = 228704954805 + unused_root_y = 17775536 + unused_mask = 0 + unused_child = 30064771104 + unused_root_x = -1 +#4 0x0000000000429c8a in call (a1=..., this=) at ./callback.h:83 +No locals. +#5 rxvt_display::flush_cb (this=0x10f15f0, w=..., revents=) at rxvttoolkit.C:585 + i = 4 + xev = {type = 4, xany = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124}, xkey = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124, root = 199, subwindow = 0, time = 149820128, x = 400, y = 755, x_root = 407, y_root = 786, state = 1, keycode = 1, same_screen = 1}, xbutton = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124, root = 199, subwindow = 0, time = 149820128, x = 400, y = 755, x_root = 407, y_root = 786, state = 1, button = 1, same_screen = 1}, xmotion = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124, root = 199, subwindow = 0, time = 149820128, x = 400, y = 755, x_root = 407, y_root = 786, state = 1, is_hint = 1 '\001', same_screen = 1}, xcrossing = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124, root = 199, subwindow = 0, time = 149820128, x = 400, y = 755, x_root = 407, y_root = 786, mode = 1, detail = 1, same_screen = 1, focus = -1162223360, state = 3132743936}, xfocus = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124, mode = 199, detail = 0}, xexpose = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124, x = 199, y = 0, width = 0, height = 0, count = 149820128}, xgraphicsexpose = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, drawable = 27263124, x = 199, y = 0, width = 0, height = 0, count = 149820128, major_code = 0, minor_code = 400}, xnoexpose = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, drawable = 27263124, major_code = 199, minor_code = 0}, xvisibility = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124, state = 199}, xcreatewindow = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, parent = 27263124, window = 199, x = 0, y = 0, width = 149820128, height = 0, border_width = 400, override_redirect = 755}, xdestroywindow = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, event = 27263124, window = 199}, xunmap = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, event = 27263124, window = 199, from_configure = 0}, xmap = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, event = 27263124, window = 199, override_redirect = 0}, xmaprequest = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, parent = 27263124, window = 199}, xreparent = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, event = 27263124, window = 199, parent = 0, x = 149820128, y = 0, override_redirect = 400}, xconfigure = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, event = 27263124, window = 199, x = 0, y = 0, width = 149820128, height = 0, border_width = 400, above = 3375844295063, override_redirect = 1}, xgravity = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, event = 27263124, window = 199, x = 0, y = 0}, xresizerequest = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124, width = 199, height = 0}, xconfigurerequest = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, parent = 27263124, window = 199, x = 0, y = 0, width = 149820128, height = 0, border_width = 400, above = 3375844295063, detail = 1, value_mask = 13455032751862317057}, xcirculate = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, event = 27263124, window = 199, place = 0}, xcirculaterequest = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, parent = 27263124, window = 199, place = 0}, xproperty = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124, atom = 199, time = 0, state = 149820128}, xselectionclear = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124, selection = 199, time = 0}, xselectionrequest = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, owner = 27263124, requestor = 199, selection = 0, target = 149820128, property = 3242700308880, time = 3375844295063}, xselection = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, requestor = 27263124, selection = 199, target = 0, property = 149820128, time = 3242700308880}, xcolormap = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124, colormap = 199, c_new = 0, state = 0}, xclient = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124, message_type = 199, format = 0, data = {b = "\340\022\356\b\000\000\000\000\220\001\000\000\363\002\000\000\227\001\000", s = {4832, 2286, 0, 0, 400, 0, 755, 0, 407, 0}, l = {149820128, 3242700308880, 3375844295063, 4294967297, -4991711321847234559}}}, xmapping = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124, request = 199, first_keycode = 0, count = 0}, xerror = {type = 4, display = 0x8446, resourceid = 13310917563786461184, serial = 17766400, error_code = 148 '\224', request_code = 0 '\000', minor_code = 160 '\240'}, xkeymap = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, window = 27263124, key_vector = "\307", '\000' "\340, \022\356\b\000\000\000\000\220\001\000\000\363\002\000"}, xgeneric = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, extension = 27263124, evtype = 0}, xcookie = {type = 4, serial = 33862, send_event = 0, display = 0x10f1800, extension = 27263124, evtype = 0, cookie = 199, data = 0x0}, pad = {227633266692, 33862, -5135826509923090432, 17766400, 27263124, 199, 0, 149820128, 3242700308880, 3375844295063, 4294967297, -4991711321847234559, -4991711318714490624, -4991711318714490624, -4991711318714490624, -4919653724659785472, -4919653724659785472, -4919653724659785472, -4919653724659785472, -4847596130605080320, -4775538536550375168, -4703480942495670016, -4631423348440964864, -9170770298910613248}} +#6 0x000000000042cf04 in ev_invoke_pending () at ../libev/ev.c:2117 + p = +#7 0x000000000042e233 in ev_run (flags=0) at ../libev/ev.c:2392 +No locals. +#8 0x000000000040920c in main (argc=, argv=) at rxvtd.C:302 + opt_fork = 1 '\001' + pid = + opt_opendisplay = 1 '\001' + opt_quiet = 1 '\001' + opt_lock = 0 '\000' + sockname = + l = {fd = 7, accept_ev = {> = { = {active = 1, pending = 0, data = 0x7fff728dca10, cb = 0x409f00 ::method_thunk(ev_io*, int)>, next = 0x0, fd = 7, events = 1}, }, }} +warning: File "/usr/lib64/perl5/CORE/libperl.so" has a different build-id, file skipped +From To Syms Read Shared Object Library +0x0000003b7b005d90 0x0000003b7b01f7fc Yes /usr/lib64/libfontconfig.so.1.4.4 +0x0000003b7b4040c0 0x0000003b7b410c3c Yes /usr/lib64/libXft.so.2.2.0 +0x0000003541e01910 0x0000003541e0810c Yes /usr/lib64/libXrender.so.1.3.0 +0x000000353fa1dce0 0x000000353faa97ec Yes /usr/lib64/libX11.so.6.3.0 +0x00000035a4c06290 0x00000035a4c19c9c Yes /usr/lib64/libgdk_pixbuf-2.0.so.0.2300.3 +0x00000035a4804890 0x00000035a481eb8c Yes /usr/lib64/libpng12.so.0.46.0 +0x000000353d603ea0 0x000000353d643e9c Yes /lib64/libm-2.14.so +0x000000353ee09970 0x000000353ee39dcc Yes /lib64/libgobject-2.0.so.0.2800.8 +0x000000353ea01560 0x000000353ea02a2c Yes /lib64/libgthread-2.0.so.0.2800.8 +0x000000353d202160 0x000000353d2053ec Yes /lib64/librt-2.14.so +0x000000353c216cd0 0x000000353c2adbec Yes /lib64/libglib-2.0.so.0.2800.8 +0x0000003b83635050 0x0000003b83738bec Yes (*) /usr/lib64/perl5/CORE/libperl.so +0x000000353e603840 0x000000353e61354c Yes /lib64/libresolv-2.14.so +0x0000003550603ff0 0x00000035506117fc Yes /lib64/libnsl-2.14.so +0x000000353ce00de0 0x000000353ce0191c Yes /lib64/libdl-2.14.so +0x0000003546e00c10 0x0000003546e05afc Yes /lib64/libcrypt-2.14.so +0x000000354e600e10 0x000000354e60168c Yes /lib64/libutil-2.14.so +0x000000353ca05640 0x000000353ca1038c Yes /lib64/libpthread-2.14.so +0x0000003548e5a400 0x0000003548ec308a Yes /usr/lib64/libstdc++.so.6.0.16 +0x000000353c61ece0 0x000000353c74304c Yes /lib64/libc-2.14.so +0x000000353de028a0 0x000000353de120cc Yes /lib64/libgcc_s-4.6.0-20110530.so.1 + No /usr/lib64/freetype-freeworld/libfreetype.so.6 +0x0000003540603b70 0x000000354061d84c Yes /lib64/libexpat.so.1.5.2 +0x000000353fe08660 0x000000353fe13b9c Yes /usr/lib64/libxcb.so.1.1.0 +0x000000353f6294a0 0x000000353f6d2b3c Yes /lib64/libgio-2.0.so.0.2800.8 +0x000000353f200fe0 0x000000353f201f8c Yes /lib64/libgmodule-2.0.so.0.2800.8 +0x000000353da01e70 0x000000353da0e67c Yes /lib64/libz.so.1.2.5 +0x000000353be00b20 0x000000353be18caa Yes /lib64/ld-2.14.so +0x0000003546603170 0x00000035466417bc Yes /lib64/libfreebl3.so +0x0000003540200dd0 0x0000003540201b2c Yes /usr/lib64/libXau.so.6.0.0 +0x000000353e205980 0x000000353e2159dc Yes /lib64/libselinux.so.1 +0x0000003544a028d0 0x0000003544a0749c Yes /usr/lib64/libXcursor.so.1.0.2 +0x00000035422013e0 0x000000354220450c Yes /usr/lib64/libXfixes.so.3.1.0 +0x00007f7ba79495d0 0x00007f7ba794cf9c Yes /usr/lib64/perl5/vendor_perl/auto/List/Util/Util.so +0x00007f7ba759a170 0x00007f7ba75a18ac Yes /lib64/libnss_files-2.14.so +(*): Shared library is missing debugging information. +$1 = 0x0 +$2 = 0x0 +rax 0x1405b18 20994840 +rbx 0x12e7ee0 19824352 +rcx 0x0 0 +rdx 0x56 86 +rsi 0x1 1 +rdi 0x12e7ee0 19824352 +rbp 0x1 0x1 +rsp 0x7fff728dc680 0x7fff728dc680 +r8 0x0 0 +r9 0x1 1 +r10 0x16 22 +r11 0x14053b0 20992944 +r12 0x2b 43 +r13 0x2c 44 +r14 0x8b 139 +r15 0x1 1 +rip 0x420240 0x420240 +eflags 0x10256 [ PF AF ZF IF RF ] +cs 0x33 51 +ss 0x2b 43 +ds 0x0 0 +es 0x0 0 +fs 0x0 0 +gs 0x0 0 +Dump of assembler code for function rxvt_term::selection_delimit_word(page_dirn, row_col_t const*, row_col_t*): + 0x00000000004201d0 <+0>: push %r15 + 0x00000000004201d2 <+2>: push %r14 + 0x00000000004201d4 <+4>: push %r13 + 0x00000000004201d6 <+6>: push %r12 + 0x00000000004201d8 <+8>: push %rbp + 0x00000000004201d9 <+9>: mov %esi,%ebp + 0x00000000004201db <+11>: push %rbx + 0x00000000004201dc <+12>: mov %rdi,%rbx + 0x00000000004201df <+15>: sub $0x38,%rsp + 0x00000000004201e3 <+19>: test %esi,%esi + 0x00000000004201e5 <+21>: mov %rcx,0x20(%rsp) + 0x00000000004201ea <+26>: jne 0x4203b0 + 0x00000000004201f0 <+32>: mov 0x44(%rdi),%eax + 0x00000000004201f3 <+35>: xor %r14d,%r14d + 0x00000000004201f6 <+38>: mov $0xffffffff,%r15d + 0x00000000004201fc <+44>: sub $0x1,%eax + 0x00000000004201ff <+47>: mov %eax,0x2c(%rsp) + 0x0000000000420203 <+51>: mov 0x4(%rdx),%eax + 0x0000000000420206 <+54>: xor %r12d,%r12d + 0x0000000000420209 <+57>: mov (%rdx),%r13d + 0x000000000042020c <+60>: mov 0x38(%rbx),%ecx + 0x000000000042020f <+63>: mov 0x1d0(%rbx),%r11 + 0x0000000000420216 <+70>: test %eax,%eax + 0x0000000000420218 <+72>: cmovns %eax,%r12d + 0x000000000042021c <+76>: mov 0x3c(%rbx),%eax + 0x000000000042021f <+79>: add %r13d,%eax + 0x0000000000420222 <+82>: add %ecx,%eax + 0x0000000000420224 <+84>: mov %eax,%edx + 0x0000000000420226 <+86>: sar $0x1f,%edx + 0x0000000000420229 <+89>: idiv %ecx + 0x000000000042022b <+91>: movslq %edx,%rdx + 0x000000000042022e <+94>: lea (%rdx,%rdx,2),%rax + 0x0000000000420232 <+98>: movslq %r12d,%rdx + 0x0000000000420235 <+101>: lea (%r11,%rax,8),%rax + 0x0000000000420239 <+105>: mov (%rax),%rcx + 0x000000000042023c <+108>: lea (%rcx,%rdx,2),%rdx +=> 0x0000000000420240 <+112>: movzwl (%rdx),%edi + 0x0000000000420243 <+115>: mov %rdx,0x8(%rsp) + 0x0000000000420248 <+120>: callq 0x428ef0 + 0x000000000042024d <+125>: test %al,%al + 0x000000000042024f <+127>: movl $0x2,0x14(%rsp) + 0x0000000000420257 <+135>: mov 0x8(%rsp),%rdx + 0x000000000042025c <+140>: jne 0x420274 + 0x000000000042025e <+142>: movzwl (%rdx),%esi + 0x0000000000420261 <+145>: movl $0x0,0x14(%rsp) + 0x0000000000420269 <+153>: cmp $0xff,%si + 0x000000000042026e <+158>: jbe 0x420428 + 0x0000000000420274 <+164>: movslq %r15d,%rax + 0x0000000000420277 <+167>: add %rax,%rax + 0x000000000042027a <+170>: mov %rax,0x18(%rsp) + 0x000000000042027f <+175>: cmp %r14d,%r12d + 0x0000000000420282 <+178>: je 0x4202f8 + 0x0000000000420284 <+180>: add 0x18(%rsp),%rdx + 0x0000000000420289 <+185>: movzwl (%rdx),%edi + 0x000000000042028c <+188>: cmp $0xffff,%di + 0x0000000000420290 <+192>: je 0x4202f0 + 0x0000000000420292 <+194>: movzwl %di,%edi + 0x0000000000420295 <+197>: mov %rdx,0x8(%rsp) + 0x000000000042029a <+202>: callq 0x428ef0 + 0x000000000042029f <+207>: test %al,%al + 0x00000000004202a1 <+209>: mov $0x2,%ecx + 0x00000000004202a6 <+214>: mov 0x8(%rsp),%rdx + 0x00000000004202ab <+219>: jne 0x4202bd + 0x00000000004202ad <+221>: movzwl (%rdx),%esi + 0x00000000004202b0 <+224>: xor %cl,%cl + 0x00000000004202b2 <+226>: cmp $0xff,%si + 0x00000000004202b7 <+231>: jbe 0x420400 + 0x00000000004202bd <+237>: cmp %ecx,0x14(%rsp) + 0x00000000004202c1 <+241>: je 0x4202f0 + 0x00000000004202c3 <+243>: mov 0x20(%rsp),%rdx + 0x00000000004202c8 <+248>: xor %eax,%eax + 0x00000000004202ca <+250>: cmp $0x1,%ebp + 0x00000000004202cd <+253>: sete %al + 0x00000000004202d0 <+256>: add %eax,%r12d + 0x00000000004202d3 <+259>: mov %r13d,(%rdx) + 0x00000000004202d6 <+262>: mov %r12d,0x4(%rdx) + 0x00000000004202da <+266>: add $0x38,%rsp + 0x00000000004202de <+270>: pop %rbx + 0x00000000004202df <+271>: pop %rbp + 0x00000000004202e0 <+272>: pop %r12 + 0x00000000004202e2 <+274>: pop %r13 + 0x00000000004202e4 <+276>: pop %r14 + 0x00000000004202e6 <+278>: pop %r15 + 0x00000000004202e8 <+280>: retq + 0x00000000004202e9 <+281>: nopl 0x0(%rax) + 0x00000000004202f0 <+288>: add %r15d,%r12d + 0x00000000004202f3 <+291>: cmp %r14d,%r12d + 0x00000000004202f6 <+294>: jne 0x420284 + 0x00000000004202f8 <+296>: cmp 0x2c(%rsp),%r13d + 0x00000000004202fd <+301>: je 0x4202c3 + 0x00000000004202ff <+303>: test %ebp,%ebp + 0x0000000000420301 <+305>: mov 0x3c(%rbx),%edi + 0x0000000000420304 <+308>: mov %r13d,%edx + 0x0000000000420307 <+311>: sete %r8b + 0x000000000042030b <+315>: mov 0x38(%rbx),%ecx + 0x000000000042030e <+318>: mov 0x1d0(%rbx),%rsi + 0x0000000000420315 <+325>: movzbl %r8b,%eax + 0x0000000000420319 <+329>: sub %eax,%edx + 0x000000000042031b <+331>: mov %edx,%eax + 0x000000000042031d <+333>: add %edi,%eax + 0x000000000042031f <+335>: add %ecx,%eax + 0x0000000000420321 <+337>: mov %eax,%edx + 0x0000000000420323 <+339>: sar $0x1f,%edx + 0x0000000000420326 <+342>: idiv %ecx + 0x0000000000420328 <+344>: movslq %edx,%rdx + 0x000000000042032b <+347>: lea (%rdx,%rdx,2),%rax + 0x000000000042032f <+351>: testb $0x1,0x14(%rsi,%rax,8) + 0x0000000000420334 <+356>: je 0x4202c3 + 0x0000000000420336 <+358>: lea 0x0(%r13,%r15,1),%eax + 0x000000000042033b <+363>: xor %r12d,%r12d + 0x000000000042033e <+366>: test %r8b,%r8b + 0x0000000000420341 <+369>: mov %eax,0x28(%rsp) + 0x0000000000420345 <+373>: je 0x42034f + 0x0000000000420347 <+375>: mov 0x14(%rbx),%r12d + 0x000000000042034b <+379>: sub $0x1,%r12d + 0x000000000042034f <+383>: mov 0x28(%rsp),%eax + 0x0000000000420353 <+387>: add %edi,%eax + 0x0000000000420355 <+389>: add %ecx,%eax + 0x0000000000420357 <+391>: mov %eax,%edx + 0x0000000000420359 <+393>: sar $0x1f,%edx + 0x000000000042035c <+396>: idiv %ecx + 0x000000000042035e <+398>: movslq %edx,%rdx + 0x0000000000420361 <+401>: lea (%rdx,%rdx,2),%rax + 0x0000000000420365 <+405>: mov (%rsi,%rax,8),%rax + 0x0000000000420369 <+409>: test %rax,%rax + 0x000000000042036c <+412>: je 0x4203a2 + 0x000000000042036e <+414>: movslq %r12d,%rdx + 0x0000000000420371 <+417>: lea (%rax,%rdx,2),%rdx + 0x0000000000420375 <+421>: movzwl (%rdx),%edi + 0x0000000000420378 <+424>: mov %rdx,0x8(%rsp) + 0x000000000042037d <+429>: callq 0x428ef0 + 0x0000000000420382 <+434>: test %al,%al + 0x0000000000420384 <+436>: mov $0x2,%ecx + 0x0000000000420389 <+441>: mov 0x8(%rsp),%rdx + 0x000000000042038e <+446>: jne 0x42039c + 0x0000000000420390 <+448>: movzwl (%rdx),%esi + 0x0000000000420393 <+451>: xor %cl,%cl + 0x0000000000420395 <+453>: cmp $0xff,%si + 0x000000000042039a <+458>: jbe 0x4203d0 + 0x000000000042039c <+460>: cmp %ecx,0x14(%rsp) + 0x00000000004203a0 <+464>: je 0x4203f2 + 0x00000000004203a2 <+466>: mov %r14d,%r12d + 0x00000000004203a5 <+469>: jmpq 0x4202c3 + 0x00000000004203aa <+474>: nopw 0x0(%rax,%rax,1) + 0x00000000004203b0 <+480>: mov 0x18(%rdi),%eax + 0x00000000004203b3 <+483>: mov 0x14(%rdi),%r14d + 0x00000000004203b7 <+487>: mov $0x1,%r15d + 0x00000000004203bd <+493>: mov %eax,0x2c(%rsp) + 0x00000000004203c1 <+497>: sub $0x1,%r14d + 0x00000000004203c5 <+501>: jmpq 0x420203 + 0x00000000004203ca <+506>: nopw 0x0(%rax,%rax,1) + 0x00000000004203d0 <+512>: mov 0x17c0(%rbx),%rdi + 0x00000000004203d7 <+519>: movzwl %si,%esi + 0x00000000004203da <+522>: callq 0x4074a0 + 0x00000000004203df <+527>: xor %ecx,%ecx + 0x00000000004203e1 <+529>: test %rax,%rax + 0x00000000004203e4 <+532>: mov 0x8(%rsp),%rdx + 0x00000000004203e9 <+537>: setne %cl + 0x00000000004203ec <+540>: cmp %ecx,0x14(%rsp) + 0x00000000004203f0 <+544>: jne 0x4203a2 + 0x00000000004203f2 <+546>: mov 0x28(%rsp),%r13d + 0x00000000004203f7 <+551>: jmpq 0x42027f + 0x00000000004203fc <+556>: nopl 0x0(%rax) + 0x0000000000420400 <+560>: mov 0x17c0(%rbx),%rdi + 0x0000000000420407 <+567>: movzwl %si,%esi + 0x000000000042040a <+570>: callq 0x4074a0 + 0x000000000042040f <+575>: xor %ecx,%ecx + 0x0000000000420411 <+577>: test %rax,%rax + 0x0000000000420414 <+580>: mov 0x8(%rsp),%rdx + 0x0000000000420419 <+585>: setne %cl + 0x000000000042041c <+588>: jmpq 0x4202bd + 0x0000000000420421 <+593>: nopl 0x0(%rax) + 0x0000000000420428 <+600>: mov 0x17c0(%rbx),%rdi + 0x000000000042042f <+607>: movzwl %si,%esi + 0x0000000000420432 <+610>: callq 0x4074a0 + 0x0000000000420437 <+615>: test %rax,%rax + 0x000000000042043a <+618>: mov 0x8(%rsp),%rdx + 0x000000000042043f <+623>: setne %al + 0x0000000000420442 <+626>: movzbl %al,%eax + 0x0000000000420445 <+629>: mov %eax,0x14(%rsp) + 0x0000000000420449 <+633>: jmpq 0x420274 +End of assembler dump. diff --git a/tests/p_abrt-cli/problem_dir/backtrace_rating b/tests/p_abrt-cli/problem_dir/backtrace_rating new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/backtrace_rating @@ -0,0 +1 @@ +1 diff --git a/tests/p_abrt-cli/problem_dir/cmdline b/tests/p_abrt-cli/problem_dir/cmdline new file mode 100644 index 0000000..f97e476 --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/cmdline @@ -0,0 +1 @@ +urxvtd -q -o -f \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/component b/tests/p_abrt-cli/problem_dir/component new file mode 100644 index 0000000..0b27954 --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/component @@ -0,0 +1 @@ +rxvt-unicode \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/crash_function b/tests/p_abrt-cli/problem_dir/crash_function new file mode 100644 index 0000000..d41666a --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/crash_function @@ -0,0 +1 @@ +rxvt_term::selection_delimit_word \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/dso_list b/tests/p_abrt-cli/problem_dir/dso_list new file mode 100644 index 0000000..6f2c6fa --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/dso_list @@ -0,0 +1,40 @@ +/lib64/libcrypt-2.14.so glibc-2.14-4.x86_64 (Fedora Project) 1310382635 +/lib64/libfreebl3.so nss-softokn-freebl-3.12.10-2.fc15.x86_64 (Fedora Project) 1310382622 +/lib64/libgthread-2.0.so.0.2800.8 glib2-2.28.8-1.fc15.x86_64 (Fedora Project) 1310382640 +/usr/lib64/libpng12.so.0.46.0 libpng-2:1.2.46-1.fc15.x86_64 (Fedora Project) 1311205059 +/usr/lib64/perl5/CORE/libperl.so perl-libs-4:5.12.4-159.fc15.x86_64 (Fedora Project) 1310382649 +/lib64/libz.so.1.2.5 zlib-1.2.5-3.fc15.x86_64 (Fedora Project) 1310382636 +/usr/lib/locale/locale-archive glibc-common-2.14-4.x86_64 (Fedora Project) 1310382628 +/usr/lib64/libXcursor.so.1.0.2 libXcursor-1.1.11-3.fc15.x86_64 (Fedora Project) 1310382891 +/usr/lib64/libxcb.so.1.1.0 libxcb-1.7-2.fc15.x86_64 (Fedora Project) 1310382643 +/usr/lib64/libfontconfig.so.1.4.4 fontconfig-2.8.0-3.fc15.x86_64 (Fedora Project) 1310382676 +/lib64/libdl-2.14.so glibc-2.14-4.x86_64 (Fedora Project) 1310382635 +/lib64/libgio-2.0.so.0.2800.8 glib2-2.28.8-1.fc15.x86_64 (Fedora Project) 1310382640 +/usr/bin/urxvtd rxvt-unicode-9.12-2.fc15.x86_64 (Fedora Project) 1311324474 +/lib64/libm-2.14.so glibc-2.14-4.x86_64 (Fedora Project) 1310382635 +/lib64/ld-2.14.so glibc-2.14-4.x86_64 (Fedora Project) 1310382635 +/usr/lib64/freetype-freeworld/libfreetype.so.6.6.2 freetype-freeworld-2.4.4-3.fc15.x86_64 (RPM Fusion) 1310418014 +/lib64/libutil-2.14.so glibc-2.14-4.x86_64 (Fedora Project) 1310382635 +/lib64/libselinux.so.1 libselinux-2.0.99-4.fc15.x86_64 (Fedora Project) 1310382639 +/usr/share/fonts/dejavu/DejaVuSansMono.ttf dejavu-sans-mono-fonts-2.33-1.fc15.noarch (Fedora Project) 1310382882 +/lib64/libgmodule-2.0.so.0.2800.8 glib2-2.28.8-1.fc15.x86_64 (Fedora Project) 1310382640 +/usr/lib64/libXfixes.so.3.1.0 libXfixes-5.0-1.fc15.x86_64 (Fedora Project) 1310382889 +/usr/lib64/gconv/gconv-modules.cache glibc-2.14-4.x86_64 (Fedora Project) 1310382635 +/usr/lib64/libXrender.so.1.3.0 libXrender-0.9.6-2.fc15.x86_64 (Fedora Project) 1310382889 +/lib64/libc-2.14.so glibc-2.14-4.x86_64 (Fedora Project) 1310382635 +/usr/lib64/libXau.so.6.0.0 libXau-1.0.6-2.fc15.x86_64 (Fedora Project) 1310382642 +/usr/lib64/libXft.so.2.2.0 libXft-2.2.0-2.fc15.x86_64 (Fedora Project) 1310382895 +/usr/lib64/libstdc++.so.6.0.16 libstdc++-4.6.0-9.fc15.x86_64 (Fedora Project) 1310382636 +/lib64/libgcc_s-4.6.0-20110530.so.1 libgcc-4.6.0-9.fc15.x86_64 (Fedora Project) 1310382602 +/usr/lib64/perl5/vendor_perl/auto/List/Util/Util.so perl-Scalar-List-Utils-1.23-1.fc15.x86_64 (Fedora Project) 1310382648 +/lib64/libgobject-2.0.so.0.2800.8 glib2-2.28.8-1.fc15.x86_64 (Fedora Project) 1310382640 +/lib64/librt-2.14.so glibc-2.14-4.x86_64 (Fedora Project) 1310382635 +/lib64/libresolv-2.14.so glibc-2.14-4.x86_64 (Fedora Project) 1310382635 +/lib64/libglib-2.0.so.0.2800.8 glib2-2.28.8-1.fc15.x86_64 (Fedora Project) 1310382640 +/lib64/libnsl-2.14.so glibc-2.14-4.x86_64 (Fedora Project) 1310382635 +/lib64/libexpat.so.1.5.2 expat-2.0.1-11.fc15.x86_64 (Fedora Project) 1310382637 +/usr/lib64/libX11.so.6.3.0 libX11-1.4.3-1.fc15.x86_64 (Fedora Project) 1310382888 +/usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf dejavu-sans-mono-fonts-2.33-1.fc15.noarch (Fedora Project) 1310382882 +/usr/lib64/libgdk_pixbuf-2.0.so.0.2300.3 gdk-pixbuf2-2.23.3-2.fc15.x86_64 (Fedora Project) 1310382889 +/lib64/libnss_files-2.14.so glibc-2.14-4.x86_64 (Fedora Project) 1310382635 +/lib64/libpthread-2.14.so glibc-2.14-4.x86_64 (Fedora Project) 1310382635 diff --git a/tests/p_abrt-cli/problem_dir/duphash b/tests/p_abrt-cli/problem_dir/duphash new file mode 100644 index 0000000..b3699c3 --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/duphash @@ -0,0 +1 @@ +bbfe66399cc9cb8ba647414e33c5d1e4ad82b511 \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/executable b/tests/p_abrt-cli/problem_dir/executable new file mode 100644 index 0000000..7b9643b --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/executable @@ -0,0 +1 @@ +/usr/bin/urxvtd \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/hostname b/tests/p_abrt-cli/problem_dir/hostname new file mode 100644 index 0000000..7646f7c --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/hostname @@ -0,0 +1 @@ +fluffy \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/kernel b/tests/p_abrt-cli/problem_dir/kernel new file mode 100644 index 0000000..e47f395 --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/kernel @@ -0,0 +1 @@ +2.6.38.8-35.fc15.x86_64 \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/maps b/tests/p_abrt-cli/problem_dir/maps new file mode 100644 index 0000000..af75592 --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/maps @@ -0,0 +1,196 @@ +00400000-00514000 r-xp 00000000 fd:02 2528625 /usr/bin/urxvtd +00713000-0071f000 rw-p 00113000 fd:02 2528625 /usr/bin/urxvtd +0091e000-00923000 rw-p 0011e000 fd:02 2528625 /usr/bin/urxvtd +010ee000-0148c000 rw-p 00000000 00:00 0 [heap] +353be00000-353be1f000 r-xp 00000000 fd:02 918046 /lib64/ld-2.14.so +353c01e000-353c01f000 r--p 0001e000 fd:02 918046 /lib64/ld-2.14.so +353c01f000-353c020000 rw-p 0001f000 fd:02 918046 /lib64/ld-2.14.so +353c020000-353c021000 rw-p 00000000 00:00 0 +353c200000-353c315000 r-xp 00000000 fd:02 918061 /lib64/libglib-2.0.so.0.2800.8 +353c315000-353c515000 ---p 00115000 fd:02 918061 /lib64/libglib-2.0.so.0.2800.8 +353c515000-353c516000 rw-p 00115000 fd:02 918061 /lib64/libglib-2.0.so.0.2800.8 +353c516000-353c517000 rw-p 00000000 00:00 0 +353c600000-353c78f000 r-xp 00000000 fd:02 918047 /lib64/libc-2.14.so +353c78f000-353c98e000 ---p 0018f000 fd:02 918047 /lib64/libc-2.14.so +353c98e000-353c992000 r--p 0018e000 fd:02 918047 /lib64/libc-2.14.so +353c992000-353c993000 rw-p 00192000 fd:02 918047 /lib64/libc-2.14.so +353c993000-353c999000 rw-p 00000000 00:00 0 +353ca00000-353ca16000 r-xp 00000000 fd:02 918048 /lib64/libpthread-2.14.so +353ca16000-353cc15000 ---p 00016000 fd:02 918048 /lib64/libpthread-2.14.so +353cc15000-353cc16000 r--p 00015000 fd:02 918048 /lib64/libpthread-2.14.so +353cc16000-353cc17000 rw-p 00016000 fd:02 918048 /lib64/libpthread-2.14.so +353cc17000-353cc1b000 rw-p 00000000 00:00 0 +353ce00000-353ce02000 r-xp 00000000 fd:02 918050 /lib64/libdl-2.14.so +353ce02000-353d002000 ---p 00002000 fd:02 918050 /lib64/libdl-2.14.so +353d002000-353d003000 r--p 00002000 fd:02 918050 /lib64/libdl-2.14.so +353d003000-353d004000 rw-p 00003000 fd:02 918050 /lib64/libdl-2.14.so +353d200000-353d207000 r-xp 00000000 fd:02 918049 /lib64/librt-2.14.so +353d207000-353d406000 ---p 00007000 fd:02 918049 /lib64/librt-2.14.so +353d406000-353d407000 r--p 00006000 fd:02 918049 /lib64/librt-2.14.so +353d407000-353d408000 rw-p 00007000 fd:02 918049 /lib64/librt-2.14.so +353d600000-353d683000 r-xp 00000000 fd:02 918069 /lib64/libm-2.14.so +353d683000-353d882000 ---p 00083000 fd:02 918069 /lib64/libm-2.14.so +353d882000-353d883000 r--p 00082000 fd:02 918069 /lib64/libm-2.14.so +353d883000-353d884000 rw-p 00083000 fd:02 918069 /lib64/libm-2.14.so +353da00000-353da16000 r-xp 00000000 fd:02 918065 /lib64/libz.so.1.2.5 +353da16000-353dc16000 ---p 00016000 fd:02 918065 /lib64/libz.so.1.2.5 +353dc16000-353dc17000 rw-p 00016000 fd:02 918065 /lib64/libz.so.1.2.5 +353de00000-353de15000 r-xp 00000000 fd:02 918070 /lib64/libgcc_s-4.6.0-20110530.so.1 +353de15000-353e014000 ---p 00015000 fd:02 918070 /lib64/libgcc_s-4.6.0-20110530.so.1 +353e014000-353e015000 rw-p 00014000 fd:02 918070 /lib64/libgcc_s-4.6.0-20110530.so.1 +353e200000-353e21d000 r-xp 00000000 fd:02 918056 /lib64/libselinux.so.1 +353e21d000-353e41c000 ---p 0001d000 fd:02 918056 /lib64/libselinux.so.1 +353e41c000-353e41d000 r--p 0001c000 fd:02 918056 /lib64/libselinux.so.1 +353e41d000-353e41e000 rw-p 0001d000 fd:02 918056 /lib64/libselinux.so.1 +353e41e000-353e41f000 rw-p 00000000 00:00 0 +353e600000-353e617000 r-xp 00000000 fd:02 918055 /lib64/libresolv-2.14.so +353e617000-353e817000 ---p 00017000 fd:02 918055 /lib64/libresolv-2.14.so +353e817000-353e818000 r--p 00017000 fd:02 918055 /lib64/libresolv-2.14.so +353e818000-353e819000 rw-p 00018000 fd:02 918055 /lib64/libresolv-2.14.so +353e819000-353e81b000 rw-p 00000000 00:00 0 +353ea00000-353ea04000 r-xp 00000000 fd:02 918062 /lib64/libgthread-2.0.so.0.2800.8 +353ea04000-353ec03000 ---p 00004000 fd:02 918062 /lib64/libgthread-2.0.so.0.2800.8 +353ec03000-353ec04000 rw-p 00003000 fd:02 918062 /lib64/libgthread-2.0.so.0.2800.8 +353ee00000-353ee4c000 r-xp 00000000 fd:02 918063 /lib64/libgobject-2.0.so.0.2800.8 +353ee4c000-353f04b000 ---p 0004c000 fd:02 918063 /lib64/libgobject-2.0.so.0.2800.8 +353f04b000-353f04d000 rw-p 0004b000 fd:02 918063 /lib64/libgobject-2.0.so.0.2800.8 +353f04d000-353f04e000 rw-p 00000000 00:00 0 +353f200000-353f203000 r-xp 00000000 fd:02 918064 /lib64/libgmodule-2.0.so.0.2800.8 +353f203000-353f402000 ---p 00003000 fd:02 918064 /lib64/libgmodule-2.0.so.0.2800.8 +353f402000-353f403000 rw-p 00002000 fd:02 918064 /lib64/libgmodule-2.0.so.0.2800.8 +353f600000-353f721000 r-xp 00000000 fd:02 918066 /lib64/libgio-2.0.so.0.2800.8 +353f721000-353f920000 ---p 00121000 fd:02 918066 /lib64/libgio-2.0.so.0.2800.8 +353f920000-353f926000 rw-p 00120000 fd:02 918066 /lib64/libgio-2.0.so.0.2800.8 +353f926000-353f927000 rw-p 00000000 00:00 0 +353fa00000-353fb39000 r-xp 00000000 fd:02 2510411 /usr/lib64/libX11.so.6.3.0 +353fb39000-353fd38000 ---p 00139000 fd:02 2510411 /usr/lib64/libX11.so.6.3.0 +353fd38000-353fd3e000 rw-p 00138000 fd:02 2510411 /usr/lib64/libX11.so.6.3.0 +353fe00000-353fe1b000 r-xp 00000000 fd:02 2510410 /usr/lib64/libxcb.so.1.1.0 +353fe1b000-354001a000 ---p 0001b000 fd:02 2510410 /usr/lib64/libxcb.so.1.1.0 +354001a000-354001b000 rw-p 0001a000 fd:02 2510410 /usr/lib64/libxcb.so.1.1.0 +3540200000-3540202000 r-xp 00000000 fd:02 2510409 /usr/lib64/libXau.so.6.0.0 +3540202000-3540402000 ---p 00002000 fd:02 2510409 /usr/lib64/libXau.so.6.0.0 +3540402000-3540403000 rw-p 00002000 fd:02 2510409 /usr/lib64/libXau.so.6.0.0 +3540600000-3540627000 r-xp 00000000 fd:02 918073 /lib64/libexpat.so.1.5.2 +3540627000-3540826000 ---p 00027000 fd:02 918073 /lib64/libexpat.so.1.5.2 +3540826000-3540829000 rw-p 00026000 fd:02 918073 /lib64/libexpat.so.1.5.2 +3541e00000-3541e09000 r-xp 00000000 fd:02 2510412 /usr/lib64/libXrender.so.1.3.0 +3541e09000-3542009000 ---p 00009000 fd:02 2510412 /usr/lib64/libXrender.so.1.3.0 +3542009000-354200a000 rw-p 00009000 fd:02 2510412 /usr/lib64/libXrender.so.1.3.0 +3542200000-3542205000 r-xp 00000000 fd:02 2510420 /usr/lib64/libXfixes.so.3.1.0 +3542205000-3542405000 ---p 00005000 fd:02 2510420 /usr/lib64/libXfixes.so.3.1.0 +3542405000-3542406000 rw-p 00005000 fd:02 2510420 /usr/lib64/libXfixes.so.3.1.0 +3544a00000-3544a09000 r-xp 00000000 fd:02 2510421 /usr/lib64/libXcursor.so.1.0.2 +3544a09000-3544c09000 ---p 00009000 fd:02 2510421 /usr/lib64/libXcursor.so.1.0.2 +3544c09000-3544c0a000 rw-p 00009000 fd:02 2510421 /usr/lib64/libXcursor.so.1.0.2 +3546600000-354665c000 r-xp 00000000 fd:02 918051 /lib64/libfreebl3.so +354665c000-354685b000 ---p 0005c000 fd:02 918051 /lib64/libfreebl3.so +354685b000-354685d000 rw-p 0005b000 fd:02 918051 /lib64/libfreebl3.so +354685d000-3546861000 rw-p 00000000 00:00 0 +3546e00000-3546e08000 r-xp 00000000 fd:02 918052 /lib64/libcrypt-2.14.so +3546e08000-3547007000 ---p 00008000 fd:02 918052 /lib64/libcrypt-2.14.so +3547007000-3547008000 r--p 00007000 fd:02 918052 /lib64/libcrypt-2.14.so +3547008000-3547009000 rw-p 00008000 fd:02 918052 /lib64/libcrypt-2.14.so +3547009000-3547037000 rw-p 00000000 00:00 0 +3548e00000-3548ee8000 r-xp 00000000 fd:02 2493423 /usr/lib64/libstdc++.so.6.0.16 +3548ee8000-35490e8000 ---p 000e8000 fd:02 2493423 /usr/lib64/libstdc++.so.6.0.16 +35490e8000-35490f0000 r--p 000e8000 fd:02 2493423 /usr/lib64/libstdc++.so.6.0.16 +35490f0000-35490f2000 rw-p 000f0000 fd:02 2493423 /usr/lib64/libstdc++.so.6.0.16 +35490f2000-3549107000 rw-p 00000000 00:00 0 +354e600000-354e602000 r-xp 00000000 fd:02 918067 /lib64/libutil-2.14.so +354e602000-354e801000 ---p 00002000 fd:02 918067 /lib64/libutil-2.14.so +354e801000-354e802000 r--p 00001000 fd:02 918067 /lib64/libutil-2.14.so +354e802000-354e803000 rw-p 00002000 fd:02 918067 /lib64/libutil-2.14.so +3550600000-3550616000 r-xp 00000000 fd:02 918088 /lib64/libnsl-2.14.so +3550616000-3550815000 ---p 00016000 fd:02 918088 /lib64/libnsl-2.14.so +3550815000-3550816000 r--p 00015000 fd:02 918088 /lib64/libnsl-2.14.so +3550816000-3550817000 rw-p 00016000 fd:02 918088 /lib64/libnsl-2.14.so +3550817000-3550819000 rw-p 00000000 00:00 0 +35a4800000-35a4826000 r-xp 00000000 fd:02 2503123 /usr/lib64/libpng12.so.0.46.0 +35a4826000-35a4a26000 ---p 00026000 fd:02 2503123 /usr/lib64/libpng12.so.0.46.0 +35a4a26000-35a4a27000 rw-p 00026000 fd:02 2503123 /usr/lib64/libpng12.so.0.46.0 +35a4c00000-35a4c21000 r-xp 00000000 fd:02 2529059 /usr/lib64/libgdk_pixbuf-2.0.so.0.2300.3 +35a4c21000-35a4e21000 ---p 00021000 fd:02 2529059 /usr/lib64/libgdk_pixbuf-2.0.so.0.2300.3 +35a4e21000-35a4e22000 rw-p 00021000 fd:02 2529059 /usr/lib64/libgdk_pixbuf-2.0.so.0.2300.3 +3b7ac00000-3b7ac97000 r-xp 00000000 fd:02 2650372 /usr/lib64/freetype-freeworld/libfreetype.so.6.6.2 +3b7ac97000-3b7ae96000 ---p 00097000 fd:02 2650372 /usr/lib64/freetype-freeworld/libfreetype.so.6.6.2 +3b7ae96000-3b7ae9c000 rw-p 00096000 fd:02 2650372 /usr/lib64/freetype-freeworld/libfreetype.so.6.6.2 +3b7b000000-3b7b034000 r-xp 00000000 fd:02 2518521 /usr/lib64/libfontconfig.so.1.4.4 +3b7b034000-3b7b233000 ---p 00034000 fd:02 2518521 /usr/lib64/libfontconfig.so.1.4.4 +3b7b233000-3b7b235000 rw-p 00033000 fd:02 2518521 /usr/lib64/libfontconfig.so.1.4.4 +3b7b400000-3b7b414000 r-xp 00000000 fd:02 2529043 /usr/lib64/libXft.so.2.2.0 +3b7b414000-3b7b613000 ---p 00014000 fd:02 2529043 /usr/lib64/libXft.so.2.2.0 +3b7b613000-3b7b614000 rw-p 00013000 fd:02 2529043 /usr/lib64/libXft.so.2.2.0 +3b83600000-3b8376b000 r-xp 00000000 fd:02 2907405 /usr/lib64/perl5/CORE/libperl.so +3b8376b000-3b8396a000 ---p 0016b000 fd:02 2907405 /usr/lib64/perl5/CORE/libperl.so +3b8396a000-3b83973000 rw-p 0016a000 fd:02 2907405 /usr/lib64/perl5/CORE/libperl.so +7f7ba7598000-7f7ba75a4000 r-xp 00000000 fd:02 917534 /lib64/libnss_files-2.14.so +7f7ba75a4000-7f7ba77a3000 ---p 0000c000 fd:02 917534 /lib64/libnss_files-2.14.so +7f7ba77a3000-7f7ba77a4000 r--p 0000b000 fd:02 917534 /lib64/libnss_files-2.14.so +7f7ba77a4000-7f7ba77a5000 rw-p 0000c000 fd:02 917534 /lib64/libnss_files-2.14.so +7f7ba77a5000-7f7ba77f2000 rw-p 00000000 00:00 0 +7f7ba782d000-7f7ba787a000 r--p 00000000 fd:02 2762087 /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf +7f7ba787a000-7f7ba78cc000 r--p 00000000 fd:02 2762090 /usr/share/fonts/dejavu/DejaVuSansMono.ttf +7f7ba78cc000-7f7ba78ce000 r--s 00000000 fd:02 3162805 /var/cache/fontconfig/7e24c1c3b25754604c4f46a5df32e5c1-le64.cache-3 +7f7ba78ce000-7f7ba78d0000 r--s 00000000 fd:02 3156198 /var/cache/fontconfig/3ad840390a44011d5fc042cdf95ddcfe-le64.cache-3 +7f7ba78d0000-7f7ba78d4000 r--s 00000000 fd:02 3162779 /var/cache/fontconfig/87f5e051180a7a75f16eb6fe7dbd3749-le64.cache-3 +7f7ba78d4000-7f7ba78dd000 r--s 00000000 fd:02 3156202 /var/cache/fontconfig/b79f3aaa7d385a141ab53ec885cc22a8-le64.cache-3 +7f7ba78dd000-7f7ba78e0000 r--s 00000000 fd:02 3162822 /var/cache/fontconfig/0b1bcc92b4d25cc154d77dafe3bceaa0-le64.cache-3 +7f7ba78e0000-7f7ba78e2000 r--s 00000000 fd:02 3162821 /var/cache/fontconfig/afda88ba2c9de689dfd6d8c6d2e4e427-le64.cache-3 +7f7ba78e2000-7f7ba78e3000 r--s 00000000 fd:03 131441 /home/rmarko/.fontconfig/54091e63ccbc9b283e4dea7ca32e5491-le64.cache-3 +7f7ba78e3000-7f7ba78e7000 r--s 00000000 fd:03 131428 /home/rmarko/.fontconfig/68fe5182b80ae2709eaaf65e42dcaf33-le64.cache-3 +7f7ba78e7000-7f7ba78e8000 r--s 00000000 fd:03 131426 /home/rmarko/.fontconfig/ac1b9faef01ec4feb36ba76b98842887-le64.cache-3 +7f7ba78e8000-7f7ba78eb000 r--s 00000000 fd:03 131425 /home/rmarko/.fontconfig/ebb99784de50d4c4223a6523ac9c5d63-le64.cache-3 +7f7ba78eb000-7f7ba78f2000 r--s 00000000 fd:03 131439 /home/rmarko/.fontconfig/8034b44ea17662c765f963e9b699c5b6-le64.cache-3 +7f7ba78f2000-7f7ba78f3000 r--s 00000000 fd:03 131471 /home/rmarko/.fontconfig/ad3af325ad4e0a82eb2b3e930ff23cd5-le64.cache-3 +7f7ba78f3000-7f7ba78f5000 r--s 00000000 fd:03 131493 /home/rmarko/.fontconfig/0c76f5ee3a101157014da521290d0599-le64.cache-3 +7f7ba78f5000-7f7ba78f8000 r--s 00000000 fd:02 3162813 /var/cache/fontconfig/2e1514a9fdd499050989183bb65136db-le64.cache-3 +7f7ba78f8000-7f7ba78fb000 r--s 00000000 fd:02 3162812 /var/cache/fontconfig/5c755b2f27115486aa6359c84dd3cbda-le64.cache-3 +7f7ba78fb000-7f7ba7901000 r--s 00000000 fd:02 3162811 /var/cache/fontconfig/75726aeed9fe8691fd29315754d820cc-le64.cache-3 +7f7ba7901000-7f7ba7903000 r--s 00000000 fd:02 3162810 /var/cache/fontconfig/3f821257dd33660ba7bbb45c32deb84c-le64.cache-3 +7f7ba7903000-7f7ba7905000 r--s 00000000 fd:02 3162809 /var/cache/fontconfig/830f035fa84a65ce80e050178dbb630d-le64.cache-3 +7f7ba7905000-7f7ba7906000 r--s 00000000 fd:02 3162808 /var/cache/fontconfig/81a173283b451552b599cfaafd6236bd-le64.cache-3 +7f7ba7906000-7f7ba7907000 r--s 00000000 fd:02 3162807 /var/cache/fontconfig/ac68f755438cc3dc5a526084839fc7ca-le64.cache-3 +7f7ba7907000-7f7ba7908000 r--s 00000000 fd:02 3162806 /var/cache/fontconfig/12513961c6e7090f8648812f9eaf65d6-le64.cache-3 +7f7ba7908000-7f7ba790a000 r--s 00000000 fd:02 3162803 /var/cache/fontconfig/e26bf336397aae6fcef4d3803472adec-le64.cache-3 +7f7ba790a000-7f7ba790b000 r--s 00000000 fd:02 3162802 /var/cache/fontconfig/a5c2dc934fad9bbf30c854216245519d-le64.cache-3 +7f7ba790b000-7f7ba790c000 r--s 00000000 fd:02 3162801 /var/cache/fontconfig/17e60ccdf2eb53b214a9a5d6663eb217-le64.cache-3 +7f7ba790c000-7f7ba790d000 r--s 00000000 fd:02 3146299 /var/cache/fontconfig/6fcb01a03a016cc71057b587cdea6709-le64.cache-3 +7f7ba790d000-7f7ba790e000 r--s 00000000 fd:02 3162799 /var/cache/fontconfig/2678730374f88f8c6b5c0192ab5a46db-le64.cache-3 +7f7ba790e000-7f7ba790f000 r--s 00000000 fd:02 3162798 /var/cache/fontconfig/46d51d90fe9d963f6f4186edb936a931-le64.cache-3 +7f7ba790f000-7f7ba7910000 r--s 00000000 fd:02 3162797 /var/cache/fontconfig/b887eea8f1b96e1d899b44ed6681fc27-le64.cache-3 +7f7ba7910000-7f7ba7911000 r--s 00000000 fd:02 3162796 /var/cache/fontconfig/860639f272b8b4b3094f9e399e41bccd-le64.cache-3 +7f7ba7911000-7f7ba7912000 r--s 00000000 fd:02 3162795 /var/cache/fontconfig/211368abcb0ff835c229ff05c9ec01dc-le64.cache-3 +7f7ba7912000-7f7ba7913000 r--s 00000000 fd:02 3162794 /var/cache/fontconfig/c46020d7221988a13df853d2b46304fc-le64.cache-3 +7f7ba7913000-7f7ba7914000 r--s 00000000 fd:02 3162793 /var/cache/fontconfig/fa2b533b7056bdadb961f088bc0a978b-le64.cache-3 +7f7ba7914000-7f7ba7915000 r--s 00000000 fd:02 3162792 /var/cache/fontconfig/df893b4576ad6107f9397134092c4059-le64.cache-3 +7f7ba7915000-7f7ba7916000 r--s 00000000 fd:02 3162791 /var/cache/fontconfig/900402270e15d763a6e008bb2d4c7686-le64.cache-3 +7f7ba7916000-7f7ba7917000 r--s 00000000 fd:02 3156052 /var/cache/fontconfig/47f48679023f44a4d1e44699a69464f6-le64.cache-3 +7f7ba7917000-7f7ba7918000 r--s 00000000 fd:02 3162789 /var/cache/fontconfig/2881ed3fd21ca306ddad6f9b0dd3189f-le64.cache-3 +7f7ba7918000-7f7ba7919000 r--s 00000000 fd:02 3162788 /var/cache/fontconfig/3c3fb04d32a5211b073874b125d29701-le64.cache-3 +7f7ba7919000-7f7ba791a000 r--s 00000000 fd:02 3162787 /var/cache/fontconfig/e61abf8156cc476151baa07d67337cae-le64.cache-3 +7f7ba791a000-7f7ba791f000 r--s 00000000 fd:02 3162786 /var/cache/fontconfig/b67b32625a2bb51b023d3814a918f351-le64.cache-3 +7f7ba791f000-7f7ba7923000 r--s 00000000 fd:02 3162785 /var/cache/fontconfig/d3379abda271c4acd2ad0c01f565d0b0-le64.cache-3 +7f7ba7923000-7f7ba7933000 r--s 00000000 fd:02 3162782 /var/cache/fontconfig/614d1caaa4d7914789410f6367de37ca-le64.cache-3 +7f7ba7933000-7f7ba793c000 r--s 00000000 fd:02 3162780 /var/cache/fontconfig/12b26b760a24f8b4feb03ad48a333a72-le64.cache-3 +7f7ba793c000-7f7ba7947000 r--s 00000000 fd:02 3162777 /var/cache/fontconfig/33315028185e8b9ecf55d3c7f93d9205-le64.cache-3 +7f7ba7947000-7f7ba794e000 r-xp 00000000 fd:02 2883650 /usr/lib64/perl5/vendor_perl/auto/List/Util/Util.so +7f7ba794e000-7f7ba7b4d000 ---p 00007000 fd:02 2883650 /usr/lib64/perl5/vendor_perl/auto/List/Util/Util.so +7f7ba7b4d000-7f7ba7b4e000 rw-p 00006000 fd:02 2883650 /usr/lib64/perl5/vendor_perl/auto/List/Util/Util.so +7f7ba7b4e000-7f7badf71000 r--p 00000000 fd:02 2491408 /usr/lib/locale/locale-archive +7f7badf71000-7f7badf80000 rw-p 00000000 00:00 0 +7f7badf82000-7f7badf87000 r--s 00000000 fd:02 3162784 /var/cache/fontconfig/46b47dbc682d2ca4191e148ea7bde7f2-le64.cache-3 +7f7badf87000-7f7badf88000 r--s 00000000 fd:02 3162783 /var/cache/fontconfig/b4d0b56f766d89640448751fcd18ec1e-le64.cache-3 +7f7badf88000-7f7badf89000 r--s 00000000 fd:02 3162781 /var/cache/fontconfig/27a26a6572d8db04e2609c64fb6f9476-le64.cache-3 +7f7badf89000-7f7badf90000 r--s 00000000 fd:02 3162776 /var/cache/fontconfig/928306c3ad40271d946e41014a49fc28-le64.cache-3 +7f7badf90000-7f7badf97000 r--s 00000000 fd:02 3162775 /var/cache/fontconfig/fa1582dab13e7e8e44e5a9424d309f0e-le64.cache-3 +7f7badf97000-7f7badf99000 r--s 00000000 fd:02 3162774 /var/cache/fontconfig/cf88f444488d569f9535e4f0ee8ed9a1-le64.cache-3 +7f7badf99000-7f7badf9c000 r--s 00000000 fd:02 3162773 /var/cache/fontconfig/e3ead4b767b8819993a6fa3ae306afa9-le64.cache-3 +7f7badf9c000-7f7badfa3000 r--s 00000000 fd:02 3162764 /var/cache/fontconfig/18db0204b1f108dd01663673626fcd3d-le64.cache-3 +7f7badfa3000-7f7badfa7000 r--s 00000000 fd:02 3162772 /var/cache/fontconfig/f5da82313d22ae5bf5bc6e539d256292-le64.cache-3 +7f7badfa7000-7f7badfa8000 r--s 00000000 fd:02 3162771 /var/cache/fontconfig/3640555adad8a8f6978400293cfce7ab-le64.cache-3 +7f7badfa8000-7f7badfaf000 r--s 00000000 fd:02 2491669 /usr/lib64/gconv/gconv-modules.cache +7f7badfaf000-7f7badfb0000 rw-p 00000000 00:00 0 +7fff728be000-7fff728df000 rw-p 00000000 00:00 0 [stack] +7fff72993000-7fff72994000 r-xp 00000000 00:00 0 [vdso] +ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] diff --git a/tests/p_abrt-cli/problem_dir/os_release b/tests/p_abrt-cli/problem_dir/os_release new file mode 100644 index 0000000..cd4dc97 --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/os_release @@ -0,0 +1 @@ +Fedora release 15 (Lovelock) \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/package b/tests/p_abrt-cli/problem_dir/package new file mode 100644 index 0000000..2493f30 --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/package @@ -0,0 +1 @@ +rxvt-unicode-9.12-2.fc15 \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/reason b/tests/p_abrt-cli/problem_dir/reason new file mode 100644 index 0000000..9567b2b --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/reason @@ -0,0 +1 @@ +Process /usr/bin/urxvtd was killed by signal 11 (SIGSEGV) \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/time b/tests/p_abrt-cli/problem_dir/time new file mode 100644 index 0000000..79313c0 --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/time @@ -0,0 +1 @@ +1312184367 \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/type b/tests/p_abrt-cli/problem_dir/type new file mode 100644 index 0000000..1ab966f --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/type @@ -0,0 +1 @@ +CCpp \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/uid b/tests/p_abrt-cli/problem_dir/uid new file mode 100644 index 0000000..99f9f07 --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/uid @@ -0,0 +1 @@ +502 \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/username b/tests/p_abrt-cli/problem_dir/username new file mode 100644 index 0000000..15d5dfe --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/username @@ -0,0 +1 @@ +rmarko diff --git a/tests/p_abrt-cli/problem_dir/uuid b/tests/p_abrt-cli/problem_dir/uuid new file mode 100644 index 0000000..15eb651 --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/uuid @@ -0,0 +1 @@ +b43d70450c44352de194f545a7d3841eb80b1ae5 \ No newline at end of file diff --git a/tests/p_abrt-cli/problem_dir/var_log_messages b/tests/p_abrt-cli/problem_dir/var_log_messages new file mode 100644 index 0000000..d0b9f8b --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/var_log_messages @@ -0,0 +1,2 @@ +Aug 1 09:39:27 fluffy kernel: [149820.130191] urxvtd[10303]: segfault at 56 ip 0000000000420240 sp 00007fff728dc680 error 4 in urxvtd[400000+114000] +Aug 1 09:39:28 fluffy abrt[19696]: saved core dump of pid 10303 (/usr/bin/urxvtd) to /var/spool/abrt/ccpp-2011-08-01-09:39:27-10303.new/coredump (5025792 bytes) diff --git a/tests/p_abrt-cli/problem_dir/xsession_errors b/tests/p_abrt-cli/problem_dir/xsession_errors new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/p_abrt-cli/problem_dir/xsession_errors diff --git a/tests/p_abrt-cli/queries/add_note b/tests/p_abrt-cli/queries/add_note new file mode 100644 index 0000000..557a1c6 --- /dev/null +++ b/tests/p_abrt-cli/queries/add_note @@ -0,0 +1,13 @@ +HTTP/1.1 200 OK +Date: Fri, 07 Nov 2014 18:15:20 GMT +Server: Apache/2.4.10 (Fedora) PHP/5.6.2 +X-Powered-By: PHP/5.6.2 +Set-Cookie: PHPSESSID=a70ip3geh5ddob2hf7hjcnolh4; path=/; HttpOnly +Cache-Control: private, max-age=10800, pre-check=10800 +Last-Modified: Mon, 03 Mar 2014 19:19:50 GMT +Connection: close +Content-Length: 546 +Content-Type: text/xml; charset=utf-8 + + +5 diff --git a/tests/p_abrt-cli/queries/attachment b/tests/p_abrt-cli/queries/attachment new file mode 100644 index 0000000..af58730 --- /dev/null +++ b/tests/p_abrt-cli/queries/attachment @@ -0,0 +1,13 @@ +HTTP/1.1 200 OK +Date: Fri, 07 Nov 2014 13:04:41 GMT +Server: Apache/2.4.10 (Fedora) PHP/5.6.2 +X-Powered-By: PHP/5.6.2 +Set-Cookie: PHPSESSID=up77lotcauq5g3dq9age3i2so4; path=/; HttpOnly +Cache-Control: private, max-age=10800, pre-check=10800 +Last-Modified: Mon, 03 Mar 2014 19:19:50 GMT +Connection: close +Content-Length: 558 +Content-Type: text/xml; charset=utf-8 + + +4 diff --git a/tests/p_abrt-cli/queries/create b/tests/p_abrt-cli/queries/create new file mode 100644 index 0000000..d15d34f --- /dev/null +++ b/tests/p_abrt-cli/queries/create @@ -0,0 +1,12 @@ +HTTP/1.1 200 OK +Date: Thu, 06 Nov 2014 17:47:51 GMT +Server: Apache/2.4.10 (Fedora) PHP/5.6.2 +X-Powered-By: PHP/5.6.2 +Set-Cookie: PHPSESSID=4q0l4ugs1maaf5o9e84svovqi5; path=/; HttpOnly +Cache-Control: private, max-age=10800, pre-check=10800 +Last-Modified: Mon, 03 Mar 2014 19:19:50 GMT +Connection: close +Content-Length: 496 +Content-Type: text/xml; charset=utf-8 + +7 diff --git a/tests/p_abrt-cli/queries/dummy b/tests/p_abrt-cli/queries/dummy new file mode 100644 index 0000000..ddc28f3 --- /dev/null +++ b/tests/p_abrt-cli/queries/dummy @@ -0,0 +1,17 @@ + + + + + + + + id + + 323795 + + + + + + + diff --git a/tests/p_abrt-cli/queries/get_custom_fields b/tests/p_abrt-cli/queries/get_custom_fields new file mode 100644 index 0000000..cdbe088 --- /dev/null +++ b/tests/p_abrt-cli/queries/get_custom_fields @@ -0,0 +1,13 @@ +HTTP/1.1 200 OK +Date: Fri, 07 Nov 2014 21:12:48 GMT +Server: Apache/2.4.10 (Fedora) PHP/5.6.2 +X-Powered-By: PHP/5.6.2 +Set-Cookie: PHPSESSID=22qmssa8tsrsrejsiv0od5t7k2; path=/; HttpOnly +Cache-Control: private, max-age=10800, pre-check=10800 +Last-Modified: Mon, 03 Mar 2014 19:19:50 GMT +Connection: close +Content-Length: 2776 +Content-Type: text/xml; charset=utf-8 + + +1abrt_hash0101000truetruefalsefalsefalsefalsefalsefalse2URL0101000truetruefalsefalsefalsefalsefalsefalse diff --git a/tests/p_abrt-cli/queries/get_issue b/tests/p_abrt-cli/queries/get_issue new file mode 100644 index 0000000..454de09 --- /dev/null +++ b/tests/p_abrt-cli/queries/get_issue @@ -0,0 +1,13 @@ +HTTP/1.1 200 OK +Date: Wed, 14 Jan 2015 08:50:07 GMT +Server: Apache/2.4.10 (Fedora) PHP/5.6.3 +X-Powered-By: PHP/5.6.3 +Set-Cookie: PHPSESSID=tq25vlcb178go69v81olmibrm6; path=/; HttpOnly +Cache-Control: private, max-age=10800, pre-check=10800 +Last-Modified: Mon, 24 Nov 2014 11:23:27 GMT +Connection: close +Content-Length: 3113 +Content-Type: text/xml; charset=utf-8 + + +9910public2015-01-14T18:07:54+01:001testwill-crash30normal50minor10new1administratorroot@localhostwer70have not tried2015-01-14T09:29:23+01:00010none10none10openwer1abrt_hashbbfe66399cc9cb8ba647414e33c5d1e4ad82b5112URLfalse diff --git a/tests/p_abrt-cli/queries/get_issue_closed_as_duplicate b/tests/p_abrt-cli/queries/get_issue_closed_as_duplicate new file mode 100644 index 0000000..745b104 --- /dev/null +++ b/tests/p_abrt-cli/queries/get_issue_closed_as_duplicate @@ -0,0 +1,27 @@ +HTTP/1.1 200 OK +Date: Wed, 14 Jan 2015 08:50:07 GMT +Server: Apache/2.4.10 (Fedora) PHP/5.6.3 +X-Powered-By: PHP/5.6.3 +Set-Cookie: PHPSESSID=tq25vlcb178go69v81olmibrm6; path=/; HttpOnly +Cache-Control: private, max-age=10800, pre-check=10800 +Last-Modified: Mon, 24 Nov 2014 11:23:27 GMT +Connection: close +Content-Length: 4798 +Content-Type: text/xml; charset=utf-8 + + +9910public2015-01-14T21:40:26+01:001testwill-crash30normal50minor90closed1administratorroot@localhostwer70have not tried2015-01-14T09:29:23+01:00010none10none60duplicatewer90duplicate of101371administratorroot@localhostAnother user experienced a similar problem: + +i am comment + +reporter: libreport-2.3.0.59.gb561.dirty +backtrace_rating: 1 +cmdline: urxvtd -q -o -f +crash_function: rxvt_term::selection_delimit_word +executable: /usr/bin/urxvtd +kernel: 2.6.38.8-35.fc15.x86_64 +package: rxvt-unicode-9.12-2.fc15 +reason: Process /usr/bin/urxvtd was killed by signal 11 (SIGSEGV) +type: CCpp +uid: 502 +xsession_errors:10public2015-01-14T19:52:40+01:002015-01-14T19:52:40+01:00001abrt_hashbbfe66399cc9cb8ba647414e33c5d1e4ad82b5112URLfalse diff --git a/tests/p_abrt-cli/queries/get_issue_comment_rating_1 b/tests/p_abrt-cli/queries/get_issue_comment_rating_1 new file mode 100644 index 0000000..09e7daa --- /dev/null +++ b/tests/p_abrt-cli/queries/get_issue_comment_rating_1 @@ -0,0 +1,27 @@ +HTTP/1.1 200 OK +Date: Wed, 14 Jan 2015 08:50:07 GMT +Server: Apache/2.4.10 (Fedora) PHP/5.6.3 +X-Powered-By: PHP/5.6.3 +Set-Cookie: PHPSESSID=tq25vlcb178go69v81olmibrm6; path=/; HttpOnly +Cache-Control: private, max-age=10800, pre-check=10800 +Last-Modified: Mon, 24 Nov 2014 11:23:27 GMT +Connection: close +Content-Length: 4450 +Content-Type: text/xml; charset=utf-8 + + +9910public2015-01-14T19:52:40+01:001testwill-crash30normal50minor10new1administratorroot@localhostwer70have not tried2015-01-14T09:29:23+01:00010none10none10openwer371administratorroot@localhostAnother user experienced a similar problem: + +i am second comment + +reporter: libreport-2.3.0.59.gb561.dirty +backtrace_rating: 1 +cmdline: urxvtd -q -o -f +crash_function: rxvt_term::selection_delimit_word +executable: /usr/bin/urxvtd +kernel: 2.6.38.8-35.fc15.x86_64 +package: rxvt-unicode-9.12-2.fc15 +reason: Process /usr/bin/urxvtd was killed by signal 11 (SIGSEGV) +type: CCpp +uid: 502 +xsession_errors:10public2015-01-14T19:52:40+01:002015-01-14T19:52:40+01:00001abrt_hashbbfe66399cc9cb8ba647414e33c5d1e4ad82b5112URLfalse diff --git a/tests/p_abrt-cli/queries/get_issue_dup_comment_rating_1 b/tests/p_abrt-cli/queries/get_issue_dup_comment_rating_1 new file mode 100644 index 0000000..865de1f --- /dev/null +++ b/tests/p_abrt-cli/queries/get_issue_dup_comment_rating_1 @@ -0,0 +1,26 @@ +HTTP/1.1 200 OK +Date: Wed, 14 Jan 2015 08:50:07 GMT +Server: Apache/2.4.10 (Fedora) PHP/5.6.3 +X-Powered-By: PHP/5.6.3 +Set-Cookie: PHPSESSID=tq25vlcb178go69v81olmibrm6; path=/; HttpOnly +Cache-Control: private, max-age=10800, pre-check=10800 +Last-Modified: Mon, 24 Nov 2014 11:23:27 GMT +Connection: close +Content-Length: 4392 +Content-Type: text/xml; charset=utf-8 + + +9910public2015-01-14T19:52:40+01:001testwill-crash30normal50minor10new1administratorroot@localhostwer70have not tried2015-01-14T09:29:23+01:00010none10none10openwer371administratorroot@localhostAnother user experienced a similar problem: + +i am comment + +backtrace_rating: 1 +cmdline: urxvtd -q -o -f +crash_function: rxvt_term::selection_delimit_word +executable: /usr/bin/urxvtd +kernel: 2.6.38.8-35.fc15.x86_64 +package: rxvt-unicode-9.12-2.fc15 +reason: Process /usr/bin/urxvtd was killed by signal 11 (SIGSEGV) +type: CCpp +uid: 502 +xsession_errors:10public2015-01-14T19:52:40+01:002015-01-14T19:52:40+01:00001abrt_hashbbfe66399cc9cb8ba647414e33c5d1e4ad82b5112URLfalse diff --git a/tests/p_abrt-cli/queries/login_correct b/tests/p_abrt-cli/queries/login_correct new file mode 100644 index 0000000..1583c29 --- /dev/null +++ b/tests/p_abrt-cli/queries/login_correct @@ -0,0 +1,13 @@ +HTTP/1.1 200 OK +Date: Fri, 07 Nov 2014 21:12:48 GMT +Server: Apache/2.4.10 (Fedora) PHP/5.6.2 +X-Powered-By: PHP/5.6.2 +Set-Cookie: PHPSESSID=22qmssa8tsrsrejsiv0od5t7k2; path=/; HttpOnly +Cache-Control: private, max-age=10800, pre-check=10800 +Last-Modified: Mon, 03 Mar 2014 19:19:50 GMT +Connection: close +Content-Length: 866 +Content-Type: text/xml; charset=utf-8 + + +2testtesttest@email.com25Europe/Prague diff --git a/tests/p_abrt-cli/queries/login_incorrect b/tests/p_abrt-cli/queries/login_incorrect new file mode 100644 index 0000000..2cd29c7 --- /dev/null +++ b/tests/p_abrt-cli/queries/login_incorrect @@ -0,0 +1,13 @@ +HTTP/1.1 500 Internal Service Error +Date: Fri, 07 Nov 2014 21:51:25 GMT +Server: Apache/2.4.10 (Fedora) PHP/5.6.2 +X-Powered-By: PHP/5.6.2 +Set-Cookie: PHPSESSID=d7codh295fdqov4hta9jb1c6a6; path=/; HttpOnly +Cache-Control: private, max-age=10800, pre-check=10800 +Last-Modified: Mon, 03 Mar 2014 19:19:50 GMT +Connection: close +Content-Length: 280 +Content-Type: text/xml; charset=utf-8 + + +SOAP-ENV:ClientAccess denied diff --git a/tests/p_abrt-cli/queries/project_get_id_from_name b/tests/p_abrt-cli/queries/project_get_id_from_name new file mode 100644 index 0000000..ebe31fb --- /dev/null +++ b/tests/p_abrt-cli/queries/project_get_id_from_name @@ -0,0 +1,13 @@ +HTTP/1.1 200 OK +Date: Fri, 07 Nov 2014 21:12:48 GMT +Server: Apache/2.4.10 (Fedora) PHP/5.6.2 +X-Powered-By: PHP/5.6.2 +Set-Cookie: PHPSESSID=22qmssa8tsrsrejsiv0od5t7k2; path=/; HttpOnly +Cache-Control: private, max-age=10800, pre-check=10800 +Last-Modified: Mon, 03 Mar 2014 19:19:50 GMT +Connection: close +Content-Length: 566 +Content-Type: text/xml; charset=utf-8 + + +1 diff --git a/tests/p_abrt-cli/queries/search_no_issue b/tests/p_abrt-cli/queries/search_no_issue new file mode 100644 index 0000000..7575614 --- /dev/null +++ b/tests/p_abrt-cli/queries/search_no_issue @@ -0,0 +1,13 @@ +HTTP/1.1 200 OK +Date: Fri, 07 Nov 2014 11:34:12 GMT +Server: Apache/2.4.10 (Fedora) PHP/5.6.2 +X-Powered-By: PHP/5.6.2 +Set-Cookie: PHPSESSID=07lf8bbdtbqv33i9g2l7ffska6; path=/; HttpOnly +Cache-Control: private, max-age=10800, pre-check=10800 +Last-Modified: Mon, 03 Mar 2014 19:19:50 GMT +Connection: close +Content-Length: 568 +Content-Type: text/xml; charset=utf-8 + + + diff --git a/tests/p_abrt-cli/queries/search_one_issue b/tests/p_abrt-cli/queries/search_one_issue new file mode 100644 index 0000000..08985c0 --- /dev/null +++ b/tests/p_abrt-cli/queries/search_one_issue @@ -0,0 +1,13 @@ +HTTP/1.1 200 OK +Date: Wed, 14 Jan 2015 08:50:07 GMT +Server: Apache/2.4.10 (Fedora) PHP/5.6.3 +X-Powered-By: PHP/5.6.3 +Set-Cookie: PHPSESSID=tq25vlcb178go69v81olmibrm6; path=/; HttpOnly +Cache-Control: private, max-age=10800, pre-check=10800 +Last-Modified: Mon, 24 Nov 2014 11:23:27 GMT +Connection: close +Content-Length: 3197 +Content-Type: text/xml; charset=utf-8 + + +9910public2015-01-14T09:29:23+01:001testwill-crash30normal50minor10new1administratorroot@localhostwer70have not tried2015-01-14T09:29:23+01:00010none10none10openwer1abrt_hashbbfe66399cc9cb8ba647414e33c5d1e4ad82b5112URLfalse diff --git a/tests/p_abrt-cli/queries/search_two_issues b/tests/p_abrt-cli/queries/search_two_issues new file mode 100644 index 0000000..8e2d66b --- /dev/null +++ b/tests/p_abrt-cli/queries/search_two_issues @@ -0,0 +1,22 @@ +HTTP/1.1 200 OK +Date: Wed, 14 Jan 2015 08:50:07 GMT +Server: Apache/2.4.10 (Fedora) PHP/5.6.3 +X-Powered-By: PHP/5.6.3 +Set-Cookie: PHPSESSID=tq25vlcb178go69v81olmibrm6; path=/; HttpOnly +Cache-Control: private, max-age=10800, pre-check=10800 +Last-Modified: Mon, 24 Nov 2014 11:23:27 GMT +Connection: close +Content-Length: 6839 +Content-Type: text/xml; charset=utf-8 + + +9910public2015-01-14T09:29:23+01:001testwill-crash30normal50minor10new1administratorroot@localhostwer70have not tried2015-01-14T09:29:23+01:00010none10none10openwer1abrt_hashbbfe66399cc9cb8ba647414e33c5d1e4ad82b5112URLfalse9810public2015-01-14T07:25:11+01:001testwill-crash30normal50minor10new2mhabrnalemail@email.com[abrt] will-crash: will_segfault killed by SIGSEGV77.7.770have not tried2015-01-14T06:19:46+01:00010none10none10openVersion-Release number of selected component: +will-crash-0.8-1.fc21 +reporter: libreport-2.3.0.59.gb561.dirty +cmdline: will_segfault +executable: /usr/bin/will_segfault +kernel: 3.17.0-301.fc21.x86_64 +runlevel: N 5 +type: CCpp +uid: 1000 +532open_fds138text2015-01-14T06:19:50+01:00http://localhost/mantisbt/file_download.php?file_id=532&amp;type=bug21abrt_hashbbfe66399cc9cb8ba647414e33c5d1e4ad82b5112URLhttps://retrace.fedoraproject.org/faf/reports/347291/false