summaryrefslogtreecommitdiff
path: root/src/test/locale/README
blob: ba0c4556303d2c62ba1888603c24ecfc68859bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$Header: /cvsroot/pgsql/src/test/locale/README,v 1.3 2001/01/19 19:43:27 petere Exp $

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.

To run a test for some locale run
    gmake check-$locale
for example
    gmake check-koi8-r

Currently, there are only tests for a few locales available.  The script
'runall' calls test-pgsql-locale to test whether locale support has been
compiled into PostgreSQL, 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.

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/     [email protected]