RE: [boost] Re: White cells

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? Gennadiy.

"Rozental, Gennadiy" <gennadiy.rozental@thomson.com> 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
participants (2)
-
David Abrahams
-
Rozental, Gennadiy