trans-coord-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

trans-coord/gnun/server/gnun AUTHORS ChangeLog ...


From: Pavel Kharitonov
Subject: trans-coord/gnun/server/gnun AUTHORS ChangeLog ...
Date: Fri, 21 Feb 2014 15:49:58 +0000

CVSROOT:        /sources/trans-coord
Module name:    trans-coord
Changes by:     Pavel Kharitonov <ineiev>       14/02/21 15:49:58

Modified files:
        gnun/server/gnun: AUTHORS ChangeLog Makefile.am NEWS 
Added files:
        gnun/server/gnun/tests: add-fuzzy-diff clear-previous 
                                clear-previous.po compendium.bg.po 
                                copy-msgid copy-msgid-0.po 
                                copy-msgid-1.po diff-po diff-po-0.po 
                                diff-po-1.po diff-po.html 
                                fuzzy-diff-0.po fuzzy-diff-1.po init-po 
                                init.bg.po init.pot make-prototype 
                                proto.html proto.proto 
        gnun/server/gnun/tests/validate: 1 1.html 2 3 3.0.html 3.1.html 
                                         4 4.0.html 4.1.html html5.html 

Log message:
        Initially add a testsuite.
        
        * tests/add-fuzzy-diff:
        * tests/clear-previous:
        * tests/copy-msgid:
        * tests/diff-po:
        * tests/init-po:
        * tests/make-prototype:
        * tests/validate/1:
        * tests/validate/2:
        * tests/validate/3:
        * tests/validate/4:
        * tests/clear-prevous.po:
        * tests/compendium.bg.po:
        * tests/copy-msgid-0.po:
        * tests/copy-msgid-1.po:
        * tests/diff-po-0.po:
        * tests/diff-po-1.po:
        * tests/diff-po.html:
        * tests/init.bg.po:
        * tests/init.pot:
        * tests/fuzzy-diff-0.po:
        * tests/fuzzy-diff-1.po:
        * tests/proto.html:
        * tests/proto.proto:
        * tests/validate/1.html:
        * tests/validate/3.0.html:
        * tests/validate/3.1.html:
        * tests/validate/4.0.html:
        * tests/validate/4.1.html:
        * tests/validate/html5.html: New files.
        * Makefile.am (installcheck-local): New target.
        (check_environment, tests_available, tests_enabled):
        (validation_tests): New variables.
        (EXTRA_DIST): Add `tests/add-fuzzy-diff',
        `tests/clear-previous', `tests/copy-msgid', `tests/diff-po',
        `tests/init-po', `tests/make-prototype',
        `tests/validate/1', `tests/validate/2', `tests/validate/3',
        `tests/validate/4',
        `tests/clear-previous.po',
        `tests/copy-msgid-0.po', `tests/copy-msgid-1.po',
        `tests/diff-po-0.po', `tests/diff-po-1.po',
        `tests/diff-po.html', `tests/compendium.bg.po',
        `tests/init.bg.po', `tests/init.pot',
        `tests/fuzzy-diff-0.po', `tests/fuzzy-diff-1.po',
        `tests/proto.html', `tests/proto.proto',
        `tests/validate/1.html', `tests/validate/html5.html',
        `tests/validate/3.0.html', `tests/validate/3.1.html',
        `tests/validate/4.0.html', `tests/validate/4.1.html'.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/AUTHORS?cvsroot=trans-coord&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/ChangeLog?cvsroot=trans-coord&r1=1.401&r2=1.402
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/Makefile.am?cvsroot=trans-coord&r1=1.37&r2=1.38
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/NEWS?cvsroot=trans-coord&r1=1.101&r2=1.102
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/add-fuzzy-diff?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/clear-previous?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/clear-previous.po?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/compendium.bg.po?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/copy-msgid?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/copy-msgid-0.po?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/copy-msgid-1.po?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/diff-po?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/diff-po-0.po?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/diff-po-1.po?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/diff-po.html?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/fuzzy-diff-0.po?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/fuzzy-diff-1.po?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/init-po?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/init.bg.po?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/init.pot?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/make-prototype?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/proto.html?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/proto.proto?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/validate/1?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/validate/1.html?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/validate/2?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/validate/3?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/validate/3.0.html?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/validate/3.1.html?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/validate/4?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/validate/4.0.html?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/validate/4.1.html?cvsroot=trans-coord&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/tests/validate/html5.html?cvsroot=trans-coord&rev=1.1

Patches:
Index: AUTHORS
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/AUTHORS,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- AUTHORS     8 Oct 2013 04:38:22 -0000       1.18
+++ AUTHORS     21 Feb 2014 15:49:51 -0000      1.19
@@ -19,7 +19,8 @@
         languages.txt (compiled from www.gnu.org pages),
         gnun-add-fuzzy-diff, gnun-diff-po.in,
         gnun-init-po.in, gnun-report.in, make-prototype.awk,
