~indicator-applet-developers/indicator-power/trunk.13.04

« back to all changes in this revision

Viewing changes to tests/Makefile.am.strings

  • Committer: Charles Kerr
  • Date: 2012-05-24 14:49:30 UTC
  • mto: This revision was merged to the branch mainline in revision 142.
  • Revision ID: charles.kerr@canonical.com-20120524144930-ofjig1454nob4laz
add private container struct IndicatorPowerDevice

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
TESTS += \
 
2
        test-ellipsis \
 
3
        test-space-ellipsis \
 
4
        test-ascii-quotes
 
5
 
 
6
#####
 
7
# Tests for there being proper ellipsis instead of three periods in a row
 
8
#####
 
9
test-ellipsis: $(top_srcdir)/po
 
10
        @echo "#!/bin/bash" > $@
 
11
        @echo "(cd $(top_srcdir)/po && make $(GETTEXT_PACKAGE).pot)" >> $@
 
12
        @echo "grep -c -e \"^msgid.*\.\.\.\\\"\" $(top_srcdir)/po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"Ellipsis found in user visible strings\" >&2 && exit 1" >> $@
 
13
        @echo "exit 0" >> $@
 
14
        @chmod +x $@
 
15
 
 
16
#####
 
17
# Tests for there being a space before an ellipsis
 
18
#####
 
19
test-space-ellipsis: $(top_srcdir)/po
 
20
        @echo "#!/bin/bash" > $@
 
21
        @echo "(cd $(top_srcdir)/po && make $(GETTEXT_PACKAGE).pot)" >> $@
 
22
        @echo "grep -c -e \"^msgid.* …\\\"\" $(top_srcdir)/po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"Space before ellipsis found in user visible strings\" >&2 && exit 1" >> $@
 
23
        @echo "exit 0" >> $@
 
24
        @chmod +x $@
 
25
 
 
26
#####
 
27
# Tests for ASCII quote types
 
28
#####
 
29
test-ascii-quotes: $(top_srcdir)/po
 
30
        @echo "#!/bin/bash" > $@
 
31
        @echo "(cd $(top_srcdir)/po && make $(GETTEXT_PACKAGE).pot)" >> $@
 
32
        @echo "grep -c -e \"^msgid \\\".*'.*\\\"\" $(top_srcdir)/po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII apostrophy found in user visible strings\" >&2 && exit 1" >> $@
 
33
        @echo "grep -c -e \"^msgid \\\".*\\\".*\\\"\" $(top_srcdir)/po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII quote found in user visible strings\" >&2 && exit 1" >> $@
 
34
        @echo "grep -c -e \"^msgid \\\".*\\\`.*\\\"\" $(top_srcdir)/po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII backtick found in user visible strings\" >&2 && exit 1" >> $@
 
35
        @echo "exit 0" >> $@
 
36
        @chmod +x $@
 
37
 
 
38
CLEANFILES += $(TESTS)