Skip to content

Commit

Permalink
ensure vvdecapp is built for the test suite
Browse files Browse the repository at this point in the history
even when -DVVDEC_LIBRARY_ONLY=1 is set
  • Loading branch information
K-os committed Oct 15, 2024
1 parent 65509e7 commit d5ca6c3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -429,10 +429,15 @@ endforeach()
get_directory_property( ALL_TESTS TESTS )
set_tests_properties( ${ALL_TESTS} PROPERTIES
TIMEOUT 120
FAIL_REGULAR_EXPRESSION "(WARNING:|runtime error)" )
FAIL_REGULAR_EXPRESSION "(WARNING:|runtime error)"
FIXTURES_REQUIRED "BuildTestBinaries" )

add_custom_target( test-ok USES_TERMINAL COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIG> -R "\"^(Test|MISSING)\"" )
add_custom_target( test-all USES_TERMINAL COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIG> -R "\"^(Test|MISSING|Faulty)\"" )
# ensure vvdecapp is built before the tests (as a test case setup fixture)
add_test( NAME "build test binaries" COMMAND ${CMAKE_COMMAND} --build "${CMAKE_BINARY_DIR}" --config "$<CONFIG>" --target vvdecapp )
set_tests_properties( "build test binaries" PROPERTIES FIXTURES_SETUP BuildTestBinaries TIMEOUT 0 )

add_custom_target( test-ok USES_TERMINAL COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIG> -R "\"^(Test|MISSING)\"" DEPENDS vvdecapp )
add_custom_target( test-all USES_TERMINAL COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIG> -R "\"^(Test|MISSING|Faulty)\"" DEPENDS vvdecapp )

if( MISSING_BITSTREAM_FILES )
message( STATUS "Some bitstream files are missing." )
Expand Down

0 comments on commit d5ca6c3

Please sign in to comment.