mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 01:26:49 +08:00
[test]: Add mpi_enc_mt_test
Add encoder multi-thread test case for non-block input / output mode. Change-Id: I2a06f47574e760d1400914eb62420b047c60ceaf Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -3,16 +3,17 @@
|
|||||||
# mpp built-in unit test case
|
# mpp built-in unit test case
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
# macro for adding mpp sub-module unit test
|
# macro for adding mpp sub-module unit test
|
||||||
macro(add_mpp_test module)
|
macro(add_mpp_test module ext)
|
||||||
set(test_name ${module}_test)
|
set(test_name ${module}_test)
|
||||||
|
set(file_name ${test_name}.${ext})
|
||||||
string(TOUPPER ${test_name} test_tag)
|
string(TOUPPER ${test_name} test_tag)
|
||||||
#message(STATUS "moduule : ${module}")
|
#message(STATUS "moduule : ${module}")
|
||||||
#message(STATUS "test_name : ${test_name}")
|
#message(STATUS "test_name : ${test_name}")
|
||||||
#message(STATUS "test_tag : ${test_tag}")
|
#message(STATUS "test_tag : ${test_tag}")
|
||||||
|
|
||||||
option(${test_tag} "Build mpp ${module} unit test" ${BUILD_TEST})
|
option(${test_tag} "Build mpp ${module}.${ext} unit test" ${BUILD_TEST})
|
||||||
if(${test_tag})
|
if(${test_tag})
|
||||||
add_executable(${test_name} ${test_name}.c mpp_event_trigger.c mpp_parse_cfg.c)
|
add_executable(${test_name} ${file_name} mpp_event_trigger.c mpp_parse_cfg.c)
|
||||||
target_link_libraries(${test_name} ${MPP_SHARED} utils)
|
target_link_libraries(${test_name} ${MPP_SHARED} utils)
|
||||||
set_target_properties(${test_name} PROPERTIES FOLDER "test")
|
set_target_properties(${test_name} PROPERTIES FOLDER "test")
|
||||||
install(TARGETS ${test_name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
install(TARGETS ${test_name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
@@ -21,22 +22,25 @@ macro(add_mpp_test module)
|
|||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
# mpp info test
|
# mpp info test
|
||||||
add_mpp_test(mpp_info)
|
add_mpp_test(mpp_info c)
|
||||||
|
|
||||||
# mpi decoder unit test
|
# mpi decoder unit test
|
||||||
add_mpp_test(mpi_dec)
|
add_mpp_test(mpi_dec c)
|
||||||
|
|
||||||
# mpi decoder multi-thread input / output unit test
|
# mpi decoder multi-thread input / output unit test
|
||||||
add_mpp_test(mpi_dec_mt)
|
add_mpp_test(mpi_dec_mt c)
|
||||||
|
|
||||||
# mpi encoder unit test
|
# mpi encoder unit test
|
||||||
add_mpp_test(mpi_enc)
|
add_mpp_test(mpi_enc c)
|
||||||
|
|
||||||
|
# mpi encoder multi-thread input / output unit test
|
||||||
|
add_mpp_test(mpi_enc_mt cpp)
|
||||||
|
|
||||||
# new mpi rc unit test
|
# new mpi rc unit test
|
||||||
add_mpp_test(mpi_rc2)
|
add_mpp_test(mpi_rc2 c)
|
||||||
|
|
||||||
# new dec multi unit test
|
# new dec multi unit test
|
||||||
add_mpp_test(mpi_dec_multi)
|
add_mpp_test(mpi_dec_multi c)
|
||||||
|
|
||||||
macro(add_legacy_test module)
|
macro(add_legacy_test module)
|
||||||
set(test_name ${module}_test)
|
set(test_name ${module}_test)
|
||||||
|
1104
test/mpi_enc_mt_test.cpp
Normal file
1104
test/mpi_enc_mt_test.cpp
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user