| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # Copyright 2015-01-29 by Tim Eifler |
| 3 | # This file is part of the rsyslog project, released under ASL 2.0 |
| 4 | echoscip-shell system . . echo. =============================================================================== |
| 5 | echoscip-shell system . . echo. \[abort-uncleancfg-goodcfg.sh\]: testing abort on unclean configuration |
| 6 | echoscip-shell system . . echo. "testing a good Configuration verification run" |
| 7 | . ${srcdir:=.}/diag.sh init |
| 8 | generate_conf |
| 9 | add_conf ' |
| 10 | $AbortOnUncleanConfig on |
| 11 | $MainMsgQueueTimeoutShutdown 10000 |
| 12 | |
| 13 | $template outfmt,"%msg:F,58:2%\n" |
| 14 | template(name="dynfile" type="string" string=`echo $RSYSLOG_OUT_LOG`) # trick to use relative path names! |
| 15 | :msg, contains, "msgnum:" ?dynfile;outfmt |
| 16 | ' |
| 17 | startup |
| 18 | injectmsg 1 10 |
| 19 | shutdown_when_empty |
| 20 | wait_shutdown |
| 21 | |
| 22 | if [scip-shell system . . `[`. ! -e $RSYSLOG_OUT_LOG ] |
| 23 | then |
| 24 | echoscip-shell system . . echo. "error: expected file does not exist" |
| 25 | error_exit 1 |
| 26 | fi |
| 27 | exit_test |