[Oisf-devel] Solaris sparc question
Yao-Min Chen
Yaomin.Chen at Sun.COM
Mon Jan 18 17:44:36 UTC 2010
Thank you for the pointer.
Running src/suricata -u, got a core dump at the printf of
util-mpm.c:MpmRegistersTests():
void MpmRegisterTests(void) {
#ifdef UNITTESTS
uint16_t i;
for (i = 0; i < MPM_TABLE_SIZE; i++) {
if (mpm_table[i].RegisterUnittests != NULL) {
mpm_table[i].RegisterUnittests();
} else {
printf("Warning: mpm %s has no unittest registration
function...", mpm_table[i].name);
}
}
#endif
}
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?
enum {
MPM_NOTSET = 0,
MPM_WUMANBER,
MPM_B2G,
MPM_B3G,
/* table size */
MPM_TABLE_SIZE,
};
Thanks,
Yaomin
On 01/15/10 12:38, Will Metcalf wrote:
> You should be able to enable unit tests in the code by passing the
> configure option --enable-unittests
>
> You can run all unit tests by running
>
> src/suricata -u
>
> Or you can use a case insensitive regex string to only run certain tests
>
> src/suricata -u -U "decode"
>
> will run any matching unit tests
>
> Test DecodeEventTestParse01 : pass
> Test DecodeEventTestParse02 : pass
> Test DecodeEventTestParse03 : pass
> Test DecodeEventTestParse04 : pass
> Test DecodeEventTestParse05 : pass
> Test DecodeEventTestParse06 : pass
> (etc)
>
> On Fri, Jan 15, 2010 at 1:31 PM, Yao-Min Chen <Yaomin.Chen at sun.com
> <mailto:Yaomin.Chen at sun.com>> wrote:
>
> Folks,
>
> Congratulations on getting Suricata Engine out, a great news in
> the new
> year!
>
> I've downloaded and made a few changes in the source code so it
> compiles
> in Solaris. I wonder if there are unit tests available so I can test
> the compiled binary (sorry if this a newbie question). Also if anyone
> can provide a heads up on what functionality may likely to fail in
> Solaris, I'd appreciate that. One thing in particular that I have
> noticed is the processor affinity that Linux and Solaris have
> different
> facilities. So I'd like to test that part out extensively.
>
> Regards,
> Yaomin
> _______________________________________________
> Oisf-devel mailing list
> Oisf-devel at openinfosecfoundation.org
> <mailto:Oisf-devel at openinfosecfoundation.org>
> http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Oisf-devel mailing list
> Oisf-devel at openinfosecfoundation.org
> http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20100118/b993f7b2/attachment-0002.html>
More information about the Oisf-devel
mailing list