#define CREATE_TEST(name, func, profile) \
GST_START_TEST (test_##name##_raw_h264_mov) \
{ \
- g_print("running test_%s_%s\n", #name, "raw_h264_mov"); \
- testfilename1 = "raw_h264.0.mov"; \
- testfilename2 = "raw_h264.1.mov"; \
- test_image_filename = "test.png"; \
+ g_print("running test_%s_%s\n", #name, "raw_h264_mov"); \
+ testfilename1 = "assets/raw_h264.0.mov"; \
+ testfilename2 = "assets/raw_h264.1.mov"; \
+ test_image_filename = "assets/test.png"; \
current_profile = profile; \
func (); \
} \
GST_END_TEST; \
GST_START_TEST (test_##name##_vorbis_theora_ogv) \
{ \
- g_print("running test_%s_%s\n", #name, "vorbis_theora_ogv"); \
- testfilename1 = "vorbis_theora.0.ogg"; \
- testfilename2 = "vorbis_theora.1.ogg"; \
- test_image_filename = "test.png"; \
+ g_print("running test_%s_%s\n", #name, "vorbis_theora_ogv"); \
+ testfilename1 = "assets/vorbis_theora.0.ogg"; \
+ testfilename2 = "assets/vorbis_theora.1.ogg"; \
+ test_image_filename = "assets/test.png"; \
current_profile = profile; \
func (); \
} \
GST_END_TEST; \
GST_START_TEST (test_##name##_vorbis_vp8_webm) \
{ \
- g_print("running test_%s_%s\n", #name, "vorbis_vp8_webm"); \
- testfilename1 = "vorbis_vp8.0.webm"; \
- testfilename2 = "vorbis_vp8.1.webm"; \
- test_image_filename = "test.png"; \
+ g_print("running test_%s_%s\n", #name, "vorbis_vp8_webm"); \
+ testfilename1 = "assets/vorbis_vp8.0.webm"; \
+ testfilename2 = "assets/vorbis_vp8.1.webm"; \
+ test_image_filename = "assets/test.png"; \
current_profile = profile; \
func (); \
} \
GST_END_TEST; \
GST_START_TEST (test_##name##_mp3_h264_mov) \
{ \
- g_print("running test_%s_%s\n", #name, "mp3_h264_mov"); \
- testfilename1 = "mp3_h264.0.mov"; \
- testfilename2 = "mp3_h264.1.mov"; \
+ g_print("running test_%s_%s\n", #name, "mp3_h264_mov"); \
+ testfilename1 = "assets/mp3_h264.0.mov"; \
+ testfilename2 = "assets/mp3_h264.1.mov"; \
current_profile = profile; \
test_image_filename = "test.png"; \
func (); \
tcase_add_test (tc_chain, test_##name##_render_to_vorbis_h264_matroska_vorbis_vp8_webm); \
tcase_add_test (tc_chain, test_##name##_render_to_vorbis_h264_matroska_mp3_h264_mov); \
tests_names = g_list_prepend (tests_names, g_strdup_printf ("%s%s%s", "test_", \
-#name, "_render_to_vorbis_theora_ogg_raw_h264_mov")); \
+ #name, "_render_to_vorbis_theora_ogg_raw_h264_mov")); \
tests_names = g_list_prepend (tests_names, g_strdup_printf ("%s%s%s", "test_", #name, \
"_render_to_vorbis_theora_ogg_mp3_h264_mov")); \
tests_names = g_list_prepend (tests_names, g_strdup_printf ("%s%s%s", "test_", #name, \