samhain: fix runtime error
PATCH v2 1/2 samhain: fix runtime error
fix:
samhain[1652]: FATAL: x_dnmalloc.c: 2790: hashval < AMOUNTHASH Killed
disable dnmalloc
Signed-off-by Armin Kuster <[email protected]>
--- recipes-security/samhain/samhain.inc | 1 + 1 file changed, 1 insertion(+)
recipes-security/samhain/samhain.inc +1 -0
@@ -117,6 +117,7 @@ do_configure () { --enable-network=${SAMHAIN_MODE} \ --with-pid-file=${localstatedir}/run/samhain.pid \ --with-data-file=${localstatedir}/lib/samhain/samhain_file \ + --disable-dnmalloc \ ${EXTRA_OECONF} }
Signature · 1 line
2.17.1
PATCH v2 2/2 samhain: add basic runtime test
Signed-off-by Armin Kuster <[email protected]>
--- lib/oeqa/runtime/cases/samhain.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lib/oeqa/runtime/cases/samhain.py
lib/oeqa/runtime/cases/samhain.py new file +20 -0
@@ -0,0 +1,20 @@ +# Copyright (C) 2019 Armin Kuster <[email protected]> +# +import re + +from oeqa.runtime.case import OERuntimeTestCase +from oeqa.core.decorator.depends import OETestDepends +from oeqa.runtime.decorator.package import OEHasPackage + + +class SamhainTest(OERuntimeTestCase): + + @OEHasPackage(['samhain-standalone']) + @OETestDepends(['ssh.SSHTest.test_ssh']) + def test_samhain_standalone_help(self): + status, output = self.target.run('samhain --help') + match = re.search('Please report bugs to [email protected].', output) + if not match: + msg = ('samhain-standalone command does not work as expected. ' + 'Status and output:%s and %s' % (status, output)) + self.assertEqual(status, 1, msg = msg)
Signature · 1 line
2.17.1