Hi,
2012/6/28 Bas Vodde <
ba...@odd-e.com>:
>
> Hola,
>
>> As I started writing the tests, it may have been premature to assume the cost of reinitializing before each test case.
>
> Oki, if it ever does get slow, you might want to look at making it faster rather than doing it less often.
Yeah, as it became, I split the initialization so I can choose what
part to initialize, as well as avoid saving data to disk for later.
> However you look at it, using a test-case setup will cause more test dependencies...
>
>> Sure, I can stub out the file system parts (and have done so for other modules in the past). I'll need to work some more with the tests to see where I'm headed with it.
>> But I will most likely avoid a group setup/teardown.
>
> Oki! Let me know if I can still help :)
As a rather lone developer, simply describing what I do (or try to do) helps :)
>> Thanks for your input. I'll let you know how it turns out ;)
>
> Good.
>
>> Btw,
>> I have made some changes to use CppUTest in a gnu autotools project. Some tweaking was needed to get all the pieces together.
>
> Kewl. I'll try to get some autotools support for CppUTest also these days.
I'd love it if I could build the whole thing with autotools ;)
I've made another change to accomodate my target device with limited memory.
https://git.astekk.se/pub/pub/cpputest/commit/?h=pub&id=9d120aabf6f69180a9482d7008e5aa2b6519b121
That is so I can link my own cpputest test binaries, since I can't fit
the whole lot into memory at once. But still use the standard cpputest
makefiles to build the obj files.
Nice. I've merged it and pushed a few more changes of my own to
https://git.astekk.se/pub/pub/cpputest/log/?h=pub
It is rather hackish and work in progress, and needs cleaning up.
Still, feedback welcome. ;)
I deserve some whacking along my fingers for not having written any
tests for the MEMCMP_EQUAL stuff... :/
(and the accompanying additions to StringFrom)
>> The later had me quite puzzled, as I tried to understand why I had issues with it, and no one else... ?
>
> Yah, agree.
>
>> I resolved to patching the code, as I didn't really come to grips with it.
>
> Well, the second one is a switch that is rarely used as it is only when you do kernel development. It is somewhat in development :)
Ah, ok. Thanks for cleaning that up a bit ;)
//Andreas