diff options
author | Carlos O'Donell <carlos@redhat.com> | 2020-02-25 10:15:30 -0500 |
---|---|---|
committer | Carlos O'Donell <carlos@redhat.com> | 2020-04-30 16:28:07 -0400 |
commit | df6c63ebbce9679e755f0ecc716a33babee5d008 (patch) | |
tree | f94f4a3856310c80df8dc9d2c2b2a061391856b9 /localedata/tst-localedef-hardlinks.root | |
parent | 033362cfd7e0e1dccd6c9a2642710d6e3a7e7007 (diff) | |
download | glibc-df6c63ebbce9679e755f0ecc716a33babee5d008.tar.gz glibc-df6c63ebbce9679e755f0ecc716a33babee5d008.tar.xz glibc-df6c63ebbce9679e755f0ecc716a33babee5d008.zip |
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>
Diffstat (limited to 'localedata/tst-localedef-hardlinks.root')
4 files changed, 17 insertions, 0 deletions
diff --git a/localedata/tst-localedef-hardlinks.root/postclean.req b/localedata/tst-localedef-hardlinks.root/postclean.req new file mode 100644 index 0000000000..48f3c4bd4e --- /dev/null +++ b/localedata/tst-localedef-hardlinks.root/postclean.req @@ -0,0 +1,2 @@ +# We do not want test locales to remain installed for future tests so +# we request that the testroot be cleaned after the test is complete. diff --git a/localedata/tst-localedef-hardlinks.root/test1_locale b/localedata/tst-localedef-hardlinks.root/test1_locale new file mode 100644 index 0000000000..79f4c3aec4 --- /dev/null +++ b/localedata/tst-localedef-hardlinks.root/test1_locale @@ -0,0 +1,3 @@ +comment_char % +escape_char / +% Empty test locale. Must be identical to the other test locale. diff --git a/localedata/tst-localedef-hardlinks.root/test2_locale b/localedata/tst-localedef-hardlinks.root/test2_locale new file mode 100644 index 0000000000..79f4c3aec4 --- /dev/null +++ b/localedata/tst-localedef-hardlinks.root/test2_locale @@ -0,0 +1,3 @@ +comment_char % +escape_char / +% Empty test locale. Must be identical to the other test locale. diff --git a/localedata/tst-localedef-hardlinks.root/tst-localedef-hardlinks.script b/localedata/tst-localedef-hardlinks.root/tst-localedef-hardlinks.script new file mode 100644 index 0000000000..f0eccec251 --- /dev/null +++ b/localedata/tst-localedef-hardlinks.root/tst-localedef-hardlinks.script @@ -0,0 +1,9 @@ +# 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. |