|
Boost-Build : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-02-18 20:58:24
"Gennadiy E. Rozental <rogeeff_at_[hidden]>" <rogeeff_at_[hidden]> writes:
> Hi,
>
> I have a little problem in Boost.Test Jamfile.
> Recently to accomodate building regression test using
> ALL_LOCAL_TARGET variable, Beman made following change in Boost.Test
ALL_LOCATE_TARGET, I think.
> Jamfile:
>
> rule test-btl-lib ( test-rule : test-name : lib-name ? :
> pattern_file ? )
>
> ...
>
> local test-dir =
> $(BOOST_ROOT)$(SLASH)libs$(SLASH)test$(SLASH)test$(SLASH) ;
> ----^ this is what Beman added
You probably shouldn't use $(BOOST_ROOT) for this anyway. Wouldn't
local test-dir = ./ ;
work just as well? Or better yet, eliminating the use of test-dir?
test-suite "unit_test_framework_test"
: [ test-btl-lib run
: result_report_test
: boost_test_exec_monitor
: result_report_test.pattern ]
[The use of $(SLASH) is most likely unneccessary. Try just using
forward slashes in the future.]
> test-suite "unit_test_framework_test"
> : [ test-btl-lib run
> : result_report_test
> : boost_test_exec_monitor
> : $(test-dir)result_report_test.pattern ]
>
> The problem arose when I started to test locally.
> My BOOST_ROOT=D:/Source Code/boost
>
> As a result I am getting "D:/Source" as a pattern name and test is
> failing.
>
> What should I do to fix it?
if you insist on doing it this way, you can always force quotes:
local test-dir = \"$(BOOST_ROOT)/libs/test/test/\" ;
But I think I should probably handle this case in testing.jam. OK, done.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
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