[openbeosstorage] Re: BResources

> I finally decided rather to add test files (in test/resources).
> It's just not sure, that the files I would have chosen would be identical
> on all installations the tests might run on; future ones (e.g. OBOS R1
> alpha) in particular. Now I have a set of files of four different flavors
> (ELF, PEF, x86 and PPC resource files) with well-defined resources. That
> made writing the tests easier.

Oooo, that's a good point. That's definitely a better plan.

> PS: I added the targets `r5' and `posix' to test/Jamfile. These are quite
>     handy when writing tests -- then you usually want to compile only the
>     R5 test app -- and when testing the OBOS implementation -- then one
>     is merely interested on compiling the other version.

Nice. 

>     Furthermore I added the method TestShell::TestDir() that returns the
>     path of the directory the test application lives in. This was
>     necessary to locate the new test files.

That should be handy as well.

-Tyler

Other related posts: