Koha/xt
Frédéric Demians a41100a445 Bug 6458 Template Toolkit files test case
This test validate Template Toolkit (TT) Koha files.

For the time being an unique validation is done: Test if TT files
contain TT directive within HTML tag. For example:

  <li[% IF

This kind of constuction MUST be avoided because it break Koha
translation process.

This patch transform also translation specific modules into C4 modules
in order to be able to use them in test case:

  C4::TTPaser
  C4::TmplToken
  C4::TmplTokenType

This patch is a Perl adaptation of a Haskell script from Frère Sébastien
Marie.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Notes on testing:
- translate install de-DE - worked ok
- translate update de-DE > translate install de-DE - worked ok
- running the test xt/tt_valid.t - worked ok and pointed out lots of problems.
Found no problems.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-08-18 21:11:50 +12:00
..
author Rewriting the valid templates test to test template toolkit 2011-04-29 11:33:19 +12:00
check_sysprefs.t Fix FSF address in directory xt/ 2010-03-16 20:17:54 -04:00
find-license-problems move misc source file test and fix scripts to xt/ 2010-05-06 19:46:51 -04:00
find-nonutf8 exclude TinyMCE from non-UTF8 file checks 2010-05-06 19:55:44 -04:00
fix-old-fsf-address move misc source file test and fix scripts to xt/ 2010-05-06 19:46:51 -04:00
fix-old-fsf-address.exclude move misc source file test and fix scripts to xt/ 2010-05-06 19:46:51 -04:00
perltidyrc bug: 2269 - adding a perltidyrc file 2008-06-25 11:47:30 -05:00
permissions.t add Italian installer SQL to test cases 2010-10-12 10:18:46 -04:00
syspref.t Bug 6316 - es-ES inclusion - Last fixes 2011-08-05 10:20:35 +12:00
tt_valid.t Bug 6458 Template Toolkit files test case 2011-08-18 21:11:50 +12:00