glibc/localedata/tst-localedef-hardlinks.root/tst-localedef-hardlinks.script
Carlos O'Donell df6c63ebbc localedef: Add tests-container test for --no-hard-links.
The new tst-localedef-hardlinks verifies that when compiling
two locales (with default output directory) one with
--no-hard-links and one without the option, results in the
expected behaviour.  When --no-hard-links is used the link
counts on LC_CTYPE is 1, indicating that even thoug the two
locale are identical (though different named source files and
output direcotry) the localedef did not carry out the hard
link optimization.  Then when --no-hard-links is omitted the
localedef hard link optimization is correctly carried out and
for 2 compiled locales the link count for LC_CTYPE is 2.

Reviewed-by: DJ Delorie <dj@redhat.com>
2020-04-30 16:28:07 -04:00

10 lines
350 B
Plaintext

# Need root to write to $complocaledir when running localedef.
su
# The container install ensures we have uncompressed charmaps so we don't
# need gzip, and we don't need to copy in the uncompressed charmap from
# the source tree.
# The container install ensures we have the compiled locale dirctory
# present for localedef to write to by default.