Boost logo

Boost :

Subject: Re: [boost] [test] [build] best practices for looking up data files from test executables
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-11-13 21:06:59


On 11/13/2017 01:54 PM, Robert Ramey via Boost wrote:
> <snip>
> Hmm - I do this in serialization library. My believe is that the tests
> are run while the current directory is set to the test directory.

  Boost.Build never changes the current directory.
If you run the tests from the test directory, then
this will work. If you run them from somewhere else
(say $BOOST_ROOT/status), then it won't.

> So if
> you put a copy of your external data as file in your test directory, you
> should be able to just open it without including any prefix.

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at