[open-ils-commits] [GIT] Evergreen ILS branch master updated. 5bf117cbae57247a736043496c49bd6c920d131a

Evergreen Git git at git.evergreen-ils.org
Thu Jan 9 09:46:15 EST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  5bf117cbae57247a736043496c49bd6c920d131a (commit)
      from  df6a6b9bc2ea43c106b25b056ffc91507ca9f1d8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5bf117cbae57247a736043496c49bd6c920d131a
Author: Dan Scott <dscott at laurentian.ca>
Date:   Sat Oct 13 01:23:35 2012 -0400

    Tests: Ensure TT2 templates parse cleanly
    
    File::Find and Test::Output make it easy to check for any stderr
    returned from the TT2 extractor.
    
    Signed-off-by: Dan Scott <dscott at laurentian.ca>
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

diff --git a/Open-ILS/src/perlmods/t/22-template-toolkit-parse.t b/Open-ILS/src/perlmods/t/22-template-toolkit-parse.t
new file mode 100644
index 0000000..08304f6
--- /dev/null
+++ b/Open-ILS/src/perlmods/t/22-template-toolkit-parse.t
@@ -0,0 +1,28 @@
+use strict;
+use warnings;
+use File::Find;
+use File::Spec;
+use Locale::Maketext::Extract;
+use Test::More;
+use Test::Output;
+
+my $num_tests = 0;
+
+my $ext = Locale::Maketext::Extract->new(
+    plugins => { tt2  => ['tt2'] },
+    warnings => 1,
+    verbose => 0
+);
+
+sub template_checker {
+    return unless /.tt2$/;
+    my $tt2 = $_;
+    $num_tests++;
+    stderr_is {$ext->extract_file($tt2)} '', "Parse TT2 - $File::Find::name";
+}
+
+my ($vol, $dir, $file) = File::Spec->splitpath(__FILE__);
+chdir("$dir/../..");
+find(\&template_checker, ('templates'));
+
+done_testing($num_tests);

-----------------------------------------------------------------------

Summary of changes:
 .../src/perlmods/t/22-template-toolkit-parse.t     |   28 ++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
 create mode 100644 Open-ILS/src/perlmods/t/22-template-toolkit-parse.t


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list