[Box Backup-dev] Re: First official Win32 release

Ben Summers boxbackup-dev@fluffy.co.uk
Sat, 28 Jan 2006 09:27:16 +0000


On 28 Jan 2006, at 00:09, Chris Wilson wrote:

> Hi Per,
>
>> On the testing note: Are there tests for the new features (save- 
>> state, keepalive, I miss any big ones?) in the makefiles? Or are  
>> these things the testers should do manually?
>
> As far as I can tell, there are no tests for:
>
> * SSL keepalives
> * Saving state
> * Windows native port
>
> Unfortunately I don't have a lot of time to write them, nor a great  
> understanding of the Box Backup test architecture, but I agree that  
> they should definitely be written, and I would appreciate any help  
> that I can get.

The test architecture is very simple. Just programs with auto- 
generated main() functions which call test(), which just uses a few  
macros to indicate failure of things it tested.

The approach the first two tests should take is to start a daemon and  
make it do stuff. Then, monitor the logs to see if it behaved as you  
would expect.

Making a test for the Win32 port is a whole different matter, as you  
can't run a server on Windows. I suggest a "test script" (which is  
followed by a human, not an interpreter) is written, which involves a  
particular configuration file, then a list of actions and things to  
check.

http://boxbackup.hostworks.ca/index.php/Win32_test_script

Ben