[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $srcdir
From: |
Raja R Harinath |
Subject: |
Re: $srcdir |
Date: |
Wed, 05 Mar 2003 18:34:18 -0600 |
User-agent: |
Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (i686-pc-linux-gnu) |
Hi,
Harlan Stenn <address@hidden> writes:
>> But if I echo either $top_srcdir or $top_builddir, in the file
>> tests/foo.test, they are both null, so I can't seem to find a way of
>> referring to any files.
>
> AC_OUTPUT your test scripts using foo.in -> foo rules, and include lines
> like:
>
> address@hidden@
>
> in them.
>
> Either that, or AC_OUTPUT a vbls.conf.in -> vbls.conf file which does this
> and "source" this file in from your scripts.
That's too heavy-handed for tests. The idiom for tests is to use
TESTS_ENVIRONMENT = srcdir=$(srcdir) top_srcdir=$(top_srcdir)
This is assuming the test scripts are listed in check_TESTS.
- Hari
--
Raja R Harinath ------------------------------ address@hidden
- $srcdir, Dr. David Kirkby, 2003/03/05
Message not available