[FFmpeg-cvslog] fate: add AVDictionary tests
Lukasz Marek
git at videolan.org
Thu Apr 2 23:19:50 CEST 2015
ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki2 at gmail.com> | Wed Apr 1 03:25:24 2015 +0200| [0bf980919ef96da6c04642e634d0f529d6783276] | committer: Lukasz Marek
fate: add AVDictionary tests
Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0bf980919ef96da6c04642e634d0f529d6783276
---
tests/fate/libavutil.mak | 4 ++++
tests/ref/fate/dict | 43 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 47 insertions(+)
diff --git a/tests/fate/libavutil.mak b/tests/fate/libavutil.mak
index 58307ae..ff052e0 100644
--- a/tests/fate/libavutil.mak
+++ b/tests/fate/libavutil.mak
@@ -53,6 +53,10 @@ fate-des: libavutil/des-test$(EXESUF)
fate-des: CMD = run libavutil/des-test
fate-des: REF = /dev/null
+FATE_LIBAVUTIL += fate-dict
+fate-dict: libavutil/dict-test$(EXESUF)
+fate-dict: CMD = run libavutil/dict-test
+
FATE_LIBAVUTIL += fate-eval
fate-eval: libavutil/eval-test$(EXESUF)
fate-eval: CMD = run libavutil/eval-test
diff --git a/tests/ref/fate/dict b/tests/ref/fate/dict
new file mode 100644
index 0000000..837f7b0
--- /dev/null
+++ b/tests/ref/fate/dict
@@ -0,0 +1,43 @@
+Testing av_dict_get_string() and av_dict_parse_string()
+
+aaa aaa b,b bbb c=c ccc ddd d,d eee e=e f,f f=f g=g g,g
+aaa=aaa,b\,b=bbb,c\=c=ccc,ddd=d\,d,eee=e\=e,f\,f=f\=f,g\=g=g\,g
+aaa aaa b,b bbb c=c ccc ddd d,d eee e=e f,f f=f g=g g,g
+aaa aaa bbb bbb ccc ccc \,='" \,='"
+aaa=aaa"bbb=bbb"ccc=ccc"\\,\=\'\"=\\,\=\'\"
+aaa aaa bbb bbb ccc ccc \,='" \,='"
+aaa aaa bbb bbb ccc ccc \,='" \,='"
+aaa=aaa'bbb=bbb'ccc=ccc'\\,\=\'"=\\,\=\'"
+aaa aaa bbb bbb ccc ccc \,='" \,='"
+aaa aaa bbb bbb ccc ccc \,='" \,='"
+aaa"aaa,bbb"bbb,ccc"ccc,\\\,=\'\""\\\,=\'\"
+aaa aaa bbb bbb ccc ccc \,='" \,='"
+aaa aaa bbb bbb ccc ccc \,='" \,='"
+aaa'aaa,bbb'bbb,ccc'ccc,\\\,=\'"'\\\,=\'"
+aaa aaa bbb bbb ccc ccc \,='" \,='"
+aaa aaa bbb bbb ccc ccc \,='" \,='"
+aaa"aaa'bbb"bbb'ccc"ccc'\\,=\'\""\\,=\'\"
+aaa aaa bbb bbb ccc ccc \,='" \,='"
+aaa aaa bbb bbb ccc ccc \,='" \,='"
+aaa'aaa"bbb'bbb"ccc'ccc"\\,=\'\"'\\,=\'\"
+aaa aaa bbb bbb ccc ccc \,='" \,='"
+
+Testing av_dict_set()
+a a
+b b
+c c
+d d
+e e
+ff ff
+
+Testing av_dict_set_int()
+1 1
+2 2
+3 3
+4 4
+5 5
+12 12
+
+Testing av_dict_set() with existing AVDictionaryEntry.key as key
+new val OK
+new val OK
More information about the ffmpeg-cvslog
mailing list