mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-16 20:20:41 +01:00
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:
parent
61740bdc9f
commit
ae18fb23f7
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user