[Oisf-devel] Solaris sparc question

Victor Julien victor at inliniac.net
Tue Jan 19 13:31:25 UTC 2010


Hi Yaomin, I think that should work fine. To be sure, run all unittests. 
If they all complete successfully you should be good.

Cheers,
Victor

Yao-Min Chen wrote:
> 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
>>   
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Oisf-devel mailing list
> Oisf-devel at openinfosecfoundation.org
> http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel


-- 
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------




More information about the Oisf-devel mailing list