-        priorities.mk, update-localized-urls.in.
+        priorities.mk, update-localized-urls.in,
+        all files in test/.
 
     Some changes in configure.ac, GNUmakefile, GNUmakefile.team,
         gnun-validate-html.in, validate-html-notify.in,

Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.401
retrieving revision 1.402
diff -u -b -r1.401 -r1.402
--- ChangeLog   15 Feb 2014 09:56:58 -0000      1.401
+++ ChangeLog   21 Feb 2014 15:49:52 -0000      1.402
@@ -1,3 +1,57 @@
+2014-02-21  Pavel Kharitonov  <address@hidden>
+
+       Initially add a testsuite.
+
+       * tests/add-fuzzy-diff:
+       * tests/clear-previous:
+       * tests/copy-msgid:
+       * tests/diff-po:
+       * tests/init-po:
+       * tests/make-prototype:
+       * tests/validate/1:
+       * tests/validate/2:
+       * tests/validate/3:
+       * tests/validate/4:
+       * tests/clear-prevous.po:
+       * tests/compendium.bg.po:
+       * tests/copy-msgid-0.po:
+       * tests/copy-msgid-1.po:
+       * tests/diff-po-0.po:
+       * tests/diff-po-1.po:
+       * tests/diff-po.html:
+       * tests/init.bg.po:
+       * tests/init.pot:
+       * tests/fuzzy-diff-0.po:
+       * tests/fuzzy-diff-1.po:
+       * tests/proto.html:
+       * tests/proto.proto:
+       * tests/validate/1.html:
+       * tests/validate/3.0.html:
+       * tests/validate/3.1.html:
+       * tests/validate/4.0.html:
+       * tests/validate/4.1.html:
+       * tests/validate/html5.html: New files.
+       * Makefile.am (installcheck-local): New target.
+       (check_environment, tests_available, tests_enabled):
+       (validation_tests): New variables.
+       (EXTRA_DIST): Add `tests/add-fuzzy-diff',
+       `tests/clear-previous', `tests/copy-msgid', `tests/diff-po',
+       `tests/init-po', `tests/make-prototype',
+       `tests/validate/1', `tests/validate/2', `tests/validate/3',
+       `tests/validate/4',
+       `tests/clear-previous.po',
+       `tests/copy-msgid-0.po', `tests/copy-msgid-1.po',
+       `tests/diff-po-0.po', `tests/diff-po-1.po',
+       `tests/diff-po.html', `tests/compendium.bg.po',
+       `tests/init.bg.po', `tests/init.pot',
+       `tests/fuzzy-diff-0.po', `tests/fuzzy-diff-1.po',
+       `tests/proto.html', `tests/proto.proto',
+       `tests/validate/1.html', `tests/validate/html5.html',
+       `tests/validate/3.0.html', `tests/validate/3.1.html',
+       `tests/validate/4.0.html', `tests/validate/4.1.html'.
+       * AUTHORS:
+       * NEWS: Update.
+
 2014-02-15  Pavel Kharitonov  <address@hidden>
 
        Use valid identifiers as function names.

Index: Makefile.am
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/Makefile.am,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -b -r1.37 -r1.38
--- Makefile.am 8 Oct 2013 04:38:23 -0000       1.37
+++ Makefile.am 21 Feb 2014 15:49:52 -0000      1.38
@@ -1,5 +1,5 @@
 # Copyright (C) 2008, 2009, 2010, 2011, 2012,
-#   2013 Free Software Foundation, Inc.
+#   2013, 2014 Free Software Foundation, Inc.
 
 # This file is part of GNUnited Nations.
 
@@ -21,37 +21,85 @@
 SUBDIRS = doc dtd
 
 bin_SCRIPTS =
+tests_available =
+tests_enabled =
+check_environment = bindir="$(bindir)" \
+                   pkglibexecdir="$(pkglibexecdir)" \
+                   srcdir="$(srcdir)/tests" \
+                   AWK="$(AWK)" \
+                   MSGATTRIB="$(MSGATTRIB)" \
+                   SED="$(SED)"
 
+tests_available += init-po
 if HAVE_GETTEXT
 bin_SCRIPTS += gnun-report gnun-init-po
+tests_enabled += init-po
 if HAVE_PO4A
 bin_SCRIPTS += gnun-preconvert gnun-merge-preconverted
 endif
 endif
 
+validation_tests = validate/1 validate/2 validate/3 validate/4
+tests_available += $(validation_tests)
+
 if HAVE_VALIDATION
 bin_SCRIPTS += gnun-validate-html
+tests_enabled += $(validation_tests)
 endif
 
+tests_available += clear-previous
 if NEW_MSGATTRIB
 bin_SCRIPTS += gnun-clear-previous
+tests_enabled += clear-previous
+endif
+
+tests_available += copy-msgid
+if HAVE_GETTEXT
+tests_enabled += copy-msgid
 endif
 
 noinst_SCRIPTS = stamp-config.mk
 pkglibexec_SCRIPTS = copy-msgid mailfail update-localized-urls \
  validate-html-notify
 
+tests_available += diff-po add-fuzzy-diff
+
 if HAVE_WDIFF
 bin_SCRIPTS += gnun-add-fuzzy-diff
 pkglibexec_SCRIPTS += add-fuzzy-diff
+tests_enabled += add-fuzzy-diff
 if HAVE_GETTEXT
 bin_SCRIPTS += gnun-diff-po
 pkglibexec_SCRIPTS += diff-po.awk
+tests_enabled += diff-po
 endif
 endif
 
