"Fossies" - the Fresh Open Source Software Archive

Member "rsyslog-8.1911.0/tests/asynwr_simple_2.sh" (17 Oct 2019, 706 Bytes) of package /linux/misc/rsyslog-8.1911.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "asynwr_simple_2.sh": 8.1907.0_vs_8.1908.0.

    1 #!/bin/bash
    2 # This is test driver for testing asynchronous file output.
    3 # added 2010-03-09 by Rgerhards, re-written 2019-08-15
    4 # This is part of the rsyslog testbench, licensed under ASL 2.0
    5 . ${srcdir:=.}/diag.sh init
    6 # send 35555 messages, make sure file size is not a multiple of
    7 # 4K, the buffer size!
    8 export NUMMESSAGES=355555
    9 export QUEUE_EMPTY_CHECK_FUNC=wait_seq_check
   10 generate_conf
   11 add_conf '
   12 template(name="outfmt" type="string" string="%msg:F,58:2%\n")
   13 :msg, contains, "msgnum:"
   14     action(type="omfile" file="'$RSYSLOG_OUT_LOG'" template="outfmt"
   15         asyncWriting="on" flushOnTXEnd="off" flushInterval="2" ioBufferSize="4k")
   16 '
   17 startup
   18 injectmsg
   19 shutdown_when_empty
   20 wait_shutdown
   21 seq_check
   22 exit_test