[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Absolute directories for tests.

From: Dr. David Kirkby
Subject: Re: Absolute directories for tests.
Date: Thu, 16 Jan 2003 11:49:16 +0000

Alexandre Duret-Lutz wrote:
> >>> "David" == David Kirkby <address@hidden> writes:
> [...]
>  David> The problem is that if run from the 'tests' directory, this runs okay,
>  David> as the paths given in the test '../tools/src/mycksum' and
>  David> '../examples/cop1.bmp' are correct relative to that 'tests' directory.
>  David> However, if 'make distcheck' is run from the top directory of the
>  David> package, the tests fails as those paths are wrong.
> To account for VPATH-builds, you should consider that sources files
> lie in `$srcdir', not `.'.  Only built files are in the current directory.
> The above two paths are probably better written
> `$srcdir/../tools/src/mycksum' and '$srcdir/../examples/cop1.bmp'.

Thanks for that. I will re-write the tests later in the format you

> Makefiles define $(top_srcdir), but this isn't exported to
> tests.  Probably because nobody needed that yet.

It might well be useful to people if it was added. 

Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6408 Fax: 020 7679 6269
Internal telephone: ext 46408
e-mail address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]