[FFmpeg-devel] [PATCH 2/5] fate: add bprint test.
Nicolas George
nicolas.george at normalesup.org
Sun Jun 3 21:44:47 CEST 2012
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
tests/fate/libavutil.mak | 4 ++++
tests/ref/fate/bprint | 14 ++++++++++++++
2 files changed, 18 insertions(+)
create mode 100644 tests/ref/fate/bprint
diff --git a/tests/fate/libavutil.mak b/tests/fate/libavutil.mak
index 343d456..e9bced8 100644
--- a/tests/fate/libavutil.mak
+++ b/tests/fate/libavutil.mak
@@ -12,6 +12,10 @@ FATE_LIBAVUTIL += fate-base64
fate-base64: libavutil/base64-test$(EXESUF)
fate-base64: CMD = run libavutil/base64-test
+FATE_LIBAVUTIL += fate-bprint
+fate-bprint: libavutil/bprint-test$(EXESUF)
+fate-bprint: CMD = run libavutil/bprint-test
+
FATE_LIBAVUTIL += fate-crc
fate-crc: libavutil/crc-test$(EXESUF)
fate-crc: CMD = run libavutil/crc-test
diff --git a/tests/ref/fate/bprint b/tests/ref/fate/bprint
new file mode 100644
index 0000000..bc888da
--- /dev/null
+++ b/tests/ref/fate/bprint
@@ -0,0 +1,14 @@
+Short text in unlimited buffer: 174/174
+ 1
+ 1 1
+ 1 2 1
+ 1 3 3 1
+ 1 4 6 4 1
+ 1 5 10 10 5 1
+
+Long text in unlimited buffer: 2834/2834
+Long text in limited buffer: 2047/2834
+Short text in automatic buffer: 174/174
+Long text in automatic buffer: 1003/2834
+Long text count only buffer: 0/2834
+Long text count only buffer: 255/2834
--
1.7.10
More information about the ffmpeg-devel
mailing list