postgresql/src/test/locale/README

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
946 B
Plaintext
Raw Normal View History

2010-09-20 22:08:53 +02:00
src/test/locale/README
2008-03-21 14:23:29 +01:00
Locales
=======
2001-01-19 20:43:27 +01:00
This directory contains a set of tests for locales. I provided one C
program test-ctype.c to test CTYPE support in libc and the installed
locale data. Then there are test-sort.pl and test-sort.py that test
collating.
2001-01-19 20:43:27 +01:00
To run a test for some locale run
make check-$locale
2001-01-19 20:43:27 +01:00
for example
make check-koi8-r
2001-01-19 20:43:27 +01:00
Currently, there are only tests for a few locales available. The script
'runall' calls test-ctype to test libc and locale data, test-sort.pl
(uncomment test-sort.py, if you have a Python interpreter installed), and
does tests on PostgreSQL with the provided SQL script files.
2001-01-19 20:43:27 +01:00
To add locale tests one needs to create a directory $locale and create
a Makefile (and other files) similar to koi8-r/*. Actually, the simplest
(I think) method is just to copy the koi8-r directory and edit/replace
the files.
Oleg.
----
Oleg Broytmann http://members.xoom.com/phd2/ phd2@earthling.net