diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2002-05-18 23:18:22 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2002-05-18 23:18:22 +0000 |
commit | 51133a7db0a4a62ea05d4aacd31aa0cf9cedf0ec (patch) | |
tree | f075fa9020d7ec0ba1e1cf7700da5e0430d525f6 /tests/Makefile | |
parent | 0f1578afcc087f6bad330569dc462c361a926a90 (diff) | |
download | ffmpeg-51133a7db0a4a62ea05d4aacd31aa0cf9cedf0ec.tar.gz |
added first version of regression tests - simply type 'make test' to test every codec and some mux/demuxes - added simple synthetic audio and video bitstreams generators so that no big streams needs to be used
Originally committed as revision 532 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000000..3a7bec0070 --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,40 @@ +# +# Makefile for tests +# (c) 2002 Gerard Lantau +# +include ../config.mak + +VPATH=$(SRC_PATH)/tests +CFLAGS=-O2 -Wall -g +REFFILE=$(SRC_PATH)/tests/ffmpeg.regression.ref + +all: test + +# fast regression tests for all codecs +test mpeg4 mpeg: vsynth1/0.pgm asynth1.sw + @$(SRC_PATH)/tests/regression.sh $@ $(REFFILE) + +# update the regression test with the current results +updatetest: + cp /tmp/ffmpeg.regression $(REFFILE) + +# video generation + +vsynth1/0.pgm: videogen + @mkdir -p vsynth1 + ./videogen 'vsynth1/' + +videogen: videogen.c + $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< + +# audio generation + +asynth1.sw: audiogen + ./audiogen $@ + +audiogen: audiogen.c + $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< + +clean: + rm -rf vsynth1 + rm -f asynth1.sw *~ audiogen videogen |