Fixed and improved tests for remote provisioning

This commit is contained in:
Sylvain Berfini 2014-02-13 11:16:45 +01:00
parent 233061e839
commit e8bc43d75e
5 changed files with 11 additions and 8 deletions

View file

@ -1,2 +1,2 @@
[app]
remote_provisioning=http://smtp.linphone.org/marie_404
[misc]
config-uri=http://smtp.linphone.org/marie_404

View file

@ -1,2 +1,2 @@
[app]
remote_provisioning=http://smtp.linphone.org/marie_invalid
[misc]
config-uri=http://smtp.linphone.org/marie_invalid

View file

@ -1,2 +1,2 @@
[app]
remote_provisioning=http://smtp.linphone.org/marie_xml
[misc]
config-uri=http://smtp.linphone.org/marie_xml

View file

@ -1,2 +1,2 @@
[app]
remote_provisioning=https://smtp.linphone.org/pauline_xml
[misc]
config-uri=https://smtp.linphone.org/pauline_xml

View file

@ -23,6 +23,8 @@
#include "liblinphone_tester.h"
void linphone_configuration_status(LinphoneCore *lc, LinphoneConfiguringState status, const char *message) {
ms_message("Configuring state = %i with message %s", status, message);
stats* counters = get_stats(lc);
if (status == LinphoneConfiguringSkipped) {
counters->number_of_LinphoneConfiguringSkipped++;
@ -42,6 +44,7 @@ static void remote_provisioning_skipped(void) {
static void remote_provisioning_http(void) {
LinphoneCoreManager* marie = linphone_core_manager_new("marie_remote_rc");
CU_ASSERT_TRUE(wait_for(marie->lc,NULL,&marie->stat.number_of_LinphoneConfiguringSuccessful,1));
CU_ASSERT_TRUE(wait_for(marie->lc,NULL,&marie->stat.number_of_LinphoneRegistrationOk,1));
linphone_core_manager_destroy(marie);
}