Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
3ce3139b
Commit
3ce3139b
authored
May 22, 2012
by
Simon Morlat
Browse files
fix build for ubuntu
parent
8db2b21f
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
3ce3139b
...
...
@@ -119,9 +119,15 @@ PKG_CHECK_MODULES(CUNIT, cunit, [found_cunit=yes],[found_cunit=no])
if test "$found_cunit" = "no" ; then
AC_CHECK_HEADERS(CUnit/CUnit.h,
[
found_cunit=yes
CUNIT_LIBS="-lcunit"
AC_CHECK_LIB(cunit,CU_add_suite,[
found_cunit=yes
CUNIT_LIBS+=" -lcunit"
])
AC_CHECK_LIB(cunit,CU_get_suite,[
AC_DEFINE(HAVE_CU_GET_SUITE,1,[defined when CU_get_suite is available])
])
])
fi
...
...
tester/belle_sip_tester.c
View file @
3ce3139b
...
...
@@ -15,6 +15,10 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include "CUnit/Basic.h"
#include <belle-sip/belle-sip.h>
...
...
@@ -32,7 +36,6 @@ extern int belle_sip_dialog_test_suite();
int
main
(
int
argc
,
char
*
argv
[])
{
int
i
;
char
*
suite_name
;
CU_pSuite
suite
;
const
char
*
env_domain
=
getenv
(
"TEST_DOMAIN"
);
if
(
env_domain
)
test_domain
=
env_domain
;
...
...
@@ -74,8 +77,15 @@ int main (int argc, char *argv[]) {
/* Run all tests using the CUnit Basic interface */
CU_basic_set_mode
(
CU_BRM_VERBOSE
);
if
(
suite_name
&&
(
suite
=
CU_get_suite
(
suite_name
)))
{
if
(
suite_name
){
#ifdef HAVE_CU_GET_SUITE
CU_pSuite
suite
;
suite
=
CU_get_suite
(
suite_name
)))
{
CU_basic_run_suite
(
suite
);
#else
fprintf
(
stderr
,
"Your CUnit version does not support suite selection.
\n
"
);
#endif
}
else
CU_basic_run_tests
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment