From 59e8ec0aa8ab174701d01a3bfe96fedd0b7fcead Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Fri, 6 Nov 2015 00:12:11 +0200 Subject: movenc: Add an API unit test for fragmenting options/calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Contrary to the normal fate tests that run via avconv, this tests nontrivial call sequences that are only doable via the API (mainly for different corner cases when using the muxer for segmenting). The test muxes fake packet data (with extradata that looks enough like proper data to make the file be viewable with e.g. boxdumper) and checks the hash of the produced files. The test also verifies that fragments produced via different call sequences remain identical (to avoid e.g. updating the output hashes and suddenly having fragments that used to be identical suddenly diverging), for fragments written with frag_discont and/or delay_moov. Signed-off-by: Martin Storsjö --- tests/fate/libavformat.mak | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/fate/libavformat.mak') diff --git a/tests/fate/libavformat.mak b/tests/fate/libavformat.mak index a9c02bcbaf..b9cca35d30 100644 --- a/tests/fate/libavformat.mak +++ b/tests/fate/libavformat.mak @@ -14,5 +14,9 @@ FATE_LIBAVFORMAT-yes += fate-url fate-url: libavformat/url-test$(EXESUF) fate-url: CMD = run libavformat/url-test +FATE_LIBAVFORMAT-$(CONFIG_MOV_MUXER) += fate-movenc +fate-movenc: libavformat/movenc-test$(EXESUF) +fate-movenc: CMD = run libavformat/movenc-test + FATE-$(CONFIG_AVFORMAT) += $(FATE_LIBAVFORMAT-yes) fate-libavformat: $(FATE_LIBAVFORMAT) -- cgit v1.2.3