summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-01-15 15:07:44 +0200
committerMartin Storsjö <martin@martin.st>2013-01-15 23:18:08 +0200
commitc2603aa25b75318df94d400eb60557123fa42a75 (patch)
tree840053bdf78ebd05330a6dd730392ac00bd25d19 /tests
parent3130fa51a5d6f3fd5dc08df7649d902d0eea382e (diff)
lavf: Add a fate test for the SRTP functions
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/libavformat.mak4
-rw-r--r--tests/ref/fate/srtp8
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/fate/libavformat.mak b/tests/fate/libavformat.mak
index b6eda42a63..20bc31999f 100644
--- a/tests/fate/libavformat.mak
+++ b/tests/fate/libavformat.mak
@@ -1,3 +1,7 @@
+FATE_LIBAVFORMAT += fate-srtp
+fate-srtp: libavformat/srtp-test$(EXESUF)
+fate-srtp: CMD = run libavformat/srtp-test
+
FATE_LIBAVFORMAT += fate-url
fate-url: libavformat/url-test$(EXESUF)
fate-url: CMD = run libavformat/url-test
diff --git a/tests/ref/fate/srtp b/tests/ref/fate/srtp
new file mode 100644
index 0000000000..091d3f3a0d
--- /dev/null
+++ b/tests/ref/fate/srtp
@@ -0,0 +1,8 @@
+80e0123412345678123456780102030405
+Decrypted content matches input
+Decrypted content matches input
+81c90007123456788765432100000000000012340000069ec73069ba000001fd
+Decrypted content matches input
+Decrypted content matches input
+80e0123412345678123456780102030405
+81c90007123456788765432100000000000012340000069ec73069ba000001fd