+tests_available += make-prototype
+tests_enabled += make-prototype
 dist_pkglibexec_SCRIPTS = expand-ssi.awk make-prototype.awk
 
+installcheck-local:
+       @failed=0; pass=0; skip=0; \
+       for i in $(tests_available); do \
+         is=" $$i "; \
+         case " $(tests_enabled) "  in \
+            *$$is*) \
+             if $(check_environment) "$(srcdir)/tests/$$i" &> /dev/null; \
+                  then \
+               res="PASS: $$i"; pass=`expr $$pass + 1`; \
+             else \
+                $(check_environment) "$(srcdir)/tests/$$i"; \
+               res="FAIL: $$i"; failed=`expr $$failed + 1`; \
+             fi; ;; \
+            *) res="SKIP: $$i"; skip=`expr $$skip + 1`; \
+           ;; \
+         esac; \
+         echo $$res; \
+       done; \
+       echo $$pass tests passed, $$failed tests failed, $$skip tests skipped; \
+       test $$failed = 0
+
 # Note that BASE64_ENCODE may contain `|' and `\'', so we substitute it
 # in a different way.
 edit = $(SED) \
@@ -122,7 +170,19 @@
             gnun-init-po.in gnun-merge-preconverted.in \
             gnun-report.in gnun-validate-html.in \
             mailfail.in update-localized-urls.in \
-            validate-html-notify.in
+            validate-html-notify.in \
+            tests/add-fuzzy-diff tests/fuzzy-diff-0.po tests/fuzzy-diff-1.po \
+            tests/clear-previous tests/clear-previous.po \
+            tests/copy-msgid tests/copy-msgid-0.po tests/copy-msgid-1.po \
+            tests/diff-po tests/diff-po-0.po tests/diff-po-1.po \
+            tests/diff-po.html \
+            tests/init-po tests/compendium.bg.po tests/init.bg.po \
+            tests/init.pot \
+            tests/make-prototype tests/proto.html tests/proto.proto \
+            tests/validate/1 tests/validate/1.html \
+            tests/validate/2 tests/validate/html5.html \
+            tests/validate/3 tests/validate/3.0.html tests/validate/3.1.html \
+            tests/validate/4 tests/validate/4.0.html tests/validate/4.1.html
 
 CLEANFILES = add-fuzzy-diff copy-msgid diff-po.awk gnun-add-fuzzy-diff \
             gnun-diff-po gnun-init-po gnun-merge-preconverted gnun-report \

Index: NEWS
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/NEWS,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -b -r1.101 -r1.102
--- NEWS        15 Feb 2014 09:56:58 -0000      1.101
+++ NEWS        21 Feb 2014 15:49:52 -0000      1.102
@@ -2,6 +2,8 @@
 
 * Changes in GNUnited Nations 0.9 (????-??-??)
 
+** An initial testsuite was added.
+
 ** Bugs fixed in 0.9.
 
 *** <span class="gnun-split"></span> didn't work in templates.

Index: tests/add-fuzzy-diff
===================================================================
RCS file: tests/add-fuzzy-diff
diff -N tests/add-fuzzy-diff
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/add-fuzzy-diff        21 Feb 2014 15:49:52 -0000      1.1
@@ -0,0 +1,25 @@
+#! /bin/sh
+# Copyright (C) 2014 Free Software Foundation, Inc.
+
+# This file is part of GNUnited Nations.
+
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+
+# Test add-fuzzy-diff.
+
+"${bindir}/gnun-add-fuzzy-diff" "${srcdir}/fuzzy-diff-0.po" \
+  > fuzzy-diff-1.po || exit 1
+diff "${srcdir}/fuzzy-diff-1.po" fuzzy-diff-1.po || exit 1
+rm fuzzy-diff-1.po
+exit 0

Index: tests/clear-previous
===================================================================
RCS file: tests/clear-previous
diff -N tests/clear-previous
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/clear-previous        21 Feb 2014 15:49:52 -0000      1.1
@@ -0,0 +1,25 @@
+#! /bin/sh
+# Copyright (C) 2014 Free Software Foundation, Inc.
+
+# This file is part of GNUnited Nations.
+
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+
+# Test the gnun-clear-previous script.
+
+cat "$srcdir/copy-msgid-0.po" > clear-previous.po || exit 1
+"${bindir}/gnun-clear-previous" clear-previous.po || exit 1
+diff "${srcdir}/clear-previous.po" clear-previous.po || exit 1
+rm clear-previous.po
+exit 0

Index: tests/clear-previous.po
===================================================================
RCS file: tests/clear-previous.po
diff -N tests/clear-previous.po
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/clear-previous.po     21 Feb 2014 15:49:52 -0000      1.1
@@ -0,0 +1,43 @@
+# Test translation of https://test.html
+#
+# Copyright (C) 2014 Free Software Foundation, Inc.
+#
+# This file is part of GNUnited Nations.
+#
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+#
+# Translator, 1983
+msgid ""
+msgstr ""
+"Project-Id-Version: test.html\n"
+"POT-Creation-Date: 1983-09-27 12:36-0500\n"
+"PO-Revision-Date: 1983-09-27 12:36-0500\n"
+"Last-Translator: Translator <address@hidden>\n"
+"Language-Team: Test <address@hidden>\n"
+"Language: pr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. type: Content of: <title>
+msgid "Title - GNU Project - Free Software Foundation"
+msgstr "Title - GNU Project - Free Software Foundation"
+
+#, fuzzy
+msgid "GNU Project - Free Software Foundation"
+msgstr "GNU Project - Free Software Foundation"
+
+#, fuzzy
+msgid "Free Software Foundation"
+msgstr "- Free Software Foundation"

