diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-07-22 16:41:14 +0200 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-07-22 16:41:14 +0200 |
commit | 8a3cb0e6629490d62827187fa9fc09552bf36cda (patch) | |
tree | 36c273dcae4223edeeb17d97879015f8cd9ce367 | |
parent | 33206f7738cb135cadc764a13ff89c974bdbbfaa (diff) |
test: check for USE_VIDEO
-rw-r--r-- | test/main.c | 2 | ||||
-rw-r--r-- | test/srcs.mk | 2 | ||||
-rw-r--r-- | test/test.h | 2 |
3 files changed, 5 insertions, 1 deletions
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 |