fate/subtitles: add character encoding conversion test.
authorClément Bœsch <ubitux@gmail.com>
Wed, 20 Feb 2013 13:01:48 +0000 (14:01 +0100)
committerClément Bœsch <ubitux@gmail.com>
Fri, 22 Feb 2013 23:24:02 +0000 (00:24 +0100)
tests/fate/subtitles.mak
tests/ref/fate/sub-charenc [new file with mode: 0644]

index 7b0dd43..e0681e5 100644 (file)
@@ -52,6 +52,10 @@ fate-sub-vplayer: CMD = md5 -i $(SAMPLES)/sub/VPlayer_capability_tester.txt -f a
 FATE_SUBTITLES_ASS-$(call DEMDEC, WEBVTT, WEBVTT) += fate-sub-webvtt
 fate-sub-webvtt: CMD = md5 -i $(SAMPLES)/sub/WebVTT_capability_tester.vtt -f ass
 
+FATE_SUBTITLES_CHARENC-$(HAVE_ICONV) = fate-sub-charenc
+FATE_SUBTITLES_ASS-$(call DEMDEC, MICRODVD, MICRODVD) += $(FATE_SUBTITLES_CHARENC-yes)
+fate-sub-charenc: CMD = md5 -sub_charenc cp1251 -i $(SAMPLES)/sub/cp1251-subtitles.sub -f ass
+
 FATE_SUBTITLES-$(call ENCMUX, ASS, ASS) += $(FATE_SUBTITLES_ASS-yes)
 FATE_SUBTITLES += $(FATE_SUBTITLES-yes)
 
diff --git a/tests/ref/fate/sub-charenc b/tests/ref/fate/sub-charenc
new file mode 100644 (file)
index 0000000..3c4825e
--- /dev/null
@@ -0,0 +1 @@
+a39d7e299a8e25b4ffece0f8d64bf19e