diff options
| author | Charles Kerr <charles.kerr@canonical.com> | 2012-07-23 21:59:23 +0000 |
|---|---|---|
| committer | Tarmac <Unknown> | 2012-07-23 21:59:23 +0000 |
| commit | 38ab0ef8b7c9edc7d2a12bf411faa541872b0b43 (patch) | |
| tree | d185da74bab5a69516a3be5a55817dfbcfbcc394 /Makefile.am | |
| parent | 5b3945bab742d40e33e8a9bb3077cdc2b3898b22 (diff) | |
| parent | 894f448bb3ce9c0cd033f486aaaedda0d7a4281b (diff) | |
| download | ayatana-indicator-session-38ab0ef8b7c9edc7d2a12bf411faa541872b0b43.tar.gz ayatana-indicator-session-38ab0ef8b7c9edc7d2a12bf411faa541872b0b43.tar.bz2 ayatana-indicator-session-38ab0ef8b7c9edc7d2a12bf411faa541872b0b43.zip | |
Separate testing-strings utility into its own Makefile for re-use.. Approved by Allan LeSage.
Diffstat (limited to 'Makefile.am')
| -rw-r--r-- | Makefile.am | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/Makefile.am b/Makefile.am index ad42d8e..8fb5d77 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,43 +40,4 @@ dist-hook: echo Failed to generate AUTHORS: not a branch >&2; \ fi -TESTS = \ - test-ellipsis \ - test-space-ellipsis \ - test-ascii-quotes - -##### -# Tests for there being proper ellipsis instead of three periods in a row -##### -test-ellipsis: po - @echo "#!/bin/bash" > $@ - @echo "(cd po && make $(GETTEXT_PACKAGE).pot)" >> $@ - @echo "grep -c -e \"^msgid.*\.\.\.\\\"\" po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"Ellipsis found in user visible strings\" >&2 && exit 1" >> $@ - @echo "exit 0" >> $@ - @chmod +x $@ - -##### -# Tests for there being a space before an ellipsis -##### -test-space-ellipsis: po - @echo "#!/bin/bash" > $@ - @echo "(cd po && make $(GETTEXT_PACKAGE).pot)" >> $@ - @echo "grep -c -e \"^msgid.* …\\\"\" po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"Space before ellipsis found in user visible strings\" >&2 && exit 1" >> $@ - @echo "exit 0" >> $@ - @chmod +x $@ - -##### -# Tests for ASCII quote types -##### -test-ascii-quotes: po - @echo "#!/bin/bash" > $@ - @echo "(cd po && make $(GETTEXT_PACKAGE).pot)" >> $@ - @echo "grep -c -e \"^msgid \\\".*'.*\\\"\" po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII apostrophy found in user visible strings\" >&2 && exit 1" >> $@ - @echo "grep -c -e \"^msgid \\\".*\\\".*\\\"\" po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII quote found in user visible strings\" >&2 && exit 1" >> $@ - @echo "grep -c -e \"^msgid \\\".*\\\`.*\\\"\" po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII backtick found in user visible strings\" >&2 && exit 1" >> $@ - @echo "exit 0" >> $@ - @chmod +x $@ - -CLEANFILES = $(TESTS) - include $(top_srcdir)/Makefile.am.coverage |
