Closed dttlgotv closed 2 years ago
For multiconfig builds you need to specify which config you built.
Example:
cd opus mkdir build cd build cmake .. -DOPUS_BUILD_TESTING=ON cmake --build . -j 8 --config Debug ctest -C Debug -j 4
Relevant issue, https://gitlab.kitware.com/cmake/cmake/-/issues/20283
For multiconfig builds you need to specify which config you built.
Example:
cd opus mkdir build cd build cmake .. -DOPUS_BUILD_TESTING=ON cmake --build . -j 8 --config Debug ctest -C Debug -j 4
Relevant issue, https://gitlab.kitware.com/cmake/cmake/-/issues/20283
Got! Thanks a lot.
I got the neweset opus code and want to run in window. Building is well, but ctest can not run well.
-- Opus project version: 0 -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.17763. -- Performing Test VLA_SUPPORTED -- failed to compile -- Check SIMD support by compiler -- The following features have been enabled:
-- The following OPTIONAL packages have been found:
-- The following features have been disabled:
cmake --build . 用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.11.2+f32259642 版权所有(C) Microsoft Corporation。保留所有权利。
Checking Build System Building Custom Rule C:/AiAudio/eeo_opus/CMakeLists.txt opus.vcxproj -> C:\AiAudio\eeo_opus\build\Debug\opus.lib Building Custom Rule C:/AiAudio/eeo_opus/CMakeLists.txt test_opus_api.vcxproj -> C:\AiAudio\eeo_opus\build\Debug\test_opus_api.exe Building Custom Rule C:/AiAudio/eeo_opus/CMakeLists.txt test_opus_decode.vcxproj -> C:\AiAudio\eeo_opus\build\Debug\test_opus_decode.exe Building Custom Rule C:/AiAudio/eeo_opus/CMakeLists.txt test_opus_encode.vcxproj -> C:\AiAudio\eeo_opus\build\Debug\test_opus_encode.exe Building Custom Rule C:/AiAudio/eeo_opus/CMakeLists.txt test_opus_padding.vcxproj -> C:\AiAudio\eeo_opus\build\Debug\test_opus_padding.exe Building Custom Rule C:/AiAudio/eeo_opus/CMakeLists.txt
ctest Test project C:/AiAudio/eeo_opus/build Start 1: test_opus_decode Test not available without configuration. (Missing "-C"?)
1/4 Test #1: test_opus_decode .................Not Run 0.00 sec
Start 2: test_opus_padding
Test not available without configuration. (Missing "-C "?)
2/4 Test #2: test_opus_padding ................ Not Run 0.00 sec
Start 3: test_opus_api
Test not available without configuration. (Missing "-C "?)
3/4 Test #3: test_opus_api ....................Not Run 0.00 sec
Start 4: test_opus_encode
Test not available without configuration. (Missing "-C "?)
4/4 Test #4: test_opus_encode ................. Not Run 0.00 sec
0% tests passed, 4 tests failed out of 4
Total Test time (real) = 0.02 sec
The following tests FAILED: 1 - test_opus_decode (Not Run) 2 - test_opus_padding (Not Run) 3 - test_opus_api (Not Run) 4 - test_opus_encode (Not Run) Errors while running CTest Output from these tests are in: C:/AiAudio/eeo_opus/build/Testing/Temporary/LastTest.log Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
LastTest.log is Start testing: Feb 21 16:04 ?D1ú±ê×?ê±??
Test not available without configuration. (Missing "-C"?)
1/4 Testing: test_opus_decode
1/4 Test: test_opus_decode
Command: "NOT_AVAILABLE"
Directory: C:/AiAudio/eeo_opus/build
"test_opus_decode" start time:
Output: