Makefile.am 5.94 KB
Newer Older
Simon Morlat's avatar
Simon Morlat committed
1

2 3
TESTER_SOUNDS = sounds/ahbahouaismaisbon.wav \
				sounds/hello8000.wav  \
4
				sounds/hello44100.wav  \
5 6 7 8 9 10 11 12
				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
Simon Morlat's avatar
Simon Morlat committed
13

14 15 16 17 18 19 20 21 22

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


23
CERTIFICATE_ALT_FILES = certificates/altname/agent.pem           \
24
					certificates/altname/cafile.pem          \
25 26 27 28 29 30
					certificates/altname/openssl-altname.cnf

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

31 32 33 34
CERTIFICATE_CLIENT_FILES = certificates/client/cert.pem \
					certificates/client/key.pem

CERTIFICATE_FILES = $(CERTIFICATE_ALT_FILES) $(CERTIFICATE_CN_FILES) $(CERTIFICATE_CLIENT_FILES)
Simon Morlat's avatar
Simon Morlat committed
35

36
RCFILES = \
37
					rcfiles/account_creator_rc\
Erwan Croze's avatar
Erwan Croze committed
38
					rcfiles/assistant_create.rc\
39
					rcfiles/carddav_rc\
40
					rcfiles/empty_rc\
41
					rcfiles/friends_rc\
42
					rcfiles/laure_call_logs_rc\
43
					rcfiles/laure_rc_udp\
44 45 46 47
					rcfiles/marie_early_rc\
					rcfiles/marie_h264_rc\
					rcfiles/marie_quality_reporting_rc\
					rcfiles/marie_rc\
48
					rcfiles/marie2_rc\
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
					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\
65
					rcfiles/michelle_rc_udp\
66 67 68 69 70 71 72
					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\
73
					rcfiles/pauline_tls_client_rc\
74 75 76 77 78 79 80
					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\
Simon Morlat's avatar
Simon Morlat committed
81
					rcfiles/zero_length_params_rc
82

83

Ghislain MARY's avatar
Ghislain MARY committed
84
IMAGE_FILES = images/linphone.svg images/nowebcamCIF.jpg images/nowebcamVGA.jpg
85

86
VCARDS_FILE = vcards/vcards.vcf vcards/thousand_vcards.vcf
87 88 89 90 91 92 93

EXTRA_DIST = tester_hosts\
			messages.db\
			$(TESTER_SOUNDS)\
			$(SIPP_FILES)\
			$(CERTIFICATE_FILES)\
			$(RCFILES)\
Sylvain Berfini's avatar
Sylvain Berfini committed
94
			$(IMAGE_FILES)\
95
			$(VCARDS_FILE)
jehan's avatar
jehan committed
96

97
if ENABLE_TESTS
jehan's avatar
jehan committed
98

Simon Morlat's avatar
Simon Morlat committed
99 100 101 102 103 104 105 106
sounddir = $(datadir)/liblinphone_tester/sounds
sound_DATA = $(TESTER_SOUNDS)
sippdir = $(datadir)/liblinphone_tester/sipp
sipp_DATA = $(SIPP_FILES)
certificatesaltdir=$(datadir)/liblinphone_tester/certificates/altname
certificatesalt_DATA = $(CERTIFICATE_ALT_FILES)
certificatescndir=$(datadir)/liblinphone_tester/certificates/cn
certificatescn_DATA = $(CERTIFICATE_CN_FILES)
107 108
certificatesclientdir=$(datadir)/liblinphone_tester/certificates/client
certificatesclient_DATA = $(CERTIFICATE_CLIENT_FILES)
Simon Morlat's avatar
Simon Morlat committed
109 110 111 112
rcfilesdir = $(datadir)/liblinphone_tester/rcfiles
rcfiles_DATA = $(RCFILES)
imagesdir = $(datadir)/liblinphone_tester/images
images_DATA = $(IMAGE_FILES)
113 114
vcardsdir = $(datadir)/liblinphone_tester/vcards
vcards_DATA = $(VCARDS_FILE)
Simon Morlat's avatar
Simon Morlat committed
115

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

118 119 120
liblinphonedir = $(includedir)/linphone
liblinphone_HEADERS = liblinphone_tester.h

121

122 123
lib_LTLIBRARIES = liblinphonetester.la

124 125
liblinphonetester_la_HEADERS = audio_bypass_wav_header.h

126
liblinphonetester_la_SOURCES = \
127
				accountmanager.c \
Erwan Croze's avatar
Erwan Croze committed
128
				account_creator_tester.c \
129
				audio_bypass_tester.c \
130 131 132 133 134
				call_multi_tester.c \
				call_multicast_tester.c \
				call_single_tester.c \
				call_video_tester.c \
				complex_sip_case_tester.c \
135
				dtmf_tester.c \
Simon Morlat's avatar
Simon Morlat committed
136
				eventapi_tester.c \
137
				flexisip_tester.c \
138
				log_collection_tester.c \
139
				message_tester.c \
140
				offeranswer_tester.c \
141
				player_tester.c \
142
				presence_server_tester.c \
143
				presence_tester.c \
144
				proxy_config_tester.c \
145 146 147 148 149
				quality_reporting_tester.c \
				register_tester.c \
				remote_provisioning_tester.c \
				setup_tester.c \
				stun_tester.c \
150
				tester.c \
151
				tunnel_tester.c \
152
				upnp_tester.c \
153 154
				vcard_tester.c \
				video_tester.c
155

156
liblinphonetester_ladir = $(includedir)/linphone
jehan's avatar
jehan committed
157

158
liblinphonetester_la_LDFLAGS= -no-undefined
159
liblinphonetester_la_LIBADD= ../coreapi/liblinphone.la $(BCTOOLBOXTESTER_LIBS)
jehan's avatar
jehan committed
160

161 162 163 164 165 166
liblinphone_tester_bindir = $(bindir)/liblinphone_tester
liblinphone_testerdir = $(datadir)/liblinphone_tester

dist_liblinphone_tester_DATA =  tester_hosts messages.db


167
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/coreapi
Simon Morlat's avatar
Simon Morlat committed
168
AM_CFLAGS    = -DBC_CONFIG_FILE=\"config.h\" $(STRICT_OPTIONS) $(STRICT_OPTIONS_CC) \
169
		$(ORTP_CFLAGS) $(MEDIASTREAMER_CFLAGS) $(BCTOOLBOXTESTER_CFLAGS) \
170
		$(BELLESIP_CFLAGS) $(LIBXML2_CFLAGS) $(SQLITE3_CFLAGS) $(BELCARD_CFLAGS)
jehan's avatar
jehan committed
171

172 173
if BUILD_GTK_UI

Simon Morlat's avatar
Simon Morlat committed
174
liblinphonetester_la_LIBADD += $(LIBGTK_LIBS) $(LIBGTKMAC_LIBS)
175 176 177 178
AM_CFLAGS += $(LIBGTK_CFLAGS) $(LIBGTKMAC_CFLAGS) -DHAVE_GTK

endif

179
#AM_LDFLAGS=-Wl,-rpath -Wl,$(libdir)
jehan's avatar
jehan committed
180

181 182
bin_PROGRAMS=

183
if !BUILD_IOS
184
#noinst_PROGRAMS = liblinphone_tester
185
bin_PROGRAMS += liblinphone_tester
186

187
liblinphone_tester_SOURCES = liblinphone_tester.c
188
liblinphone_tester_LDADD   = $(top_builddir)/coreapi/liblinphone.la liblinphonetester.la -lm
jehan's avatar
jehan committed
189

190
endif
jehan's avatar
jehan committed
191 192


jehan's avatar
jehan committed
193
test: liblinphone_tester
194
	./liblinphone_tester  --config $(abs_srcdir) $(TEST_OPTIONS)
jehan's avatar
jehan committed
195

196
else !ENABLE_TESTS
jehan's avatar
jehan committed
197 198

test:
199
	@echo "bctoolbox-tester must be installed to be able to run the tests!"
jehan's avatar
jehan committed
200

201
endif !ENABLE_TESTS