This is the mail archive of the
mailing list for the glibc project.
Re: Include LOCPATH in default test environment
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Wed, 11 Jun 2014 10:24:24 +0000
- Subject: Re: Include LOCPATH in default test environment
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1406042243420 dot 2874 at digraph dot polyomino dot org dot uk> <53980F34 dot 2070300 at redhat dot com>
On Wed, 11 Jun 2014, Florian Weimer wrote:
> On 06/05/2014 12:44 AM, Joseph S. Myers wrote:
> > Tests run using the default $(make-test-out) automatically get
> > GCONV_PATH and LC_ALL set, whether or not those environment variables
> > are actually needed for the individual test. However, they do not get
> > LOCPATH set, meaning that a large number of tests have -ENV settings
> > just to set LOCPATH.
> Is it still necessary to ensure manually that the localedata subdirectory is
> built in time, before tests relying on LOCPATH run?
If a directory contains tests using locales, my understanding is that its
Depend file should mention localedata to ensure that localedata comes
first in sysd-sorted. If you're doing "make <subdir>/tests", then indeed
you need to do "make localedata/tests" first (it would probably be good to
have an explicit dependency of all tests on these locale files to avoid
needing to depend on directory ordering like that).
Joseph S. Myers