Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
Add test for mp3lame feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Oct 8, 2020
1 parent cbc7582 commit a2d641b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ endif()
project(ffmpeg_test)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(FEATURES "avcodec;avformat;bzip2;ffmpeg;ffplay;ffprobe;iconv;lzma;nvcodec;opus;postproc;snappy;soxr;swresample;theora;vpx;x264;x265;zlib" CACHE STRING "List of all features enabled through vcpkg.")
set(FEATURES "avcodec;avformat;bzip2;ffmpeg;ffplay;ffprobe;iconv;lzma;mp3lame;nvcodec;opus;postproc;snappy;soxr;swresample;theora;vpx;x264;x265;zlib" CACHE STRING "List of all features enabled through vcpkg.")
enable_testing()

function(test_for _feature _name)
Expand Down Expand Up @@ -41,6 +41,10 @@ if ("avcodec" IN_LIST FEATURES)
test_for("snappy" test_encoder_hap)
add_test(NAME test_decoder_hap COMMAND test_find_decoder hap)

add_test(NAME test_encoder_libmp3lame COMMAND test_find_encoder libmp3lame)
test_for("mp3lame" test_encoder_libmp3lame)
add_test(NAME test_decoder_mp3 COMMAND test_find_decoder mp3)

add_test(NAME test_encoder_mpeg4 COMMAND test_find_encoder mpeg4)
add_test(NAME test_decoder_mpeg4 COMMAND test_find_decoder mpeg4)

Expand Down

0 comments on commit a2d641b

Please sign in to comment.