Makefile.am 5.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
#EXTRA_DIST= tester_hosts \
#sounds\ahbahouaismaisbon.wav		\
#sounds\hello8000.wav			\
#sounds\oldphone.wav			\
#sounds\sintel_trailer_opus_h264.mkv	\
#sounds\sintel_trailer_pcmu_h264.mkv\
#sounds\hello8000.mkv			\
#sounds\hello8000_mkv_ref.wav		\
#sounds\ringback.wav			\
#sounds\sintel_trailer_opus_vp8.mkv		\
#sounds\vrroom.wav \
#images\nowebcamCIF.jpg\
#certificates rcfiles sipp 



#DIST_SUBDIRS = sounds  certificates rcfiles images sipp   
TESTER_SOUNDS = sounds/ahbahouaismaisbon.wav \
				sounds/hello8000.wav  \
				sounds/oldphone.wav \
				sounds/sintel_trailer_opus_h264.mkv \
				sounds/sintel_trailer_pcmu_h264.mkv \
				sounds/hello8000.mkv \
				sounds/hello8000_mkv_ref.wav\
				sounds/ringback.wav  \
				sounds/sintel_trailer_opus_vp8.mkv \
				sounds/vrroom.wav
sounddir = $(datadir)/liblinphone_tester/sounds
sound_DATA = $(TESTER_SOUNDS)	

SIPP_FILES = sipp/call_invite_200ok_without_contact_header.xml       \
			sipp/call_with_multiple_audio_mline_in_sdp.xml          \
			sipp/call_with_video_mline_before_audio_in_sdp.xml\
			sipp/call_with_audio_mline_before_video_in_sdp.xml   \
			sipp/call_with_multiple_video_mline_in_sdp.xml      \
			sipp/sip_update_within_icoming_reinvite_with_no_sdp.xml


sippdir = $(datadir)/liblinphone_tester/sipp
sipp_DATA = $(SIPP_FILES)

42
CERTIFICATE_ALT_FILES = certificates/altname/agent.pem           \
43
					certificates/altname/cafile.pem          \
44 45 46 47 48 49 50 51 52 53 54
					certificates/altname/openssl-altname.cnf

certificatesaltdir=$(datadir)/liblinphone_tester/certificates/altname
certificatesalt_DATA = $(CERTIFICATE_ALT_FILES)

CERTIFICATE_CN_FILES = certificates/cn/agent.pem      \
					 certificates/cn/cafile.pem     \
					 certificates/cn/openssl-cn.cnf

certificatescndir=$(datadir)/liblinphone_tester/certificates/cn
certificatescn_DATA = $(CERTIFICATE_CN_FILES)
55 56


Simon Morlat's avatar
Simon Morlat committed
57 58
CERTIFICATE_FILES = $(CERTIFICATE_ALT_FILES) $(CERTIFICATE_CN_FILES)

59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
RCFILES = \
					rcfiles/empty_rc\
					rcfiles/laure_call_logs_rc\
					rcfiles/laure_rc\
					rcfiles/marie_early_rc\
					rcfiles/marie_h264_rc\
					rcfiles/marie_quality_reporting_rc\
					rcfiles/marie_rc\
					rcfiles/marie_rc_rtcp_xr\
					rcfiles/marie_remote_404_rc\
					rcfiles/marie_remote_default_values_rc\
					rcfiles/marie_remote_https_rc\
					rcfiles/marie_remote_invalid_rc\
					rcfiles/marie_remote_invalid_uri_rc\
					rcfiles/marie_remote_localfile2_rc\
					rcfiles/marie_remote_localfile_android_rc\
					rcfiles/marie_remote_localfile_rc\
					rcfiles/marie_remote_localfile_win10_rc\
					rcfiles/marie_remote_rc\
					rcfiles/marie_sips_rc\
					rcfiles/marie_transient_remote_rc\
					rcfiles/marie_zrtp_aes256_rc\
					rcfiles/marie_zrtp_b256_rc\
					rcfiles/marie_zrtp_srtpsuite_aes256_rc\
					rcfiles/michelle_rc\
					rcfiles/multi_account_rc\
					rcfiles/pauline_alt_rc\
					rcfiles/pauline_h264_rc\
					rcfiles/pauline_rc\
					rcfiles/pauline_rc_rtcp_xr\
					rcfiles/pauline_sips_rc\
					rcfiles/pauline_tcp_rc\
					rcfiles/pauline_wild_rc\
					rcfiles/pauline_zrtp_aes256_rc\
					rcfiles/pauline_zrtp_b256_rc\
					rcfiles/pauline_zrtp_srtpsuite_aes256_rc\
					rcfiles/remote_zero_length_params_rc\
					rcfiles/stun_rc\
					rcfiles/upnp_rc\
					rcfiles/zero_length_params_rc

rcfilesdir = $(datadir)/liblinphone_tester/rcfiles
rcfiles_DATA = $(RCFILES)

IMAGE_FILES = images/nowebcamCIF.jpg

