]> git.sesse.net Git - vlc/commitdiff
test: check POTFILES.in in test suite
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 8 Jan 2014 17:40:16 +0000 (19:40 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 9 Jan 2014 18:57:01 +0000 (20:57 +0200)
(It is already tested in dist(check) but that is way too slow.)

test/Makefile.am
test/check_POTFILES.sh [new file with mode: 0755]

index 1393df2dbd7f01934cc70de15a3b3fb459d07dca..91b3c5b9612634b4b7f64fa7d99d37ab7e283dea 100644 (file)
@@ -23,7 +23,8 @@ check_PROGRAMS = \
         $(NULL)
 
 check_SCRIPTS = \
-    modules/lua/telnet.sh
+       modules/lua/telnet.sh \
+       check_POTFILES.sh
 
 # Disabled test:
 # meta: No suitable test file
@@ -37,7 +38,7 @@ EXTRA_DIST = samples/empty.voc samples/image.jpg $(check_SCRIPTS)
 
 check_HEADERS = libvlc/test.h libvlc/libvlc_additions.h
 
-TESTS = $(check_PROGRAMS)
+TESTS = $(check_PROGRAMS) check_POTFILES.sh
 
 DISTCLEANFILES = samples/test.sample samples/meta.sample
 
diff --git a/test/check_POTFILES.sh b/test/check_POTFILES.sh
new file mode 100755 (executable)
index 0000000..f0d7ca9
--- /dev/null
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+top_srcdir="${srcdir}/.."
+
+set -xe
+
+cd ${top_srcdir}
+
+grep -v '^#' po/POTFILES.in | \
+while read f
+do
+       test -n "$f" || continue
+       if test ! -f "$f"
+       then
+               echo "$f: source file missing!" >&2
+               exit 1
+       fi
+done