add make test target

This commit is contained in:
Jehan Monnier 2013-12-05 16:47:36 +01:00
parent e67a8737dd
commit eb70e7067b
2 changed files with 11 additions and 2 deletions

View file

@ -47,3 +47,4 @@ mediastreamer2/src/videofilters/winvideods.c
mediastreamer2/src/videofilters/winvideo2.c
mediastreamer2/src/videofilters/x11video.c
mediastreamer2/src/voip/ice.c
build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Resources/AppResources.Designer.cs

View file

@ -1,10 +1,10 @@
EXTRA_DIST=pauline_rc laure_rc marie_rc marie_no_sdp_rc
EXTRA_DIST= empty_rc laure_rc marie_early_rc marie_no_sdp_rc marie_rc multi_account_lrc pauline_alt_rc \
pauline_rc pauline_wild_rc tester_hosts sounds images certificates
if BUILD_CUNIT_TESTS
noinst_PROGRAMS=liblinphone_tester
TESTS=$(noinst_PROGRAMS)
liblinphone_tester_SOURCES= liblinphone_tester.c liblinphone_tester.h\
setup_tester.c \
@ -29,4 +29,12 @@ AM_LDFLAGS=$(CUNIT_LIBS)
AM_CFLAGS=$(STRICT_OPTIONS) -DIN_LINPHONE $(ORTP_CFLAGS) $(MEDIASTREAMER_CFLAGS) $(CUNIT_CFLAGS)
test: liblinphone_tester
./liblinphone_tester --config $(abs_srcdir)
else
test:
@echo "CUnit must be installed to be able to run the tests!"
endif