aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-08-23 16:09:45 -0500
committerTed Gould <ted@gould.cx>2011-08-23 16:09:45 -0500
commitf4e09aff23b8436d5f9ce86a4c6662a0f66f4671 (patch)
tree0776b4bc2db775b07625bf4fc7d16efaed8c5e27 /Makefile.am
parentc4d38ac2f3589a83cbd9127c178da4926d5773aa (diff)
downloadayatana-indicator-session-f4e09aff23b8436d5f9ce86a4c6662a0f66f4671.tar.gz
ayatana-indicator-session-f4e09aff23b8436d5f9ce86a4c6662a0f66f4671.tar.bz2
ayatana-indicator-session-f4e09aff23b8436d5f9ce86a4c6662a0f66f4671.zip
Add a test to test the space before an ellipsis at the end of a string
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am16
1 files changed, 15 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 5850769..c9e4a44 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,8 +35,12 @@ dist-hook:
fi
TESTS = \
- test-ellipsis
+ test-ellipsis \
+ test-space-ellipsis
+#####
+# 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)" >> $@
@@ -44,4 +48,14 @@ test-ellipsis: po
@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 \"Ellipsis found in user visible strings\" >&2 && exit 1" >> $@
+ @echo "exit 0" >> $@
+ @chmod +x $@
+
CLEANFILES = $(TESTS)