Commit 80bb3a66 authored by Emmanuel Milou's avatar Emmanuel Milou

[#11848] Compile and run test with gnome client

parent da949d9c
......@@ -31,6 +31,8 @@
#include <check.h>
#include <stdlib.h>
#define XML_OUTPUT "gnome-check-config.xml"
Suite *
config_suite(void)
{
......@@ -45,6 +47,7 @@ main(void)
int number_failed;
Suite *s = config_suite();
SRunner *sr = srunner_create(s);
srunner_set_xml(sr, XML_OUTPUT);
srunner_run_all(sr, CK_NORMAL);
number_failed = srunner_ntests_failed(sr);
srunner_free(sr);
......
......@@ -30,6 +30,7 @@
#include <stdlib.h>
#include "../src/contacts/addressbook.h"
#define XML_OUTPUT "gnome-check-contacts.xml"
START_TEST(test_eds)
{
......@@ -54,6 +55,7 @@ main(void)
int number_failed;
Suite *s = contacts_suite();
SRunner *sr = srunner_create(s);
srunner_set_xml(sr, XML_OUTPUT);
srunner_run_all(sr, CK_NORMAL);
number_failed = srunner_ntests_failed(sr);
srunner_free(sr);
......
......@@ -31,6 +31,8 @@
#include "../src/dbus/dbus.h"
#define XML_OUTPUT "gnome-check-dbus.xml"
START_TEST(test_dbus_connect)
{
GError *error = NULL;
......@@ -56,6 +58,7 @@ main(void)
int number_failed;
Suite *s = dbus_suite();
SRunner *sr = srunner_create(s);
srunner_set_xml(sr, XML_OUTPUT);
srunner_run_all(sr, CK_NORMAL);
number_failed = srunner_ntests_failed(sr);
srunner_free(sr);
......
......@@ -36,6 +36,8 @@
#include "../src/sflphone_const.h"
#include "../src/str_utils.h"
#define XML_OUTPUT "gnome-check-global.xml"
account_t* create_test_account(gchar *alias)
{
account_t *test;
......@@ -150,6 +152,7 @@ main(void)
int number_failed;
Suite *s = global_suite();
SRunner *sr = srunner_create(s);
srunner_set_xml(sr, XML_OUTPUT);
srunner_run_all(sr, CK_NORMAL);
number_failed = srunner_ntests_failed(sr);
srunner_free(sr);
......
......@@ -120,11 +120,6 @@ function build_daemon {
make clean
# Compile src code
make -j
# Generate documentation
make doc
if [ $DOXYGEN == 1 ]; then
gen_doxygen
fi
# Remove the previous XML test file
rm -rf $XML_RESULTS
# Compile unit tests
......@@ -133,6 +128,23 @@ function build_daemon {
}
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
pushd plugins
make distclean
......
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