summaryrefslogtreecommitdiffstats
path: root/tests/imfile-basic.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-03-11 10:58:07 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-03-11 10:58:07 +0100
commit4195f9cb08cddaeae37dc88c5e879d84391b4359 (patch)
tree5f24c7d497e68b7f348d43d40546d1e2d7234a5d /tests/imfile-basic.sh
parent765317d54ec5658dd0c598170d0fc0824f751265 (diff)
downloadrsyslog-4195f9cb08cddaeae37dc88c5e879d84391b4359.tar.gz
rsyslog-4195f9cb08cddaeae37dc88c5e879d84391b4359.tar.xz
rsyslog-4195f9cb08cddaeae37dc88c5e879d84391b4359.zip
added new test for imfile to testbench
Diffstat (limited to 'tests/imfile-basic.sh')
-rwxr-xr-xtests/imfile-basic.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/imfile-basic.sh b/tests/imfile-basic.sh
new file mode 100755
index 00000000..ca6a5d3a
--- /dev/null
+++ b/tests/imfile-basic.sh
@@ -0,0 +1,14 @@
+# This is part of the rsyslog testbench, licensed under GPLv3
+echo [imfile-basic.sh]
+source $srcdir/diag.sh init
+# generate input file first. Note that rsyslog processes it as
+# soon as it start up (so the file should exist at that point).
+./inputfilegen 50000 > rsyslog.input
+ls -l rsyslog.input
+source $srcdir/diag.sh startup imfile-basic.conf
+# sleep a little to give rsyslog a chance to begin processing
+sleep 1
+source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
+source $srcdir/diag.sh wait-shutdown # we need to wait until rsyslogd is finished!
+source $srcdir/diag.sh seq-check 0 49999
+source $srcdir/diag.sh exit