Commit 0fd03f12 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Build video stream unit tests only when video is enabled.

parent a7300769
......@@ -9,13 +9,16 @@ if BUILD_TESTS
noinst_PROGRAMS=mediastreamer2_tester
mediastreamer2_tester_SOURCES= \
mediastreamer2_tester.c mediastreamer2_tester.h \
mediastreamer2_tester_private.c mediastreamer2_tester_private.h \
mediastreamer2_basic_audio_tester.c \
mediastreamer2_sound_card_tester.c \
mediastreamer2_audio_stream_tester.c \
mediastreamer2_video_stream_tester.c \
mediastreamer2_framework_tester.c
mediastreamer2_tester.c mediastreamer2_tester.h \
mediastreamer2_tester_private.c mediastreamer2_tester_private.h \
mediastreamer2_basic_audio_tester.c \
mediastreamer2_sound_card_tester.c \
mediastreamer2_audio_stream_tester.c \
mediastreamer2_framework_tester.c
if BUILD_VIDEO
mediastreamer2_tester_SOURCES+= mediastreamer2_video_stream_tester.c
endif
AM_CPPFLAGS=\
......@@ -40,6 +43,10 @@ AM_LDFLAGS=-no-undefined -export-dynamic
AM_CFLAGS=$(STRICT_OPTIONS) $(ORTP_CFLAGS) $(CUNIT_CFLAGS)
if BUILD_VIDEO
AM_CFLAGS+=$(VIDEO_CFLAGS) $(GLEW_CFLAGS)
endif
test: mediastreamer2_tester
./mediastreamer2_tester $(TEST_OPTIONS)
......
......@@ -114,7 +114,9 @@ void mediastreamer2_tester_init(void) {
add_test_suite(&basic_audio_test_suite);
add_test_suite(&sound_card_test_suite);
add_test_suite(&audio_stream_test_suite);
#ifdef VIDEO_ENABLED
add_test_suite(&video_stream_test_suite);
#endif
add_test_suite(&framework_test_suite);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment