Changeset 01a95e76381eebe5a99a6feefc6a9cfff770962e
- Timestamp:
- 04/11/08 18:47:05
(4 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1207932425 +0200
- git-parent:
[04e7bd8471c3470615f8a42fbe9d51aa857b1073]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1207734335 +0200
- Message:
test: Move testapi.c to /test and use a sample file that is not ogg for basic testing.
This sample is downloaded from streams.videolan.org. Feel free to find a better suited codec/demux combination.
libvlc test are now splitted a bit.
Tests that are specific to core and that don't need vlc's modules are kept in src/test.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r647a7ad |
r01a95e7 |
|
| 9 | 9 | # - libs/* are needed by modules |
|---|
| 10 | 10 | SUBDIRS = po libs/loader libs/srtp src modules \ |
|---|
| 11 | | projects/mozilla bindings projects/activex share doc |
|---|
| | 11 | projects/mozilla bindings projects/activex share doc test |
|---|
| 12 | 12 | DIST_SUBDIRS = $(SUBDIRS) m4 extras/package/ipkg |
|---|
| 13 | 13 | |
|---|
| r647a7ad |
r01a95e7 |
|
| 6227 | 6227 | share/Makefile |
|---|
| 6228 | 6228 | src/Makefile |
|---|
| | 6229 | test/Makefile |
|---|
| 6229 | 6230 | ]) |
|---|
| 6230 | 6231 | |
|---|
| r500894f |
r01a95e7 |
|
| 34 | 34 | add_subdirectory(modules) |
|---|
| 35 | 35 | add_subdirectory(po) |
|---|
| | 36 | add_subdirectory(test) |
|---|
| 36 | 37 | |
|---|
| 37 | 38 | # Enable uninstall |
|---|
| r3e0c520 |
r01a95e7 |
|
| 271 | 271 | # Tests |
|---|
| 272 | 272 | |
|---|
| 273 | | add_executable(test_testapi control/testapi.c) |
|---|
| 274 | 273 | add_executable(test_i18n_atof test/i18n_atof.c) |
|---|
| 275 | 274 | add_executable(test_url test/url.c) |
|---|
| … | … | |
| 277 | 276 | add_executable(test_dictionary test/dictionary.c) |
|---|
| 278 | 277 | |
|---|
| 279 | | target_link_libraries(test_testapi libvlc-control) |
|---|
| 280 | 278 | target_link_libraries(test_i18n_atof libvlc) |
|---|
| 281 | 279 | target_link_libraries(test_url libvlc) |
|---|
| … | … | |
| 283 | 281 | target_link_libraries(test_dictionary libvlc) |
|---|
| 284 | 282 | |
|---|
| 285 | | add_test(test_control ${CMAKE_CURRENT_BINARY_DIR}/test_testapi) |
|---|
| 286 | 283 | add_test(test_i18n_atof ${CMAKE_CURRENT_BINARY_DIR}/test_i18n_atof) |
|---|
| 287 | 284 | add_test(test_url ${CMAKE_CURRENT_BINARY_DIR}/test_url) |
|---|
| r500894f |
r01a95e7 |
|
| 22 | 22 | rm -f modules/gui/qt4/CMakeLists.txt |
|---|
| 23 | 23 | |
|---|
| 24 | | echo "Installing libs/loaders/CMakeLists.txt" |
|---|
| 25 | | rm -f libs/loaders/CMakeLists.txt |
|---|
| 26 | | ln -s ../$cmake_dir/CMakeLists/libs_loaders_CMakeLists.txt libs/loaders/CMakeLists.txt |
|---|
| | 24 | echo "Installing libs/loader/CMakeLists.txt" |
|---|
| | 25 | rm -f libs/loader/CMakeLists.txt |
|---|
| | 26 | ln -s ../../$cmake_dir/CMakeLists/libs_loaders_CMakeLists.txt libs/loader/CMakeLists.txt |
|---|
| 27 | 27 | |
|---|
| 28 | 28 | echo "Installing modules/CMakeLists.txt" |
|---|
| … | … | |
| 34 | 34 | ln -s ../$cmake_dir/CMakeLists/po_CMakeLists.txt po/CMakeLists.txt |
|---|
| 35 | 35 | |
|---|
| 36 | | echo "Installing include/config.h.cmake" |
|---|
| | 36 | echo "installing test/CMakeLists.txt" |
|---|
| | 37 | rm -f test/CMakeLists.txt |
|---|
| | 38 | ln -sf ../$cmake_dir/CMakeLists/test_CMakeLists.txt test/CMakeLists.txt |
|---|
| | 39 | |
|---|
| | 40 | echo "installing include/config.h.cmake" |
|---|
| 37 | 41 | rm -f include/config.h.cmake |
|---|
| 38 | 42 | ln -sf ../$cmake_dir/config.h.cmake include/config.h.cmake |
|---|
| rbfd22dd |
r01a95e7 |
|
| 443 | 443 | test_utf8 \ |
|---|
| 444 | 444 | test_headers \ |
|---|
| 445 | | test_control \ |
|---|
| 446 | 445 | $(NULL) |
|---|
| 447 | 446 | |
|---|
| … | … | |
| 469 | 468 | test_headers_SOURCES = test/headers.c |
|---|
| 470 | 469 | test_headers_CFLAGS = $(CFLAGS_tests) |
|---|
| 471 | | |
|---|
| 472 | | test_control_SOURCES = control/testapi.c |
|---|
| 473 | | test_control_LDADD = libvlc-control.la |
|---|
| 474 | | test_control_CFLAGS = $(CFLAGS_tests) |
|---|
| 475 | 470 | |
|---|
| 476 | 471 | check-local: |
|---|