On 2013/11/8 0:07, [email protected] wrote:
> Hi!
>> Some tests need `gethost' (e.g. sendfile01), which lives in ${LTPROOT}/bin,
>> which is not in $PATH of networktests.sh.
>>
>> Signed-off-by: Simon Xu <[email protected]>
>> ---
>>   testscripts/networktests.sh | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/testscripts/networktests.sh b/testscripts/networktests.sh
>> index b136749..9465356 100755
>> --- a/testscripts/networktests.sh
>> +++ b/testscripts/networktests.sh
>> @@ -110,7 +110,7 @@ fi
>>   
>>   cd $TMPDIR
>>   
>> -export PATH="${PATH}:${LTPROOT}/testcases/bin"
>> +export PATH="${PATH}:${LTPROOT}/bin:${LTPROOT}/testcases/bin"
> You can remove the original export that adds ${LTPROOT}/testcases/bin as
> this path is allready added by runltp script.

We need to make sure that it's in PATH when using networktests.sh.

> And I think that better solution would be to install genhost into the
> testcases/bin (as the rest of the binaries used from the tests such as
> tst_resm).

gethost.c is in ltp/tools and everything in the dir is installed to 
ltp/bin.  I think we should keep this in case some other tests need 
ltp/bin/gethost.

Thanks
Simon

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to