Is it possible to define a Boost unit test function that gets run once
before all the tests where I can put this loading of images so I don't have
to do it in each of the tests?
Read about fixtures or the test initialization function in the boost
unit test
documentation. The examples show what you want.
Thanks this was perfect:
http://www.boost.org/doc/libs/1_37_0/libs/test/doc/html/utf/user-guide/fixture/global.html
"carl" <carl@.com> spake the secret code
<4b103b94$0$274$1472...@news.sunsite.dk> thusly:
You might want to look at my 5-part tutorial on using Boost.Test:
Part 1 <http://tinyurl.com/ns4bvx>
Part 2 <http://tinyurl.com/mavghy>
Part 3 <http://tinyurl.com/msf4hb>
Part 4 <http://tinyurl.com/meduqo>
Part 5 <http://tinyurl.com/nserw5>
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>
Legalize Adulthood! <http://legalizeadulthood.wordpress.com>