[FFmpeg-devel] [PATCH] Fix "make test" when shared libraries are built.

Diego 'Flameeyes' Pettenò flameeyes
Thu Oct 9 15:23:49 CEST 2008

When building shared libraries the default make test was going to use
the system libraries, causing the tests to fail, or not be consistent
with the code just built.

By setting LD_LIBRARY_PATH explicitly, make test will ensure the
libraries thar are being built are used, and make test will succeed
and be consistent with the code.

 Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 0b1d2da..0e716ce 100644
--- a/Makefile
+++ b/Makefile
@@ -162,7 +162,9 @@ distclean::
 # regression tests
-fulltest test: codectest libavtest seektest
+fulltest test:
+	$(MAKE) codectest libavtest seektest \
+	LD_LIBRARY_PATH=$(BUILD_ROOT)/libavutil:$(BUILD_ROOT)/libavcodec:$(BUILD_ROOT)/libavformat:$(BUILD_ROOT)/libavdevice:$(BUILD_ROOT)/libavfilter:$(BUILD_ROOT)/libswscale:$(BUILD_ROOT)/libpostproc
 FFMPEG_REFFILE   = $(SRC_PATH)/tests/ffmpeg.regression.ref
 FFSERVER_REFFILE = $(SRC_PATH)/tests/ffserver.regression.ref

More information about the ffmpeg-devel mailing list