<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thank you for the pointer. <br>
<br>
Running src/suricata -u, got a core dump at the printf of
util-mpm.c:MpmRegistersTests():<br>
<br>
void MpmRegisterTests(void) {<br>
#ifdef UNITTESTS<br>
uint16_t i;<br>
<br>
for (i = 0; i < MPM_TABLE_SIZE; i++) {<br>
if (mpm_table[i].RegisterUnittests != NULL) {<br>
mpm_table[i].RegisterUnittests();<br>
} else {<br>
printf("Warning: mpm %s has no unittest registration
function...", mpm_table[i].name);<br>
}<br>
}<br>
#endif<br>
}<br>
<br>
It seems mpm_table[0].name is not defined. I changed the iteration from
i=0 to i=1 to work around this. Do I lose anything? <br>
<br>
enum {<br>
MPM_NOTSET = 0,<br>
<br>
MPM_WUMANBER,<br>
MPM_B2G,<br>
MPM_B3G,<br>
<br>
/* table size */<br>
MPM_TABLE_SIZE,<br>
};<br>
<br>
Thanks,<br>
Yaomin<br>
<br>
<br>
<br>
On 01/15/10 12:38, Will Metcalf wrote:
<blockquote
cite="mid:c13e433a1001151238n5ce9fbebp5935a31e35710148@mail.gmail.com"
type="cite">You should be able to enable unit tests in the code by
passing the configure option --enable-unittests <br>
<br>
You can run all unit tests by running<br>
<br>
src/suricata -u<br>
<br>
Or you can use a case insensitive regex string to only run certain tests<br>
<br>
src/suricata -u -U "decode"<br>
<br>
will run any matching unit tests<br>
<br>
Test DecodeEventTestParse01 : pass<br>
Test DecodeEventTestParse02 : pass<br>
Test DecodeEventTestParse03 : pass<br>
Test DecodeEventTestParse04 : pass<br>
Test DecodeEventTestParse05 : pass<br>
Test DecodeEventTestParse06 : pass<br>
(etc)<br>
<br>
<div class="gmail_quote">On Fri, Jan 15, 2010 at 1:31 PM, Yao-Min
Chen <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:Yaomin.Chen@sun.com">Yaomin.Chen@sun.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Folks,<br>
<br>
Congratulations on getting Suricata Engine out, a great news in the new<br>
year!<br>
<br>
I've downloaded and made a few changes in the source code so it compiles<br>
in Solaris. I wonder if there are unit tests available so I can test<br>
the compiled binary (sorry if this a newbie question). Also if anyone<br>
can provide a heads up on what functionality may likely to fail in<br>
Solaris, I'd appreciate that. One thing in particular that I have<br>
noticed is the processor affinity that Linux and Solaris have different<br>
facilities. So I'd like to test that part out extensively.<br>
<br>
Regards,<br>
Yaomin<br>
_______________________________________________<br>
Oisf-devel mailing list<br>
<a moz-do-not-send="true"
href="mailto:Oisf-devel@openinfosecfoundation.org">Oisf-devel@openinfosecfoundation.org</a><br>
<a moz-do-not-send="true"
href="http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel"
target="_blank">http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel</a><br>
</blockquote>
</div>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Oisf-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Oisf-devel@openinfosecfoundation.org">Oisf-devel@openinfosecfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel">http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>