Index: tests/compendium.bg.po
===================================================================
RCS file: tests/compendium.bg.po
diff -N tests/compendium.bg.po
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/compendium.bg.po      21 Feb 2014 15:49:53 -0000      1.1
@@ -0,0 +1,34 @@
+# Bulgarian compendium.
+#
+# Copyright (C) 2014 Free Software Foundation, Inc.
+#
+# This file is part of GNUnited Nations.
+#
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+#
+# Translator, 1983
+msgid ""
+msgstr ""
+"Project-Id-Version: test.html\n"
+"POT-Creation-Date: 1983-09-27 12:36-0500\n"
+"PO-Revision-Date: 1983-09-27 12:36-0500\n"
+"Last-Translator: Translator <address@hidden>\n"
+"Language-Team: Test <address@hidden>\n"
+"Language: bg\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+msgid "Free"
+msgstr "Software Foundation"

Index: tests/copy-msgid
===================================================================
RCS file: tests/copy-msgid
diff -N tests/copy-msgid
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/copy-msgid    21 Feb 2014 15:49:53 -0000      1.1
@@ -0,0 +1,26 @@
+#! /bin/sh
+# Copyright (C) 2014 Free Software Foundation, Inc.
+
+# This file is part of GNUnited Nations.
+
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+
+# Test the copy-msgid script.
+
+"$MSGATTRIB" --translated --clear-obsolete --set-fuzzy \
+  "$srcdir/copy-msgid-0.po" \
+  | "${pkglibexecdir}/copy-msgid" > copy-msgid-1.po || exit 1
+diff "${srcdir}/copy-msgid-1.po" copy-msgid-1.po || exit 1
+rm copy-msgid-1.po
+exit 0

Index: tests/copy-msgid-0.po
===================================================================
RCS file: tests/copy-msgid-0.po
diff -N tests/copy-msgid-0.po
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/copy-msgid-0.po       21 Feb 2014 15:49:53 -0000      1.1
@@ -0,0 +1,44 @@
+# Test translation of https://test.html
+#
+# Copyright (C) 2014 Free Software Foundation, Inc.
+#
+# This file is part of GNUnited Nations.
+#
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+#
+# Translator, 1983
+msgid ""
+msgstr ""
+"Project-Id-Version: test.html\n"
+"POT-Creation-Date: 1983-09-27 12:36-0500\n"
+"PO-Revision-Date: 1983-09-27 12:36-0500\n"
+"Last-Translator: Translator <address@hidden>\n"
+"Language-Team: Test <address@hidden>\n"
+"Language: pr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. type: Content of: <title>
+msgid "Title - GNU Project - Free Software Foundation"
+msgstr "Title - GNU Project - Free Software Foundation"
+
+#, fuzzy
+msgid "GNU Project - Free Software Foundation"
+msgstr "GNU Project - Free Software Foundation"
+
+#, fuzzy
+#| msgid "- Free Software Foundation"
+msgid "Free Software Foundation"
+msgstr "- Free Software Foundation"

Index: tests/copy-msgid-1.po
===================================================================
RCS file: tests/copy-msgid-1.po
diff -N tests/copy-msgid-1.po
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/copy-msgid-1.po       21 Feb 2014 15:49:53 -0000      1.1
@@ -0,0 +1,49 @@
+# Test translation of https://test.html
+#
+# Copyright (C) 2014 Free Software Foundation, Inc.
+#
+# This file is part of GNUnited Nations.
+#
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+#
+# Translator, 1983
+#, fuzzy
+#| msgid ""
+msgid ""
+msgstr ""
+"Project-Id-Version: test.html\n"
+"POT-Creation-Date: 1983-09-27 12:36-0500\n"
+"PO-Revision-Date: 1983-09-27 12:36-0500\n"
+"Last-Translator: Translator <address@hidden>\n"
+"Language-Team: Test <address@hidden>\n"
+"Language: pr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. type: Content of: <title>
+#, fuzzy
+#| msgid "Title - GNU Project - Free Software Foundation"
+msgid "Title - GNU Project - Free Software Foundation"
+msgstr "Title - GNU Project - Free Software Foundation"
+
+#, fuzzy
+#| msgid "GNU Project - Free Software Foundation"
+msgid "GNU Project - Free Software Foundation"
+msgstr "GNU Project - Free Software Foundation"
+
+#, fuzzy
+#| msgid "- Free Software Foundation"
+msgid "Free Software Foundation"
+msgstr "- Free Software Foundation"

