|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2008-01-02 14:12:22
First of all, I would recommend that everyone who uses the library
invoke the library_test script (sh or bat) which uses bjam testing
to test that the library passes all the tests on their platform. Boost
can't test all variations of all platforms. For example, you might locally
use MS VC with wchar implemented as short integers. So you
should test any library with your local settings.
To test your own serialization types, Look at the tests in the
test directory of the serialization library and just add your
tests for your own types. This will test your types with
all the boost provide archives.
This may well be all you need. xml_archives include "free"
verification taht the </end> tag for each object is found
where it should be - thus catching more load/save
mismatches.
Robert Ramey
Arunava Saha wrote:
> Dear experts,
>
> I want to add bullet proof testing for the implementation of
> boost::serialization lib in my database. So, I want to add at least a
> test in my regression which should fail whenever there is an incorrect
> change in serialization, i.e. if someone adds a new data member to a
> class but forget to serialize properly, that test should fail.
>
>
>
> So, please post your suggestions on how I should write that test. If
> you have any other idea about testing, please feel free to share.
>
>
>
> Thanks in advance,
>
> Arunava.
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk