tester: split simple call tests in two suites: video calls and other calls and...

tester: split simple call tests in two suites: video calls and other calls and minor files reorganization
parent 3c11cc74
......@@ -20,35 +20,8 @@
#
############################################################################
set(SOURCE_FILES
accountmanager.c
audio_bypass_tester.c
call_tester.c
complex_sip_call_tester.c
dtmf_tester.c
eventapi_tester.c
flexisip_tester.c
liblinphone_tester.c
log_collection_tester.c
message_tester.c
multi_call_tester.c
multicast_call_tester.c
offeranswer_tester.c
player_tester.c
presence_tester.c
presence_server_tester.c
proxy_config_tester.c
quality_reporting_tester.c
register_tester.c
remote_provisioning_tester.c
setup_tester.c
stun_tester.c
tester.c
tunnel_tester.c
upnp_tester.c
video_tester.c
vcard_tester.c
)
file(GLOB SOURCE_FILES "*_tester.c")
list(APPEND SOURCE_FILES accountmanager.c tester.c)
apply_compile_flags(SOURCE_FILES "CPP" "C")
......
......@@ -116,30 +116,31 @@ liblinphonetester_la_HEADERS = audio_bypass_wav_header.h
liblinphonetester_la_SOURCES = \
accountmanager.c \
audio_bypass_tester.c \
call_tester.c \
complex_sip_call_tester.c \
call_multi_tester.c \
call_multicast_tester.c \
call_single_tester.c \
call_video_tester.c \
complex_sip_case_tester.c \
dtmf_tester.c \
eventapi_tester.c \
flexisip_tester.c \
log_collection_tester.c \
message_tester.c \
multi_call_tester.c \
multicast_call_tester.c \
offeranswer_tester.c \
player_tester.c \
presence_tester.c \
presence_server_tester.c \
presence_tester.c \
proxy_config_tester.c \
quality_reporting_tester.c \
register_tester.c \
remote_provisioning_tester.c \
setup_tester.c \
stun_tester.c \
tunnel_tester.c \
tester.c \
tunnel_tester.c \
upnp_tester.c \
video_tester.c \
vcard_tester.c
vcard_tester.c \
video_tester.c
liblinphonetester_ladir = $(includedir)/linphone
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -361,7 +361,7 @@ static test_t tests[] = {
};
test_suite_t complex_sip_call_test_suite = {
"Complex SIP Call",
"Complex SIP Case",
NULL,
NULL,
liblinphone_tester_before_each,
......
......@@ -42,6 +42,7 @@ extern "C" {
extern test_suite_t setup_test_suite;
extern test_suite_t register_test_suite;
extern test_suite_t call_test_suite;
extern test_suite_t call_video_test_suite;
extern test_suite_t message_test_suite;
extern test_suite_t presence_test_suite;
extern test_suite_t presence_server_test_suite;
......@@ -323,12 +324,18 @@ bool_t call_with_test_params(LinphoneCoreManager* caller_mgr
,LinphoneCoreManager* callee_mgr
,const LinphoneCallTestParams *caller_test_params
,const LinphoneCallTestParams *callee_test_params);
bool_t call_with_params2(LinphoneCoreManager* caller_mgr
,LinphoneCoreManager* callee_mgr
, const LinphoneCallTestParams *caller_test_params
, const LinphoneCallTestParams *callee_test_params
, bool_t build_callee_params);
bool_t call(LinphoneCoreManager* caller_mgr,LinphoneCoreManager* callee_mgr);
bool_t add_video(LinphoneCoreManager* caller,LinphoneCoreManager* callee, bool_t change_video_policy);
void end_call(LinphoneCoreManager *m1, LinphoneCoreManager *m2);
void disable_all_audio_codecs_except_one(LinphoneCore *lc, const char *mime, int rate);
void disable_all_video_codecs_except_one(LinphoneCore *lc, const char *mime);
void disable_all_codecs(const MSList* elem, LinphoneCoreManager* call);
stats * get_stats(LinphoneCore *lc);
bool_t transport_supported(LinphoneTransportType transport);
LinphoneCoreManager *get_manager(LinphoneCore *lc);
......@@ -352,6 +359,9 @@ bool_t call_with_caller_params(LinphoneCoreManager* caller_mgr,LinphoneCoreManag
bool_t pause_call_1(LinphoneCoreManager* mgr_1,LinphoneCall* call_1,LinphoneCoreManager* mgr_2,LinphoneCall* call_2);
void compare_files(const char *path1, const char *path2);
void check_media_direction(LinphoneCoreManager* mgr, LinphoneCall *call, MSList* lcs,LinphoneMediaDirection audio_dir, LinphoneMediaDirection video_dir);
void _call_with_ice_base(LinphoneCoreManager* pauline,LinphoneCoreManager* marie, bool_t caller_with_ice, bool_t callee_with_ice, bool_t random_ports, bool_t forced_relay);
void check_nb_media_starts(LinphoneCoreManager *caller, LinphoneCoreManager *callee, unsigned int caller_nb_media_starts, unsigned int callee_nb_media_starts);
void record_call(const char *filename, bool_t enableVideo, const char *video_codec);
extern const MSAudioDiffParams audio_cmp_params;
......@@ -380,6 +390,7 @@ extern const char *liblinphone_tester_mire_id;
LinphoneAddress * linphone_core_manager_resolve(LinphoneCoreManager *mgr, const LinphoneAddress *source);
FILE *sip_start(const char *senario, const char* dest_username, const char *passwd, LinphoneAddress* dest_addres);
void early_media_without_sdp_in_200_base( bool_t use_video, bool_t use_ice );
#ifdef __cplusplus
......
......@@ -134,7 +134,7 @@ LinphoneCore* configure_lc_from(LinphoneCoreVTable* v_table, const char* path, c
ringbackpath = ms_strdup_printf("%s/sounds/ringback.wav", path);
nowebcampath = ms_strdup_printf("%s/images/nowebcamCIF.jpg", path);
rootcapath = ms_strdup_printf("%s/certificates/cn/cafile.pem", path);
dnsuserhostspath = ms_strdup_printf( "%s/%s", path, userhostsfile);
dnsuserhostspath = ms_strdup_printf("%s/%s", path, userhostsfile);
if( config != NULL ) {
......@@ -498,6 +498,7 @@ void liblinphone_tester_add_suites() {
bc_tester_add_suite(&tunnel_test_suite);
bc_tester_add_suite(&offeranswer_test_suite);
bc_tester_add_suite(&call_test_suite);
bc_tester_add_suite(&call_video_test_suite);
bc_tester_add_suite(&audio_bypass_suite);
bc_tester_add_suite(&multi_call_test_suite);
bc_tester_add_suite(&message_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