From 8a3cb0e6629490d62827187fa9fc09552bf36cda Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sat, 22 Jul 2017 16:41:14 +0200 Subject: test: check for USE_VIDEO --- test/main.c | 2 +- test/srcs.mk | 2 ++ test/test.h | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/main.c b/test/main.c index ee3c58e..497d347 100644 --- a/test/main.c +++ b/test/main.c @@ -37,6 +37,7 @@ static const struct test tests[] = { TEST(test_call_progress), #ifdef USE_VIDEO TEST(test_call_video), + TEST(test_video), #endif TEST(test_cmd), TEST(test_cmd_long), @@ -53,7 +54,6 @@ static const struct test tests[] = { TEST(test_ua_register_auth), TEST(test_ua_register_auth_dns), TEST(test_uag_find_param), - TEST(test_video), }; diff --git a/test/srcs.mk b/test/srcs.mk index 5a0457d..0bcb6de 100644 --- a/test/srcs.mk +++ b/test/srcs.mk @@ -19,7 +19,9 @@ TEST_SRCS += mos.c TEST_SRCS += net.c TEST_SRCS += play.c TEST_SRCS += ua.c +ifneq ($(USE_VIDEO),) TEST_SRCS += video.c +endif # diff --git a/test/test.h b/test/test.h index 3d55cff..572e179 100644 --- a/test/test.h +++ b/test/test.h @@ -207,7 +207,9 @@ int test_call_video(void); int test_call_aulevel(void); int test_call_progress(void); +#ifdef USE_VIDEO int test_video(void); +#endif #ifdef __cplusplus -- cgit v1.2.3