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