mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-08-14 14:52:35 +07:00
Some checks failed
CMake / build (cmake, aarch64-linux-gnu-gcc, -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch64_toolchain.cmake, aarch64-linux-gnu-g++, ubuntu-latest-cross-aarch64-cmake, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, arm-linux-gnueabihf-gcc, -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch32_toolchain.cmake, arm-linux-gnueabihf-g++, ubuntu-latest-cross-aarch32-cmake, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, clang, , clang++, macos-latest-clang-cmake, macos-latest) (push) Has been cancelled
CMake / build (cmake, clang, , clang++, ubuntu-24.04-arm-clang-cmake, ubuntu-24.04-arm) (push) Has been cancelled
CMake / build (cmake, clang, , clang++, ubuntu-latest-clang-cmake, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, clang, -DSANITIZE=fuzzer-no-link,address, clang++, ubuntu-latest-clang-cmake-asan-fuzzer, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, clang, -G Ninja, clang++, ubuntu-latest-clang-cmake-ninja, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, gcc, , g++, ubuntu-latest-gcc-cmake, ubuntu-latest) (push) Has been cancelled
Encoder tests currently do not dump recon as ihevce_plugin doesn't yet support recon dump. This will be enabled once the recon dump is supported. Decoder tests currently validate just a few files from big buck bunny. Use "ctest" run all the tests when using cmake. This downloads the required media files and uses them in the tests. If running the tests directly using the test binaries, then download the media files and export HEVC_TEST_DIR to the extracted folder before running the binaries directly.
52 lines
1.6 KiB
CMake
52 lines
1.6 KiB
CMake
#******************************************************************************
|
|
#
|
|
# Copyright (C) 2026 Ittiam Systems Pvt Ltd, Bangalore
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at:
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
#******************************************************************************
|
|
|
|
# Define the encoder test helper library
|
|
add_library(libhevc_enc_helper STATIC
|
|
${HEVC_ROOT}/tests/encoder/EncHelper.cpp
|
|
)
|
|
|
|
# Export include directories
|
|
target_include_directories(libhevc_enc_helper PUBLIC
|
|
${HEVC_ROOT}/tests/encoder
|
|
${HEVC_ROOT}/tests/common
|
|
${HEVC_ROOT}/common
|
|
${HEVC_ROOT}/encoder
|
|
)
|
|
|
|
# Link against native encoder and common test helper library
|
|
target_link_libraries(libhevc_enc_helper PUBLIC
|
|
libhevcenc
|
|
libhevc_test_common
|
|
)
|
|
|
|
# Define the encoder regression test executable
|
|
libhevc_add_executable(
|
|
hevc_enc_tests
|
|
libhevc_enc_helper
|
|
SOURCES ${HEVC_ROOT}/tests/encoder/EncTests.cpp
|
|
LIBS libhevc_dec_helper GTest::gtest_main
|
|
)
|
|
target_compile_definitions(hevc_enc_tests PRIVATE "PROJECT_DIR=\"${HEVC_ROOT}\"")
|
|
gtest_discover_tests(
|
|
hevc_enc_tests
|
|
${HEVC_GTEST_DISCOVERY_MODE}
|
|
PROPERTIES ENVIRONMENT "HEVC_TEST_DIR=${hevc_test_data_SOURCE_DIR}"
|
|
)
|
|
|
|
|