summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-06-03 19:00:22 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-06-07 22:28:32 +0200
commit7a2b429175d9252c3a156e8f6795d5c6b85f07f1 (patch)
treeaed2505881d9f5decb13591820c12063652d1e88 /tests
parentb3e2bb08a99a81bac672f6ba3958ca175bf06007 (diff)
fate: add bprint test.
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/libavutil.mak4
-rw-r--r--tests/ref/fate/bprint14
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/fate/libavutil.mak b/tests/fate/libavutil.mak
index 343d456386..e9bced8e3b 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 0000000000..bc888dab4d
--- /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