Boost logo

Boost-Build :

Subject: Re: [Boost-build] Copying / referring to a test data file.
From: Konstantin Litvinenko (to.darkangel_at_[hidden])
Date: 2010-04-24 14:13:57


Justin Muncaster пишет:
> test-main.cpp opens the data file "test-data1.txt". If I build in the
> Subproject directory, this file is found and everything works, but if I
> build from the Project directory, then test-data.txt is not found.
>
> Ultimately, I would like to somehow have test-data#.txt in the "sources" or
> in some other target on which the test-main target depends, and have the
> data files be copied-to or symlinked-from the location of the executable...
> but I am unclear on how to accomplish this. Any suggestions?

    Why not just using first unit test argument as path to data files? I always do that and my test
running whatever I hit bjam.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk