Skip to contentSkip to conversation

samhain: fix runtime error

PATCH New Armin Kuster 1 participant 2 messages Mar 30, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 samhain: fix runtime error

fix:
samhain[1652]: FATAL: x_dnmalloc.c: 2790: hashval < AMOUNTHASH Killed

disable dnmalloc

---
 recipes-security/samhain/samhain.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-security/samhain/samhain.inc +1 -0
index dcd72b9..1b9af39 100644
@@ -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
#1 lore raw

PATCH v2 2/2 samhain: add basic runtime test

---
 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
new file mode 100644
index 0000000..e4bae7b
@@ -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