Skip to content
Snippets Groups Projects
Commit 80bb3a66 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

[#11848] Compile and run test with gnome client

parent da949d9c
Branches
Tags
No related merge requests found
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#include <check.h> #include <check.h>
#include <stdlib.h> #include <stdlib.h>
#define XML_OUTPUT "gnome-check-config.xml"
Suite * Suite *
config_suite(void) config_suite(void)
{ {
...@@ -45,6 +47,7 @@ main(void) ...@@ -45,6 +47,7 @@ main(void)
int number_failed; int number_failed;
Suite *s = config_suite(); Suite *s = config_suite();
SRunner *sr = srunner_create(s); SRunner *sr = srunner_create(s);
srunner_set_xml(sr, XML_OUTPUT);
srunner_run_all(sr, CK_NORMAL); srunner_run_all(sr, CK_NORMAL);
number_failed = srunner_ntests_failed(sr); number_failed = srunner_ntests_failed(sr);
srunner_free(sr); srunner_free(sr);
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "../src/contacts/addressbook.h" #include "../src/contacts/addressbook.h"
#define XML_OUTPUT "gnome-check-contacts.xml"
START_TEST(test_eds) START_TEST(test_eds)
{ {
...@@ -54,6 +55,7 @@ main(void) ...@@ -54,6 +55,7 @@ main(void)
int number_failed; int number_failed;
Suite *s = contacts_suite(); Suite *s = contacts_suite();
SRunner *sr = srunner_create(s); SRunner *sr = srunner_create(s);
srunner_set_xml(sr, XML_OUTPUT);
srunner_run_all(sr, CK_NORMAL); srunner_run_all(sr, CK_NORMAL);
number_failed = srunner_ntests_failed(sr); number_failed = srunner_ntests_failed(sr);
srunner_free(sr); srunner_free(sr);
......
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#include "../src/dbus/dbus.h" #include "../src/dbus/dbus.h"
#define XML_OUTPUT "gnome-check-dbus.xml"
START_TEST(test_dbus_connect) START_TEST(test_dbus_connect)
{ {
GError *error = NULL; GError *error = NULL;
...@@ -56,6 +58,7 @@ main(void) ...@@ -56,6 +58,7 @@ main(void)
int number_failed; int number_failed;
Suite *s = dbus_suite(); Suite *s = dbus_suite();
SRunner *sr = srunner_create(s); SRunner *sr = srunner_create(s);
srunner_set_xml(sr, XML_OUTPUT);
srunner_run_all(sr, CK_NORMAL); srunner_run_all(sr, CK_NORMAL);
number_failed = srunner_ntests_failed(sr); number_failed = srunner_ntests_failed(sr);
srunner_free(sr); srunner_free(sr);
......
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
#include "../src/sflphone_const.h" #include "../src/sflphone_const.h"
#include "../src/str_utils.h" #include "../src/str_utils.h"
#define XML_OUTPUT "gnome-check-global.xml"
account_t* create_test_account(gchar *alias) account_t* create_test_account(gchar *alias)
{ {
account_t *test; account_t *test;
...@@ -150,6 +152,7 @@ main(void) ...@@ -150,6 +152,7 @@ main(void)
int number_failed; int number_failed;
Suite *s = global_suite(); Suite *s = global_suite();
SRunner *sr = srunner_create(s); SRunner *sr = srunner_create(s);
srunner_set_xml(sr, XML_OUTPUT);
srunner_run_all(sr, CK_NORMAL); srunner_run_all(sr, CK_NORMAL);
number_failed = srunner_ntests_failed(sr); number_failed = srunner_ntests_failed(sr);
srunner_free(sr); srunner_free(sr);
......
...@@ -120,11 +120,6 @@ function build_daemon { ...@@ -120,11 +120,6 @@ function build_daemon {
make clean make clean
# Compile src code # Compile src code
make -j make -j
# Generate documentation
make doc
if [ $DOXYGEN == 1 ]; then
gen_doxygen
fi
# Remove the previous XML test file # Remove the previous XML test file
rm -rf $XML_RESULTS rm -rf $XML_RESULTS
# Compile unit tests # Compile unit tests
...@@ -133,6 +128,23 @@ function build_daemon { ...@@ -133,6 +128,23 @@ function build_daemon {
} }
function build_gnome { function build_gnome {
# Compile the daemon
pushd daemon
make distclean
./autogen.sh
# Compile pjproject first
pushd libs/pjproject
./autogen.sh
./configure
make && make dep
popd
./configure --prefix=/usr
make clean
# Compile src code
make -j
sudo make install
popd
# Compile the plugins # Compile the plugins
pushd plugins pushd plugins
make distclean make distclean
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment