Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-08-02 10:03:50


"Rozental, Gennadiy" <gennadiy.rozental_at_[hidden]> writes:

>> The way libs/test/test/Jamfile refers to input files is broken.
>>
>> there should be no use of $(test-dir).
>>
>> tests are always run from the directory of the Jamfile.
>
> If this would be the case it should work, I think. Here related part of
> Jamfile:
>
> ########################################
>
> local test-dir = "$(BOOST_ROOT)$(SLASH)libs$(SLASH)test$(SLASH)test$(SLASH)"
> ;
>
> run ifstream_line_iterator_test.cpp <lib>../build/boost_unit_test_framework
> : #args
> : $(test-dir)test_files/ifstream_line_iterator.tst1
> $(test-dir)test_files/ifstream_line_iterator.tst2 ;
>
> What is wrong here?

1. It's ugly.

2. I'm not certain that BOOST_ROOT will always be set (though it
   probably will).

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk