2010-09-06 Stefano Lattarini <stefano.lattarini@gmail.com>
+ Internationalization tests: prefer `test ! -r' over `test ! -f'
+ We now use `test ! -r' rather than `test ! -f' to check that
+ a file does not exists (`test ! -e' would be even better, but
+ unfortunately it is unportable to e.g. Solaris /bin/sh).
+ * tests/pot-copyright.test: Prefer `test ! -r' over `test ! -f'.
+ * tests/pot-empty.test: Likewise.
+ * tests/pot-format-csharp1.test: Likewise.
+ * tests/pot-format-java1.test: Likewise.
+ * tests/pot-format-java2.test: Likewise.
+ * tests/pot-format-qt1.test: Likewise.
+ * tests/pot-format-tcl1.test: Likewise.
+ * tests/pot-linguas.test: Likewise.
+ * tests/pot-msgidbugs.test: Likewise.
+ * tests/pot-no-linguas.test: Likewise.
+ * tests/pot-noinst.test: Likewise.
+ * tests/pot-override1.test: Likewise.
+ * tests/pot-samedir.test: Likewise.
+ * tests/pot-topsrcdir.test: Likewise.
+ * tests/pot-xgettext1.test: Likewise.
+ * tests/pot-xgettext2.test: Likewise.
+ * tests/pot-xgettext3.test: Likewise.
+ * tests/pot-xgettext4.test: Likewise.
+
Internationalization tests: prefer `make distdir' over `make dist'.
Instead of running `make dist', then uncompressing the created
tarball, and then grepping the uncompressed tar archive, we can
$MAKE dist
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
$MAKE dist
# Check that no .pot file was created.
- test ! -f posub/foo-bar.pot
+ test ! -r posub/foo-bar.pot
$MAKE install
# Check that still, no .pot file was created.
- test ! -f posub/foo-bar.pot
+ test ! -r posub/foo-bar.pot
# Check that no .mo file was installed, not even its directory was created.
test ! -d "$instdir"/share/locale/de/LC_MESSAGES
$MAKE install
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
test -f $sourcedir/posub/foo-bar-de.po
- test ! -f $sourcedir/posub/foo-bar-de.resources.dll
+ test ! -r $sourcedir/posub/foo-bar-de.resources.dll
test -f $sourcedir/posub/de/foo-bar.resources.dll
test -f $sourcedir/posub/foo-bar-fr_CA@latin.po
- test ! -f $sourcedir/posub/foo-bar-fr_CA@latin.resources.dll
+ test ! -r $sourcedir/posub/foo-bar-fr_CA@latin.resources.dll
test -f $sourcedir/posub/fr-CA-Latn/foo-bar.resources.dll
- test ! -f $sourcedir/posub/foo-bar-de.mo
- test ! -f $sourcedir/posub/foo-bar-fr_CA@latin.mo
+ test ! -r $sourcedir/posub/foo-bar-de.mo
+ test ! -r $sourcedir/posub/foo-bar-fr_CA@latin.mo
if test -z "$config_options"; then
# Check that "make install" installed de,po and fr_CA@latin.po but not es.po.
test -f "$instdir"/lib/pot-format-csharp1/de/foo-bar.resources.dll
test -f "$instdir"/lib/pot-format-csharp1/fr-CA-Latn/foo-bar.resources.dll
- test ! -f "$instdir"/lib/pot-format-csharp1/es/foo-bar.resources.dll
+ test ! -r "$instdir"/lib/pot-format-csharp1/es/foo-bar.resources.dll
else
# Check that "make install" installed de.po but not fr_CA@latin.po nor es.po.
test -f "$instdir"/lib/pot-format-csharp1/de/foo-bar.resources.dll
- test ! -f "$instdir"/lib/pot-format-csharp1/fr-CA-Latn/foo-bar.resources.dll
- test ! -f "$instdir"/lib/pot-format-csharp1/es/foo-bar.resources.dll
+ test ! -r "$instdir"/lib/pot-format-csharp1/fr-CA-Latn/foo-bar.resources.dll
+ test ! -r "$instdir"/lib/pot-format-csharp1/es/foo-bar.resources.dll
fi
- test ! -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.resources.dll
- test ! -f "$instdir"/share/locale/fr_CA@latin/LC_MESSAGES/foo-bar.resources.dll
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.resources.dll
- test ! -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/fr_CA@latin/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.resources.dll
+ test ! -r "$instdir"/share/locale/fr_CA@latin/LC_MESSAGES/foo-bar.resources.dll
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.resources.dll
+ test ! -r "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/fr_CA@latin/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
# Check that "make distdir" creates the expected .pot file.
$MAKE distdir
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
test -f $sourcedir/posub/foo-bar-de.po
- test ! -f $sourcedir/posub/foo-bar-de.resources.dll
+ test ! -r $sourcedir/posub/foo-bar-de.resources.dll
test -f $sourcedir/posub/de/foo-bar.resources.dll
test -f $sourcedir/posub/foo-bar-fr_CA@latin.po
- test ! -f $sourcedir/posub/foo-bar-fr_CA@latin.resources.dll
+ test ! -r $sourcedir/posub/foo-bar-fr_CA@latin.resources.dll
test -f $sourcedir/posub/fr-CA-Latn/foo-bar.resources.dll
- test ! -f $sourcedir/posub/foo-bar-de.mo
- test ! -f $sourcedir/posub/foo-bar-fr_CA@latin.mo
+ test ! -r $sourcedir/posub/foo-bar-de.mo
+ test ! -r $sourcedir/posub/foo-bar-fr_CA@latin.mo
# Check that the tarball contains posub/foo-bar-{de,fr}.{po,resources.dll}
# but not the others, regardless whether LINGUAS was specified or not.
$MAKE install
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
test -f $sourcedir/posub/foo-bar-de.po
- test ! -f $sourcedir/posub/foo-bar-de.properties
+ test ! -r $sourcedir/posub/foo-bar-de.properties
test -f $sourcedir/posub/foo-bar_de.properties
test -f $sourcedir/posub/foo-bar-fr.po
- test ! -f $sourcedir/posub/foo-bar-fr.properties
+ test ! -r $sourcedir/posub/foo-bar-fr.properties
test -f $sourcedir/posub/foo-bar_fr.properties
- test ! -f $sourcedir/posub/foo-bar-de.mo
- test ! -f $sourcedir/posub/foo-bar-fr.mo
+ test ! -r $sourcedir/posub/foo-bar-de.mo
+ test ! -r $sourcedir/posub/foo-bar-fr.mo
if test -z "$config_options"; then
# Check that "make install" installed de,po and fr.po but not es.po.
test -f "$instdir"/share/pot-format-java1/resources/foo-bar_de.properties
test -f "$instdir"/share/pot-format-java1/resources/foo-bar_fr.properties
- test ! -f "$instdir"/share/pot-format-java1/resources/foo-bar_es.properties
+ test ! -r "$instdir"/share/pot-format-java1/resources/foo-bar_es.properties
else
# Check that "make install" installed de.po but not fr.po nor es.po.
test -f "$instdir"/share/pot-format-java1/resources/foo-bar_de.properties
- test ! -f "$instdir"/share/pot-format-java1/resources/foo-bar_fr.properties
- test ! -f "$instdir"/share/pot-format-java1/resources/foo-bar_es.properties
+ test ! -r "$instdir"/share/pot-format-java1/resources/foo-bar_fr.properties
+ test ! -r "$instdir"/share/pot-format-java1/resources/foo-bar_es.properties
fi
- test ! -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.properties
- test ! -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.properties
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.properties
- test ! -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.properties
+ test ! -r "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.properties
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.properties
+ test ! -r "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
# Check that "make distdir" creates the expected .pot file.
$MAKE distdir
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
test -f $sourcedir/posub/foo-bar-de.po
- test ! -f $sourcedir/posub/foo-bar-de.properties
+ test ! -r $sourcedir/posub/foo-bar-de.properties
test -f $sourcedir/posub/foo-bar_de.properties
test -f $sourcedir/posub/foo-bar-fr.po
- test ! -f $sourcedir/posub/foo-bar-fr.properties
+ test ! -r $sourcedir/posub/foo-bar-fr.properties
test -f $sourcedir/posub/foo-bar_fr.properties
- test ! -f $sourcedir/posub/foo-bar-de.mo
- test ! -f $sourcedir/posub/foo-bar-fr.mo
+ test ! -r $sourcedir/posub/foo-bar-de.mo
+ test ! -r $sourcedir/posub/foo-bar-fr.mo
# Check that the tarball contains posub/foo-bar-{de,fr}.{po,properties}
# but not the others, regardless whether LINGUAS was specified or not.
$MAKE install
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
test -f $sourcedir/posub/foo-bar-de.po
- test ! -f $sourcedir/posub/foo-bar-de.class
+ test ! -r $sourcedir/posub/foo-bar-de.class
test -f $sourcedir/posub/foo-bar_de.class
test -f $sourcedir/posub/foo-bar-fr.po
- test ! -f $sourcedir/posub/foo-bar-fr.class
+ test ! -r $sourcedir/posub/foo-bar-fr.class
test -f $sourcedir/posub/foo-bar_fr.class
- test ! -f $sourcedir/posub/foo-bar-de.mo
- test ! -f $sourcedir/posub/foo-bar-fr.mo
+ test ! -r $sourcedir/posub/foo-bar-de.mo
+ test ! -r $sourcedir/posub/foo-bar-fr.mo
if test -z "$config_options"; then
# Check that "make install" installed de,po and fr.po but not es.po.
test -f "$instdir"/share/pot-format-java2/resources/foo-bar_de.class
test -f "$instdir"/share/pot-format-java2/resources/foo-bar_fr.class
- test ! -f "$instdir"/share/pot-format-java2/resources/foo-bar_es.class
+ test ! -r "$instdir"/share/pot-format-java2/resources/foo-bar_es.class
else
# Check that "make install" installed de.po but not fr.po nor es.po.
test -f "$instdir"/share/pot-format-java2/resources/foo-bar_de.class
- test ! -f "$instdir"/share/pot-format-java2/resources/foo-bar_fr.class
- test ! -f "$instdir"/share/pot-format-java2/resources/foo-bar_es.class
+ test ! -r "$instdir"/share/pot-format-java2/resources/foo-bar_fr.class
+ test ! -r "$instdir"/share/pot-format-java2/resources/foo-bar_es.class
fi
- test ! -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.class
- test ! -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.class
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.class
- test ! -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.class
+ test ! -r "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.class
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.class
+ test ! -r "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
# Check that "make distdir" creates the expected .pot file.
$MAKE distdir
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
test -f $sourcedir/posub/foo-bar-de.po
- test ! -f $sourcedir/posub/foo-bar-de.class
+ test ! -r $sourcedir/posub/foo-bar-de.class
test -f $sourcedir/posub/foo-bar_de.class
test -f $sourcedir/posub/foo-bar-fr.po
- test ! -f $sourcedir/posub/foo-bar-fr.class
+ test ! -r $sourcedir/posub/foo-bar-fr.class
test -f $sourcedir/posub/foo-bar_fr.class
- test ! -f $sourcedir/posub/foo-bar-de.mo
- test ! -f $sourcedir/posub/foo-bar-fr.mo
+ test ! -r $sourcedir/posub/foo-bar-de.mo
+ test ! -r $sourcedir/posub/foo-bar-fr.mo
# Check that the tarball contains posub/foo-bar-{de,fr}.{po,class} but not
# the others, regardless whether LINGUAS was specified or not.
$MAKE install
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
test -f $sourcedir/posub/foo-bar-de.qm
test -f $sourcedir/posub/foo-bar-fr.po
test -f $sourcedir/posub/foo-bar-fr.qm
- test ! -f $sourcedir/posub/foo-bar-de.mo
- test ! -f $sourcedir/posub/foo-bar-fr.mo
+ test ! -r $sourcedir/posub/foo-bar-de.mo
+ test ! -r $sourcedir/posub/foo-bar-fr.mo
if test -z "$config_options"; then
# Check that "make install" installed de,po and fr.po but not es.po.
test -f "$instdir"/share/pot-format-qt1/locale/foo-bar_de.qm
test -f "$instdir"/share/pot-format-qt1/locale/foo-bar_fr.qm
- test ! -f "$instdir"/share/pot-format-qt1/locale/foo-bar_es.qm
+ test ! -r "$instdir"/share/pot-format-qt1/locale/foo-bar_es.qm
else
# Check that "make install" installed de.po but not fr.po nor es.po.
test -f "$instdir"/share/pot-format-qt1/locale/foo-bar_de.qm
- test ! -f "$instdir"/share/pot-format-qt1/locale/foo-bar_fr.qm
- test ! -f "$instdir"/share/pot-format-qt1/locale/foo-bar_es.qm
+ test ! -r "$instdir"/share/pot-format-qt1/locale/foo-bar_fr.qm
+ test ! -r "$instdir"/share/pot-format-qt1/locale/foo-bar_es.qm
fi
- test ! -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.qm
- test ! -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.qm
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.qm
- test ! -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.qm
+ test ! -r "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.qm
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.qm
+ test ! -r "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
# Check that "make distdir" creates the expected .pot file.
$MAKE distdir
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
test -f $sourcedir/posub/foo-bar-de.qm
test -f $sourcedir/posub/foo-bar-fr.po
test -f $sourcedir/posub/foo-bar-fr.qm
- test ! -f $sourcedir/posub/foo-bar-de.mo
- test ! -f $sourcedir/posub/foo-bar-fr.mo
+ test ! -r $sourcedir/posub/foo-bar-de.mo
+ test ! -r $sourcedir/posub/foo-bar-fr.mo
# Check that the tarball contains posub/foo-bar-{de,fr}.{po,qm} but not
# the others, regardless whether LINGUAS was specified or not.
$MAKE install
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
test -f $sourcedir/posub/foo-bar-de.po
- test ! -f $sourcedir/posub/foo-bar-de.msg
+ test ! -r $sourcedir/posub/foo-bar-de.msg
test -f $sourcedir/posub/foo-bar/de.msg
test -f $sourcedir/posub/foo-bar-fr_CA.po
- test ! -f $sourcedir/posub/foo-bar-fr_CA.msg
+ test ! -r $sourcedir/posub/foo-bar-fr_CA.msg
test -f $sourcedir/posub/foo-bar/fr_ca.msg
- test ! -f $sourcedir/posub/foo-bar-de.mo
- test ! -f $sourcedir/posub/foo-bar-fr_CA.mo
+ test ! -r $sourcedir/posub/foo-bar-de.mo
+ test ! -r $sourcedir/posub/foo-bar-fr_CA.mo
if test -z "$config_options"; then
# Check that "make install" installed de,po and fr_CA.po but not es.po.
test -f "$instdir"/share/pot-format-tcl1/msgs/foo-bar/de.msg
test -f "$instdir"/share/pot-format-tcl1/msgs/foo-bar/fr_ca.msg
- test ! -f "$instdir"/share/pot-format-tcl1/msgs/foo-bar/es.msg
+ test ! -r "$instdir"/share/pot-format-tcl1/msgs/foo-bar/es.msg
else
# Check that "make install" installed de.po but not fr_CA.po nor es.po.
test -f "$instdir"/share/pot-format-tcl1/msgs/foo-bar/de.msg
- test ! -f "$instdir"/share/pot-format-tcl1/msgs/foo-bar/fr_ca.msg
- test ! -f "$instdir"/share/pot-format-tcl1/msgs/foo-bar/es.msg
+ test ! -r "$instdir"/share/pot-format-tcl1/msgs/foo-bar/fr_ca.msg
+ test ! -r "$instdir"/share/pot-format-tcl1/msgs/foo-bar/es.msg
fi
- test ! -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.msg
- test ! -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.msg
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.msg
- test ! -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.msg
+ test ! -r "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.msg
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.msg
+ test ! -r "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
# Check that "make distdir" creates the expected .pot file.
$MAKE distdir
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
test -f $sourcedir/posub/foo-bar-de.po
- test ! -f $sourcedir/posub/foo-bar-de.msg
+ test ! -r $sourcedir/posub/foo-bar-de.msg
test -f $sourcedir/posub/foo-bar/de.msg
test -f $sourcedir/posub/foo-bar-fr_CA.po
- test ! -f $sourcedir/posub/foo-bar-fr_CA.msg
+ test ! -r $sourcedir/posub/foo-bar-fr_CA.msg
test -f $sourcedir/posub/foo-bar/fr_ca.msg
- test ! -f $sourcedir/posub/foo-bar-de.mo
- test ! -f $sourcedir/posub/foo-bar-fr_CA.mo
+ test ! -r $sourcedir/posub/foo-bar-de.mo
+ test ! -r $sourcedir/posub/foo-bar-fr_CA.mo
# Check that the tarball contains posub/foo-bar-{de,fr}.{po,msg} but not
# the others, regardless whether LINGUAS was specified or not.
$MAKE install
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Check that "make install" installed de,po and fr.po but not es.po.
test -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
test -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
else
# Check that "make install" installed de.po but not fr.po nor es.po.
test -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
fi
# Check that "make distdir" creates the expected .pot file.
$MAKE distdir
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
$MAKE distdir
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
$MAKE distdir
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
$MAKE distdir
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
$MAKE install
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Check that no .mo file was installed, although posub/foo-bar-de.po and
# posub/foo-bar-de.mo exist.
- test ! -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
# Try modifying a source file.
cat > $sourcedir/src/main.c << 'END'
$MAKE install
- test ! -f $sourcedir/posub/foo-bar.pot
- test ! -f $sourcedir/posub/foo-bar-de.mo
- test ! -f $sourcedir/posub/foo-bar-fr.mo
+ test ! -r $sourcedir/posub/foo-bar.pot
+ test ! -r $sourcedir/posub/foo-bar-de.mo
+ test ! -r $sourcedir/posub/foo-bar-fr.mo
# Check that "make install" installed none of de.po, fr.po, es.po.
- test ! -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
# Check that "make distdir" creates the expected .pot file, .po files
# and .mo files.
$MAKE distdir
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
$MAKE distdir
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
diff $sourcedir/posub/foo-bar.pot $sourcedir/expected
rm -f $sourcedir/posub/foo-bar.pot
$MAKE install
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
diff $sourcedir/posub/foo-bar.pot $sourcedir/expected
# Try modifying a source file.
$MAKE install
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected1
rm -f actual
test -f $sourcedir/posub/foo-baz.pot
- test $builddir = '.' || test ! -f posub/foo-baz.pot
+ test $builddir = '.' || test ! -r posub/foo-baz.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-baz.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected2
rm -f actual
# languages.
test -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
test -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/it/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/it/LC_MESSAGES/foo-bar.mo
test -f "$instdir"/share/locale/de/LC_MESSAGES/foo-baz.mo
test -f "$instdir"/share/locale/it/LC_MESSAGES/foo-baz.mo
- test ! -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-baz.mo
+ test ! -r "$instdir"/share/locale/fr/LC_MESSAGES/foo-baz.mo
# Check that the two .mo files for the same language are different.
cmp "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo \
"$instdir"/share/locale/de/LC_MESSAGES/foo-baz.mo && Exit 1
$MAKE install
test -f $sourcedir/foo-bar.pot
- test $builddir = '.' || test ! -f foo-bar.pot
+ test $builddir = '.' || test ! -r foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Check that "make install" installed de,po and fr.po but not es.po.
test -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
test -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
else
# Check that "make install" installed de.po but not fr.po nor es.po.
test -f "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
- test ! -f "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/fr/LC_MESSAGES/foo-bar.mo
+ test ! -r "$instdir"/share/locale/es/LC_MESSAGES/foo-bar.mo
fi
# Check that "make distdir" creates the expected .pot file.
$MAKE distdir
test -f $sourcedir/foo-bar.pot
- test $builddir = '.' || test ! -f foo-bar.pot
+ test $builddir = '.' || test ! -r foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
$MAKE distdir
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
$MAKE distdir
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
$MAKE distdir
test -f $sourcedir/posub/foo-bar.pot
- test $builddir = '.' || test ! -f posub/foo-bar.pot
+ test $builddir = '.' || test ! -r posub/foo-bar.pot
grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
$MAKE distdir
test -f $sourcedir/maude.pot
- test $builddir = '.' || test ! -f maude.pot
+ test $builddir = '.' || test ! -r maude.pot
grep -v 'POT-Creation-Date' $sourcedir/maude.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual