Makefile.am 5.75 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
					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\
Simon Morlat's avatar
Simon Morlat committed
80
					rcfiles/zero_length_params_rc
81

82

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

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

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

96
if ENABLE_TESTS
jehan's avatar
jehan committed
97

Simon Morlat's avatar
Simon Morlat committed
98 99 100 101 102 103 104 105
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)
106 107
certificatesclientdir=$(datadir)/liblinphone_tester/certificates/client
certificatesclient_DATA = $(CERTIFICATE_CLIENT_FILES)
Simon Morlat's avatar
Simon Morlat committed
108 109 110 111
rcfilesdir = $(datadir)/liblinphone_tester/rcfiles
rcfiles_DATA = $(RCFILES)
imagesdir = $(datadir)/liblinphone_tester/images
images_DATA = $(IMAGE_FILES)
112 113
vcardsdir = $(datadir)/liblinphone_tester/vcards
vcards_DATA = $(VCARDS_FILE)
Simon Morlat's avatar
Simon Morlat committed
114

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

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

120

121 122
lib_LTLIBRARIES = liblinphonetester.la

123 124
liblinphonetester_la_HEADERS = audio_bypass_wav_header.h

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

154
liblinphonetester_ladir = $(includedir)/linphone
jehan's avatar
jehan committed
155

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

159 160 161 162 163 164
liblinphone_tester_bindir = $(bindir)/liblinphone_tester
liblinphone_testerdir = $(datadir)/liblinphone_tester

dist_liblinphone_tester_DATA =  tester_hosts messages.db


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

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

172 173
bin_PROGRAMS=

174
if !BUILD_IOS
175
#noinst_PROGRAMS = liblinphone_tester
176
bin_PROGRAMS += liblinphone_tester
177

178
liblinphone_tester_SOURCES = liblinphone_tester.c
179
liblinphone_tester_LDADD   = $(top_builddir)/coreapi/liblinphone.la liblinphonetester.la -lm
jehan's avatar
jehan committed
180

181
endif
jehan's avatar
jehan committed
182 183


jehan's avatar
jehan committed
184
test: liblinphone_tester
185
	./liblinphone_tester  --config $(abs_srcdir) $(TEST_OPTIONS)
jehan's avatar
jehan committed
186

187
else !ENABLE_TESTS
jehan's avatar
jehan committed
188 189

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

192
endif !ENABLE_TESTS