testsuite: Added detection script for inotify in imfile tests

Only affects the tests using inotify, tests will be skipped when no
inotify is available.
This commit is contained in:
Andre Lorbach 2015-10-21 06:54:08 -07:00
parent 61740bdc9f
commit ae18fb23f7
4 changed files with 24 additions and 4 deletions

View File

@ -3,7 +3,12 @@
# This test mimics the test imfile-readmode2.sh, but works via
# endmsg.regex. It's kind of a base test for the regex functionality.
echo ======================================================================
echo [imfile-endregex.sh]
# Check if inotify header exist
if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then
echo [imfile-endregex.sh]
else
exit 77 # no inotify available, skip this test
fi
. $srcdir/diag.sh init
. $srcdir/diag.sh startup imfile-endregex.conf

View File

@ -1,7 +1,12 @@
#!/bin/bash
# This is part of the rsyslog testbench, licensed under ASL 2.0
echo ======================================================================
echo [imfile-readmode2-with-persists-data-during-stop.sh]
# Check if inotify header exist
if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then
echo [imfile-readmode2-with-persists-data-during-stop.sh]
else
exit 77 # no inotify available, skip this test
fi
. $srcdir/diag.sh init
. $srcdir/diag.sh startup imfile-readmode2-with-persists-data-during-stop.conf

View File

@ -1,7 +1,12 @@
#!/bin/bash
# This is part of the rsyslog testbench, licensed under ASL 2.0
echo ======================================================================
echo [imfile-readmode2-with-persists.sh]
# Check if inotify header exist
if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then
echo [imfile-readmode2-with-persists.sh]
else
exit 77 # no inotify available, skip this test
fi
. $srcdir/diag.sh init
. $srcdir/diag.sh startup imfile-readmode2-with-persists.conf

View File

@ -1,7 +1,12 @@
#!/bin/bash
# This is part of the rsyslog testbench, licensed under ASL 2.0
echo ======================================================================
echo [imfile-readmode2.sh]
# Check if inotify header exist
if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then
echo [imfile-readmode2.sh]
else
exit 77 # no inotify available, skip this test
fi
. $srcdir/diag.sh init
. $srcdir/diag.sh startup imfile-readmode2.conf