public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] syslog tests are failed.
@ 2016-11-18 12:38 nousi
  2016-11-18 13:02 ` Jan Stancek
  0 siblings, 1 reply; 6+ messages in thread
From: nousi @ 2016-11-18 12:38 UTC (permalink / raw)
  To: ltp

Hi All,

Please someone help in debugging the syslog test case failure.

I am not able to understand the reason for the failure from the debug logs.

I could not find anything wrong in the debug logs.

I am using ltp version 20150119


 <<<test_output>>>
+ . syslog-lib.sh
++ readonly MAILLOG=/var/log/maillog
++ MAILLOG=/var/log/maillog
++ readonly 'TRAP_SIGS=1 2 3 6 11 15'
++ TRAP_SIGS='1 2 3 6 11 15'
++ CONFIG_FILE=
++ RSYSLOG_CONFIG=
++ WAIT_COUNT=60
++ export TST_TOTAL=1
++ TST_TOTAL=1
++ export TST_COUNT=1
++ TST_COUNT=1
+++ basename /opt/ltp/testcases/bin/syslog01
++ export TCID=syslog01
++ TCID=syslog01
++ . cmdlib.sh
+++ set -u
+++ export SHELL_DEBUG=0
+++ SHELL_DEBUG=0
+++ '[' x0 = x1 ']'
+++ TCID=syslog01
+++ '[' -z syslog01 ']'
++++ echo syslog01
++++ awk '{ sub( /[0-9]+$/,""); print; }'
+++ TC=syslog
+++ . daemonlib.sh
++++ command -v systemctl
++++ HAVE_SYSTEMCTL=0
++++ SYSLOG_DAEMON=
++++ command -v syslogd
++++ SYSLOG_DAEMON=syslog
++++ CROND_DAEMON=
++++ command -v crond
++++ CROND_DAEMON=crond
+ export TST_TOTAL=1
+ TST_TOTAL=1
+ export TST_COUNT=1
+ TST_COUNT=1
+ export TCID=syslog01
+ TCID=syslog01
+ tst_resm TINFO 'Send messages to syslogd at some level '
syslog01    0  TINFO  :  Send messages to syslogd at some level
+ tst_resm TINFO 'and facility and grep for those messages.'
syslog01    0  TINFO  :  and facility and grep for those messages.
+ setup
+ tst_require_root
++ id -u
+ '[' x0 '!=' x0 ']'
+ trap '        disable_traps
                tst_resm TBROK "Testing is terminating due to a signal"
                cleanup 1' 1 2 3 6 11 15
+ '[' syslog = syslog ']'
+ CONFIG_FILE=/etc/syslog.conf
+ '[' -f /etc/syslog.conf ']'
+ '[' -f /etc/syslog.conf.ltpback -a 60 -gt 0 ']'
+ '[' 60 -eq 0 ']'
+ cp /etc/syslog.conf /etc/syslog.conf.ltpback
+ syslog_case1
+ tst_resm TINFO 'testing whether messages are logged into log file'
syslog01    0  TINFO  :  testing whether messages are logged into log file
+ case "$CONFIG_FILE" in
+ echo ''
+ echo '*.crit          /var/log/messages'
+ echo 'mail.info       /var/log/maillog'
+ restart_syslog_daemon
+ '[' 0 -eq 0 ']'
+ cleanup_command='cleanup 1'
+ tst_resm TINFO 'restarting syslog daemon'
syslog01    0  TINFO  :  restarting syslog daemon
+ '[' -n syslog ']'
+ restart_daemon syslog
+ '[' 0 -eq 1 ']'
+ service syslog restart
+ '[' 127 -eq 0 ']'
+ restart_daemon syslog
+ '[' 0 -eq 1 ']'
+ service syslog restart
+ '[' 127 -ne 0 ']'
+ cleanup 1
+ disable_traps
+ trap - 1 2 3 6 11 15
+ exit_code=1
+ '[' -f /etc/syslog.conf.ltpback ']'
+ mv /etc/syslog.conf.ltpback /etc/syslog.conf
+ restart_syslog_daemon 'return 1'
+ '[' 1 -eq 0 ']'
+ cleanup_command='return 1'
+ tst_resm TINFO 'restarting syslog daemon'
syslog01    0  TINFO  :  restarting syslog daemon
+ '[' -n syslog ']'
+ restart_daemon syslog
+ '[' 0 -eq 1 ']'
+ service syslog restart
+ '[' 127 -eq 0 ']'
+ restart_daemon syslog
+ '[' 0 -eq 1 ']'
+ service syslog restart
+ '[' 127 -ne 0 ']'
+ return 1
+ '[' 1 -ne 1 ']'
+ exit 1
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=1
<<<test_end>>>

-- 
Thanks & Regards,
B.Nousilal,

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-11-23 11:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-18 12:38 [LTP] syslog tests are failed nousi
2016-11-18 13:02 ` Jan Stancek
2016-11-18 13:16   ` nousi
2016-11-22  9:29     ` Cyril Hrubis
2016-11-22 11:32       ` nousi
2016-11-23 11:02         ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox