[crossfire] first bug discovered by unit test

Alex Schultz alex_sch at telus.net
Tue Mar 14 07:44:57 CST 2006


This reminds me of one idea that I had for the functional tests. Since 
some tests would require some sort of client to connect, I was thinking 
about doing this:
Fixing up the python client libs that I had a start on. In a functional 
test map that wants a 'player', make a script that uses crossfire's 
python plugin to load, and then split off into a separate thread so it 
doesn't block the server from running, and start a client using the 
python libs.
This setup would allow tests that need a 'client' to get one with 
minimal effort, and only modifying the resource files. It also might be 
possible/better to instead of loading via a map, have the test framework 
directly start the python.

Alex Schultz

Tchize wrote:

>Mark Wedel a écrit :
>  
>
>> Random question - is there any framework in place for external functional tests?
>>
>no
>  
>
>> I ask because to reproduce and confirm I fixed the setup buffer overflow bug, 
>>I  do have an external perl script which would be nice to toss somewhere.
>>



More information about the crossfire mailing list