summaryrefslogtreecommitdiff
path: root/xml2po/tests/README
blob: ebec8cdaaf799a0fb852b814ca6cf8350cbe9145 (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
28
29
30
xml2po regression tests
.......................

This is a collection of regression tests.  They're not distributed,
but are only used for checking changes in xml2po behaviour. 

To run, try 

  ./test.py 2>/dev/null

(stderr redirection in order to avoid seeing "Warning: image not
found" messages)
If all tests are successful, the ONLY output should be the number of
tests and the time taken to run the tests!

Simple tests are consisted of four files: original XML file, PO
Template (untranslated PO file), PO file (translated) and translated
XML file.  You add all these files with the same basename, and only
change extension, i.e.

  test.xml
  test.pot
  test.po
  test.xml.out

On all of these, xml2po is run without any arguments that modify
behaviour.

Complex/other tests are represented by a pair of subdirectory and
script name to execute in that subdirectory.