Index: tests/diff-po
===================================================================
RCS file: tests/diff-po
diff -N tests/diff-po
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/diff-po       21 Feb 2014 15:49:53 -0000      1.1
@@ -0,0 +1,28 @@
+#! /bin/sh
+# Copyright (C) 2014 Free Software Foundation, Inc.
+
+# This file is part of GNUnited Nations.
+
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+
+# Test gnun-diff-po.
+
+"${bindir}/gnun-diff-po" -t "title" "${srcdir}/diff-po-0.po" \
+  "${srcdir}/diff-po-1.po" \
+  | "$SED" -e 's,^<title>title (.*)</title>$,<title>title ()</title>,' \
+      -e 's,<!-- Generated by .*gnun-diff-po. -->,<!-- Generated by . -->,' \
+      > diff-po.html || exit 1
+diff "${srcdir}/diff-po.html" diff-po.html || exit 1
+rm diff-po.html
+exit 0

Index: tests/diff-po-0.po
===================================================================
RCS file: tests/diff-po-0.po
diff -N tests/diff-po-0.po
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/diff-po-0.po  21 Feb 2014 15:49:53 -0000      1.1
@@ -0,0 +1,35 @@
+# Test translation of https://test.html
+#
+# Copyright (C) 2014 Free Software Foundation, Inc.
+#
+# This file is part of GNUnited Nations.
+#
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+#
+# Translator, 1983
+msgid ""
+msgstr ""
+"Project-Id-Version: test.html\n"
+"POT-Creation-Date: 1983-09-27 12:36-0500\n"
+"PO-Revision-Date: 1983-09-27 12:36-0500\n"
+"Last-Translator: Translator <address@hidden>\n"
+"Language-Team: Test <address@hidden>\n"
+"Language: pr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. type: Content of: <title>
+msgid "Title - GNU Project - Free Software Foundation"
+msgstr "Title - GNU Project - Free Software Foundation"

Index: tests/diff-po-1.po
===================================================================
RCS file: tests/diff-po-1.po
diff -N tests/diff-po-1.po
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/diff-po-1.po  21 Feb 2014 15:49:54 -0000      1.1
@@ -0,0 +1,35 @@
+# Test translation of https://test.html
+#
+# Copyright (C) 2014 Free Software Foundation, Inc.
+#
+# This file is part of GNUnited Nations.
+#
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+#
+# Translator, 1983
+msgid ""
+msgstr ""
+"Project-Id-Version: test.html\n"
+"POT-Creation-Date: 1983-09-27 12:36-0500\n"
+"PO-Revision-Date: 1983-09-27 12:36-0500\n"
+"Last-Translator: Translator <address@hidden>\n"
+"Language-Team: Test <address@hidden>\n"
+"Language: pr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. type: Content of: <title>
+msgid "Title - GNU Project - Free Software Foundation"
+msgstr "Title - GNU project - Free Software Foundation"

