correct_symlink

Locale map test



Author(s)

Author: Martin Daum

Written in

korn shell scripting language


Short Desription

Merges link_check and l10n_msgtest for JDS - checks symlink correctness in /usr/share/locale and in all /usr/lib/locale/[SOMELOCALE] directories - whether they exist and whether the language (and the region, if present) matches. As to the l10n_msgtest merged part, it checks whether the locale -a output UTF-8 locales (osol) have their directory (or symlink) in /usr/share/locale (locales containing the "@" are excluded from the test currently)


How It works

test purpose 1 - find all symlinks in /usr/share/locale, check their target's existence, check whether the link nd target language (and territory, if present) match, if not, fail the test and report the failed link.
test purpose 2 - find all LC_ ... / LANG symlinks in all /usr/lib/locale/[SOMELOCALE]\ directories, check target existence and match as described in tp1
test purpose 3 - grab the UTF-8 and non-@ locales from locale -a and find their directories/symlinks in /usr/share/locale. The missing ones are reported and the test is failed if there are any.


Test output & log files

tp1 : outputs incorrect links (where the target doesnt exist or it just isnt the correct locale dir)
tp2 : see tp1
tp3 : outputs the locales, that were found in locale -a | grep UTF-8 | egrep -v \"@\" , but werent found in /usr/share/locale as dirs or symlinks



Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact