summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey V. Udaltsov <svu@gnome.org>2010-03-25 23:18:48 +0000
committerSergey V. Udaltsov <svu@gnome.org>2010-03-25 23:18:48 +0000
commit8b0a3ea7c0d599fdcf560d813ccc4ff20fa1aa82 (patch)
treebea32f047ad0a7c0d878990b04cb793f05fb7b9d /tests
parent5580979e8edf7dd5b358d6ade85806a27064ec59 (diff)
Fix short descriptions to match ISO3166-alpha3 codes
Most of short descriptions are fixed to be valid ISO codes. Some of them cannot be bound to ISO codes. Added test script to validate codes. Closing https://bugs.freedesktop.org/show_bug.cgi?id=27306
Diffstat (limited to 'tests')
-rwxr-xr-xtests/testShortDescriptions6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testShortDescriptions b/tests/testShortDescriptions
new file mode 100755
index 00000000..886b5ab0
--- /dev/null
+++ b/tests/testShortDescriptions
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+awk '/shortDescr/{print toupper($0)}' ../rules/base.xml.in | sed 's/<[^>]*>//g;s/ //g' | sort | uniq > xml.sd
+awk '{print $1}' ../docs/iso3166-3.csv | sort > iso.sd
+diff -u iso.sd xml.sd | grep '+'
+