Index: tests/diff-po.html
===================================================================
RCS file: tests/diff-po.html
diff -N tests/diff-po.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/diff-po.html  21 Feb 2014 15:49:54 -0000      1.1
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+<!-- Generated by . -->
+<title>title ()</title>
+<style type="text/css">
+  span.removed { background-color: #faa; color: #000 }
+  span.inserted { background-color: #afa; color: #000 }
+  td.modified { background-color: #ffa; color: #000 }
+  td.msgid { background-color: #bbd; color: #000 }
+</style>
+</head>
+<body>
+<h2>title</h2>
+<table border="1">
+<tr><td rowspan="3">0</td>
+<td>&nbsp;</td>
+<td class="comment">
+Test translation of https://test.html<br />
+Copyright (C) 2014 Free Software Foundation, Inc.<br />
+This file is part of GNUnited Nations.<br />
+GNUnited Nations is free software: you can redistribute it and/or<br />
+modify it under the terms of the GNU General Public License as<br />
+published by the Free Software Foundation, either version 3 of the<br />
+License, or (at your option) any later version.<br />
+GNUnited Nations is distributed in the hope that it will be useful,<br />
+but WITHOUT ANY WARRANTY; without even the implied warranty of<br />
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br />
+GNU General Public License for more details.<br />
+You should have received a copy of the GNU General Public License<br />
+along with GNUnited Nations.  If not, see 
&lt;http://www.gnu.org/licenses/&gt;.<br />
+Translator, 1983
+</td></tr>
+<tr><td class="msgid">&nbsp;</td><td class="msgid"><code>
+&nbsp;
+</code></td></tr>
+<tr>
+<td>&nbsp;</td>
+<td class="msgstr">
+Project-Id-Version: test.html<br />
+POT-Creation-Date: 1983-09-27 12:36-0500<br />
+PO-Revision-Date: 1983-09-27 12:36-0500<br />
+Last-Translator: Translator &lt;address@hidden&gt;<br />
+Language-Team: Test &lt;address@hidden&gt;<br />
+Language: pr<br />
+MIME-Version: 1.0<br />
+Content-Type: text/plain; charset=UTF-8<br />
+Content-Transfer-Encoding: 8bit<br />
+&nbsp;
+</td></tr>
+<tr><td rowspan="3" class="modified"><strong>1</strong></td>
+<td>&nbsp;</td>
+<td class="comment">
+&nbsp;
+</td></tr>
+<tr><td class="msgid">&nbsp;</td><td class="msgid"><code>
+Title - GNU Project - Free Software Foundation&nbsp;
+</code></td></tr>
+<tr>
+<td class="modified"><strong>*</strong></td>
+<td class="msgstr">
+Title - GNU <span class="removed"><del><strong>Project</strong></del></span> 
<span class="inserted"><ins><em>project</em></ins></span> - Free Software 
Foundation
+&nbsp;
+</td></tr>
+</table>
+</body>
+</html>

Index: tests/fuzzy-diff-0.po
===================================================================
RCS file: tests/fuzzy-diff-0.po
diff -N tests/fuzzy-diff-0.po
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/fuzzy-diff-0.po       21 Feb 2014 15:49:54 -0000      1.1
@@ -0,0 +1,37 @@
+# Test translation of https://test.html
+#
+# Copyright (C) 2014 Free Software Foundation, Inc.
+#
+# This file is part of GNUnited Nations.
+#
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+#
+# Translator, 1983
+msgid ""
+msgstr ""
+"Project-Id-Version: test.html\n"
+"POT-Creation-Date: 1983-09-27 12:36-0500\n"
+"PO-Revision-Date: 1983-09-27 12:36-0500\n"
+"Last-Translator: Translator <address@hidden>\n"
+"Language-Team: Test <address@hidden>\n"
+"Language: pr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. type: Content of: <title>
+#, fuzzy
+#| msgid "title - GNU Package - Free Software Foundation (FSF)"
+msgid "Title - GNU Project - Free Software Foundation"
+msgstr "Title - GNU Project - Free Software Foundation"

Index: tests/fuzzy-diff-1.po
===================================================================
RCS file: tests/fuzzy-diff-1.po
diff -N tests/fuzzy-diff-1.po
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/fuzzy-diff-1.po       21 Feb 2014 15:49:54 -0000      1.1
@@ -0,0 +1,39 @@
+# Test translation of https://test.html
+#
+# Copyright (C) 2014 Free Software Foundation, Inc.
+#
+# This file is part of GNUnited Nations.
+#
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+#
+# Translator, 1983
+msgid ""
+msgstr ""
+"Project-Id-Version: test.html\n"
+"POT-Creation-Date: 1983-09-27 12:36-0500\n"
+"PO-Revision-Date: 1983-09-27 12:36-0500\n"
+"Last-Translator: Translator <address@hidden>\n"
+"Language-Team: Test <address@hidden>\n"
+"Language: pr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. type: Content of: <title>
+# | [-t-]{+T+}itle - GNU [-Package-] {+Project+} - Free Software Foundation
+# | [-(FSF)-]
+#, fuzzy
+#| msgid "title - GNU Package - Free Software Foundation (FSF)"
+msgid "Title - GNU Project - Free Software Foundation"
+msgstr "Title - GNU Project - Free Software Foundation"

Index: tests/init-po
===================================================================
RCS file: tests/init-po
diff -N tests/init-po
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/init-po       21 Feb 2014 15:49:54 -0000      1.1
@@ -0,0 +1,32 @@
+#! /bin/sh
+# Copyright (C) 2014 Free Software Foundation, Inc.
+
+# This file is part of GNUnited Nations.
+
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+
+# Test the gnun-init-po script.
+
+cat "${srcdir}/init.pot" > init.pot || exit 1
+"${bindir}/gnun-init-po" -C "${srcdir}/compendium.bg.po" \
+  init.pot || exit 1
+
+# The PO-Revision-Date will depend on the time of checking;
+# the Language field may appear in various positions.
+"${SED}" -i -e \
+'s/^\("PO-Revision-Date:\) ....-..-.. ..:.......\\n"$/\1 1983-09-27 
12:36-0500\\n"/' \
+-e '/^"Language: bg\\n"$/d' init.bg.po
+diff "${srcdir}/init.bg.po" init.bg.po || exit 1
+rm init.bg.po init.pot
+exit 0

Index: tests/init.bg.po
===================================================================
RCS file: tests/init.bg.po
diff -N tests/init.bg.po
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/init.bg.po    21 Feb 2014 15:49:55 -0000      1.1
@@ -0,0 +1,41 @@
+# Bulgarian translation of http://www.gnu.org/planetfeeds.html
+# Bulgarian compendium.
+#
+# Copyright (C) 2014 Free Software Foundation, Inc.
+#
+# This file is part of GNUnited Nations.
+#
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+#
+# Translator, 1983
+msgid ""
+msgstr ""
+"Project-Id-Version: init.html\n"
+"POT-Creation-Date: 1983-09-27 12:36-0500\n"
+"PO-Revision-Date: 1983-09-27 12:36-0500\n"
+"Last-Translator: Translator <address@hidden>\n"
+"Language-Team: Test <address@hidden>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. type: Content of: <title>
+msgid "Title - GNU Project - Free Software Foundation"
+msgstr ""
+
+msgid "GNU Project - Free Software Foundation"
+msgstr ""
+
+msgid "Free"
+msgstr "Software Foundation"

Index: tests/init.pot
===================================================================
RCS file: tests/init.pot
diff -N tests/init.pot
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/init.pot      21 Feb 2014 15:49:55 -0000      1.1
@@ -0,0 +1,41 @@
+# LANGUAGE translation of http://www.gnu.org/planetfeeds.html
+#
+# Copyright (C) 2014 Free Software Foundation, Inc.
+#
+# This file is part of GNUnited Nations.
+#
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+#
+# FIRST AUTHOR <address@hidden>, YEAR.
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: test.html\n"
+"POT-Creation-Date: 1983-09-27 12:36-0500\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <address@hidden>\n"
+"Language-Team: LANGUAGE <address@hidden>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: ENCODING"
+
+#. type: Content of: <title>
+msgid "Title - GNU Project - Free Software Foundation"
+msgstr ""
+
+msgid "GNU Project - Free Software Foundation"
+msgstr ""
+
+msgid "Free"
+msgstr ""

Index: tests/make-prototype
===================================================================
RCS file: tests/make-prototype
diff -N tests/make-prototype
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/make-prototype        21 Feb 2014 15:49:55 -0000      1.1
@@ -0,0 +1,25 @@
+#! /bin/sh
+# Copyright (C) 2014 Free Software Foundation, Inc.
+
+# This file is part of GNUnited Nations.
+
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+
+# Test the make-prototype script.
+
+"$AWK" -f "${pkglibexecdir}/make-prototype.awk" \
+  < "${srcdir}/proto.html" > proto.proto || exit 1
+diff "${srcdir}/proto.proto" proto.proto || exit 1
+rm proto.proto
+exit 0

Index: tests/proto.html
===================================================================
RCS file: tests/proto.html
diff -N tests/proto.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/proto.html    21 Feb 2014 15:49:55 -0000      1.1
@@ -0,0 +1,25 @@
+<!-- Test file for make-prototype.awk
+
+Copyright (C) 2014 Free Software Foundation, Inc.
+
+This file is part of GNUnited Nations.
+
+GNUnited Nations is free software: you can redistribute it and/or
+modify it under the terms of the GNU General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+GNUnited Nations is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.  -->
+<title>proto</title>
+
+</div>
+<div id="footer">
+
+<p>Updated:
+$Date: 2014/02/21 15:49:55 $

Index: tests/proto.proto
===================================================================
RCS file: tests/proto.proto
diff -N tests/proto.proto
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/proto.proto   21 Feb 2014 15:49:55 -0000      1.1
@@ -0,0 +1,36 @@
+<!-- Test file for make-prototype.awk
+
+Copyright (C) 2014 Free Software Foundation, Inc.
+
+This file is part of GNUnited Nations.
+
+GNUnited Nations is free software: you can redistribute it and/or
+modify it under the terms of the GNU General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+GNUnited Nations is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.  -->
+<gnun></gnun><!-- This file is automatically generated by GNUnited Nations! -->
+<title>proto</title>
+
+
+<div style="font-size: small;">
+<!--TRANSLATORS: Use space (SPC) as msgstr if you don't have notes.-->
+*GNUN-SLOT: TRANSLATOR'S NOTES*</div>
+</div>
+<div id="footer">
+
+
+<div class="translators-credits">
+<!--TRANSLATORS: Use space (SPC) as msgstr if you don't want credits.-->
+*GNUN-SLOT: TRANSLATOR'S CREDITS*</div>
+
+
+ <p>Updated:
+$Date: 2014/02/21 15:49:55 $

Index: tests/validate/1
===================================================================
RCS file: tests/validate/1
diff -N tests/validate/1
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/validate/1    21 Feb 2014 15:49:56 -0000      1.1
@@ -0,0 +1,26 @@
+#! /bin/sh
+# Copyright (C) 2014 Free Software Foundation, Inc.
+
+# This file is part of GNUnited Nations.
+
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+
+# Test simple file validation.
+
+"${bindir}/gnun-validate-html" --expand-to=1.html --root "${srcdir}/validate" \
+  "${srcdir}/validate/1.html" || exit 1
+# 1.html contains no SSI directives, so it should expand to an identical file.
+diff "${srcdir}/validate/1.html" 1.html || exit 1
+rm 1.html
+exit 0

Index: tests/validate/1.html
===================================================================
RCS file: tests/validate/1.html
diff -N tests/validate/1.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/validate/1.html       21 Feb 2014 15:49:56 -0000      1.1
@@ -0,0 +1,27 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+<!-- Copyright (C) 2014 Free Software Foundation, Inc.
+
+This file is a part of GNUN testsuite.
+
+GNUnited Nations is free software: you can redistribute it and/or
+modify it under the terms of the GNU General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+GNUnited Nations is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>. -->
+<title>title - GNU Project - Free Software Foundation</title>
+</head>
+<body><h2>Title</h2>
+<p>paragraph.</p>
+</body>
+</html>

Index: tests/validate/2
===================================================================
RCS file: tests/validate/2
diff -N tests/validate/2
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/validate/2    21 Feb 2014 15:49:56 -0000      1.1
@@ -0,0 +1,22 @@
+#! /bin/sh
+# Copyright (C) 2014 Free Software Foundation, Inc.
+
+# This file is part of GNUnited Nations.
+
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+
+# Test simple HTML5 file validation.
+
+"${bindir}/gnun-validate-html" "${srcdir}/validate/html5.html" || exit 1
+exit 0

Index: tests/validate/3
===================================================================
RCS file: tests/validate/3
diff -N tests/validate/3
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/validate/3    21 Feb 2014 15:49:56 -0000      1.1
@@ -0,0 +1,27 @@
+#! /bin/sh
+# Copyright (C) 2014 Free Software Foundation, Inc.
+
+# This file is part of GNUnited Nations.
+
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+
+# Test SSI variable expansion.
+
+"${bindir}/gnun-validate-html" --expand-to=3.1.html \
+  --root "${srcdir}/validate" --apache-vars="a=test;b=value" \
+  "${srcdir}/validate/3.0.html" || exit 1
+# 1.html contains no SSI directives, so it should expand to an identical file.
+diff "${srcdir}/validate/3.1.html" 3.1.html || exit 1
+rm 3.1.html
+exit 0

Index: tests/validate/3.0.html
===================================================================
RCS file: tests/validate/3.0.html
diff -N tests/validate/3.0.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/validate/3.0.html     21 Feb 2014 15:49:56 -0000      1.1
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+<!-- Copyright (C) 2014 Free Software Foundation, Inc.
+
+This file is a part of GNUN testsuite.
+
+GNUnited Nations is free software: you can redistribute it and/or
+modify it under the terms of the GNU General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+GNUnited Nations is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>. -->
+<title>title - GNU Project - Free Software Foundation</title>
+</head>
+<body>
+<p><!--#echo var="a" --> <!--#echo var="b" --><!--#echo var="c" --></p>
+<!--#set var="a"
+ value="changed test" --><p><!--#echo var="a" --> <!--#echo var="b" --></p>
+</body>
+</html>

Index: tests/validate/3.1.html
===================================================================
RCS file: tests/validate/3.1.html
diff -N tests/validate/3.1.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/validate/3.1.html     21 Feb 2014 15:49:57 -0000      1.1
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+<!-- Copyright (C) 2014 Free Software Foundation, Inc.
+
+This file is a part of GNUN testsuite.
+
+GNUnited Nations is free software: you can redistribute it and/or
+modify it under the terms of the GNU General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+GNUnited Nations is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>. -->
+<title>title - GNU Project - Free Software Foundation</title>
+</head>
+<body>
+<p>test value</p>
+<p>changed test value</p>
+</body>
+</html>

Index: tests/validate/4
===================================================================
RCS file: tests/validate/4
diff -N tests/validate/4
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/validate/4    21 Feb 2014 15:49:57 -0000      1.1
@@ -0,0 +1,27 @@
+#! /bin/sh
+# Copyright (C) 2014 Free Software Foundation, Inc.
+
+# This file is part of GNUnited Nations.
+
+# GNUnited Nations is free software: you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+
+# GNUnited Nations is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
+
+# Test SSI include expansion.
+
+"${bindir}/gnun-validate-html" --expand-to=4.1.html \
+  --root "${srcdir}/validate" \
+  "${srcdir}/validate/4.0.html" || exit 1
+# 1.html contains no SSI directives, so it should expand to an identical file.
+diff "${srcdir}/validate/4.1.html" 4.1.html || exit 1
+rm 4.1.html
+exit 0

Index: tests/validate/4.0.html
===================================================================
RCS file: tests/validate/4.0.html
diff -N tests/validate/4.0.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/validate/4.0.html     21 Feb 2014 15:49:57 -0000      1.1
@@ -0,0 +1,30 @@
+<!--#if expr="!$included" -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+<!-- Copyright (C) 2014 Free Software Foundation, Inc.
+
+This file is a part of GNUN testsuite.
+
+GNUnited Nations is free software: you can redistribute it and/or
+modify it under the terms of the GNU General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+GNUnited Nations is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>. -->
+<title>title - GNU Project - Free Software Foundation</title>
+</head>
+<body><!--#set var="included"
+ value="yes" --><!--#include virtual="/4.0.html" --><!--#set var="included"
+ value="" --><!--#else --><h2>Title</h2>
+</body><!--#set var="end" value="</html>" --><!--#endif --><!--#if
+ expr="!$included" --><!--#set var="end"
+ value="" --><!--#endif --><!--#echo encoding="none" var="end" -->

Index: tests/validate/4.1.html
===================================================================
RCS file: tests/validate/4.1.html
diff -N tests/validate/4.1.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/validate/4.1.html     21 Feb 2014 15:49:57 -0000      1.1
@@ -0,0 +1,27 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+<!-- Copyright (C) 2014 Free Software Foundation, Inc.
+
+This file is a part of GNUN testsuite.
+
+GNUnited Nations is free software: you can redistribute it and/or
+modify it under the terms of the GNU General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+GNUnited Nations is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>. -->
+<title>title - GNU Project - Free Software Foundation</title>
+</head>
+<body><h2>Title</h2>
+</body></html>
+

Index: tests/validate/html5.html
===================================================================
RCS file: tests/validate/html5.html
diff -N tests/validate/html5.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/validate/html5.html   21 Feb 2014 15:49:58 -0000      1.1
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+<!-- Copyright (C) 2014 Free Software Foundation, Inc.
+
+This file is a part of GNUN testsuite.
+
+GNUnited Nations is free software: you can redistribute it and/or
+modify it under the terms of the GNU General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+GNUnited Nations is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>. -->
+<head><title></title></head><body></body></html>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]