[vlc-devel] commit: cmake: Add meta's test. (Pierre d'Herbemont )

git version control git at videolan.org
Sat Apr 19 03:57:53 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Apr 19 03:58:12 2008 +0200| [2a9531bffcd0529b38278c0bf6ffb16475870d26]

cmake: Add meta's test.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2a9531bffcd0529b38278c0bf6ffb16475870d26
---

 .../cmake/CMakeLists/test_CMakeLists.txt           |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/extras/buildsystem/cmake/CMakeLists/test_CMakeLists.txt b/extras/buildsystem/cmake/CMakeLists/test_CMakeLists.txt
index 5ea98c4..a27380f 100644
--- a/extras/buildsystem/cmake/CMakeLists/test_CMakeLists.txt
+++ b/extras/buildsystem/cmake/CMakeLists/test_CMakeLists.txt
@@ -6,20 +6,28 @@ add_executable(test_libvlc_media_player      libvlc/media_player.c
 add_executable(test_libvlc_media_list        libvlc/media_list.c)
 add_executable(test_libvlc_media_list_player libvlc/media_list_player.c
                                              samples/test.sample)
+add_executable(test_libvlc_meta              libvlc/meta.c
+                                             samples/meta.sample)
 
 target_link_libraries(test_libvlc_core               libvlc-control)
 target_link_libraries(test_libvlc_events             libvlc-control)
 target_link_libraries(test_libvlc_media_player       libvlc-control)
 target_link_libraries(test_libvlc_media_list         libvlc-control)
 target_link_libraries(test_libvlc_media_list_player  libvlc-control)
+target_link_libraries(test_libvlc_meta               libvlc-control)
 
 set(SAMPLES_SERVER http://streams.videolan.org/streams-videolan/reference)
 
-add_custom_command(
-   OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/samples/test.sample
+MACRO(download_sample sample dest)
+  add_custom_command(
+   OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${dest}
    COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/samples
-   COMMAND curl -L ${SAMPLES_SERVER}/avi/Hero-Div3.avi > ${CMAKE_CURRENT_BINARY_DIR}/samples/test.sample
-)
+   COMMAND curl -L ${SAMPLES_SERVER}/${sample} > ${CMAKE_CURRENT_BINARY_DIR}/${dest}
+  )
+ENDMACRO(download_sample)
+
+download_sample(avi/Hero-Div3.avi samples/test.sample)
+download_sample(metadata/id3tag/Wesh-Bonneville.mp3 samples/meta.sample)
 
 add_test(test_libvlc_core
     ${CMAKE_CURRENT_BINARY_DIR}/test_libvlc_core)
@@ -31,4 +39,6 @@ add_test(test_libvlc_media_list
     ${CMAKE_CURRENT_BINARY_DIR}/test_libvlc_media_list)
 add_test(test_libvlc_media_list_player
     ${CMAKE_CURRENT_BINARY_DIR}/test_libvlc_media_list_player)
+add_test(test_libvlc_meta
+    ${CMAKE_CURRENT_BINARY_DIR}/test_libvlc_meta)
 




More information about the vlc-devel mailing list