imagesdir = $(datadir)/liblinphone_tester/images
images_DATA = $(IMAGE_FILES)

COMMON_FILE = common/bc_completion
commondir = $(datadir)/liblinphone_tester/common
common_DATA = $(COMMON_FILE)
#EXTRA_DIST=tester_hosts sounds  certificates rcfiles images sipp   

EXTRA_DIST = tester_hosts\
			messages.db\
			$(TESTER_SOUNDS)\
			$(SIPP_FILES)\
			$(CERTIFICATE_FILES)\
			$(RCFILES)\
			$(IMAGE_FILES)\
			$(COMMON_FILE)


Simon Morlat's avatar
Simon Morlat committed
123

jehan's avatar
jehan committed
124 125 126

if BUILD_CUNIT_TESTS

127
# there are 2 targets: liblinphonetester.la and the executable liblinphone_tester
jehan's avatar
jehan committed
128

129 130 131
liblinphonedir = $(includedir)/linphone
liblinphone_HEADERS = liblinphone_tester.h

132

133 134
lib_LTLIBRARIES = liblinphonetester.la

Gautier Pelloux-Prayer's avatar
Gautier Pelloux-Prayer committed
135
liblinphonetester_la_SOURCES = \
136
				accountmanager.c \
137
				call_tester.c \
138
				complex_sip_call_tester.c \
139
				dtmf_tester.c \
Simon Morlat's avatar
Simon Morlat committed
140
				eventapi_tester.c \
Guillaume BIENKOWSKI's avatar
Guillaume BIENKOWSKI committed
141
				flexisip_tester.c \
142
				log_collection_tester.c \
143
				message_tester.c \
144
				multi_call_tester.c \
145
				multicast_call_tester.c \
146
				offeranswer_tester.c \
147 148
				player_tester.c \
				presence_tester.c \
149
				proxy_config_tester.c \
150 151 152 153 154
				quality_reporting_tester.c \
				register_tester.c \
				remote_provisioning_tester.c \
				setup_tester.c \
				stun_tester.c \
155
				tunnel_tester.c \
Gautier Pelloux-Prayer's avatar
Gautier Pelloux-Prayer committed
156
				tester.c \
157
				upnp_tester.c \
Gautier Pelloux-Prayer's avatar
Gautier Pelloux-Prayer committed
158
				video_tester.c \
159
				common/bc_tester_utils.c
160

161 162
liblinphonetester_ladir = $(includedir)/linphone
liblinphonetester_la_HEADERS = common/bc_tester_utils.h
jehan's avatar
jehan committed
163

164 165
liblinphonetester_la_LDFLAGS= -no-undefined
liblinphonetester_la_LIBADD= ../coreapi/liblinphone.la $(CUNIT_LIBS)
jehan's avatar
jehan committed
166

167 168 169 170 171 172
liblinphone_tester_bindir = $(bindir)/liblinphone_tester
liblinphone_testerdir = $(datadir)/liblinphone_tester

dist_liblinphone_tester_DATA =  tester_hosts messages.db


173
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/coreapi -I$(top_srcdir)/tester/common
Simon Morlat's avatar
Simon Morlat committed
174 175 176
AM_CFLAGS    = -DBC_CONFIG_FILE=\"config.h\" $(STRICT_OPTIONS) $(STRICT_OPTIONS_CC) \
		-DIN_LINPHONE $(ORTP_CFLAGS) $(MEDIASTREAMER_CFLAGS) $(CUNIT_CFLAGS) \
		$(BELLESIP_CFLAGS) $(LIBXML2_CFLAGS) $(SQLITE3_CFLAGS)
jehan's avatar
jehan committed
177

178 179
if BUILD_GTK_UI

Simon Morlat's avatar
Simon Morlat committed
180
liblinphonetester_la_LIBADD += $(LIBGTK_LIBS) $(LIBGTKMAC_LIBS)
181 182 183 184
AM_CFLAGS += $(LIBGTK_CFLAGS) $(LIBGTKMAC_CFLAGS) -DHAVE_GTK

endif

185 186
bin_PROGRAMS=

187
if !BUILD_IOS
188
#noinst_PROGRAMS = liblinphone_tester
189
bin_PROGRAMS += liblinphone_tester
190

191
liblinphone_tester_SOURCES = liblinphone_tester.c
192
liblinphone_tester_LDADD   = $(top_builddir)/coreapi/liblinphone.la liblinphonetester.la -lm
jehan's avatar
jehan committed
193

194
endif
jehan's avatar
jehan committed
195 196


jehan's avatar
jehan committed
197
test: liblinphone_tester
198
	./liblinphone_tester  --config $(abs_srcdir) $(TEST_OPTIONS)
jehan's avatar
jehan committed
199

200
else !BUILD_CUNIT_TESTS
jehan's avatar
jehan committed
201 202 203 204

test:
	@echo "CUnit must be installed to be able to run the tests!"

205
endif !BUILD_CUNIT_TESTS