libhevc-mirror/tests/Android.bp
Harish Mahendrakar e528efb13d
Some checks are pending
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) Waiting to run
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) Waiting to run
CMake / build (cmake, clang, , clang++, macos-latest-clang-cmake, macos-latest) (push) Waiting to run
CMake / build (cmake, clang, , clang++, ubuntu-24.04-arm-clang-cmake, ubuntu-24.04-arm) (push) Waiting to run
CMake / build (cmake, clang, , clang++, ubuntu-latest-clang-cmake, ubuntu-latest) (push) Waiting to run
CMake / build (cmake, clang, -DSANITIZE=fuzzer-no-link,address, clang++, ubuntu-latest-clang-cmake-asan-fuzzer, ubuntu-latest) (push) Waiting to run
CMake / build (cmake, clang, -G Ninja, clang++, ubuntu-latest-clang-cmake-ninja, ubuntu-latest) (push) Waiting to run
CMake / build (cmake, gcc, , g++, ubuntu-latest-gcc-cmake, ubuntu-latest) (push) Waiting to run
libhevc: Add Android.bp and TradeFed configs for HevcTest
Add Android.bp, AndroidTest.xml, and DynamicConfig.xml for HEVC decoder
and encoder unit tests under tests/.

- Create HevcTest cc_test target combining decoder and encoder tests
- Consolidate libhevc_dec_helper and libhevc_enc_helper in tests/Android.bp
- Add AndroidTest.xml and DynamicConfig.xml referencing HevcTestRes-1.0

Test: m HevcTest

TAG=agy
CONV=45ddf533-39e8-4532-85df-085db1ce522a
2026-08-23 21:54:59 +00:00

85 lines
1.5 KiB
Text

package {
// Inherit applicable licenses from root
default_applicable_licenses: ["external_libhevc_license"],
}
// Decoder Test Helper Library
cc_library_static {
name: "libhevc_dec_helper",
host_supported: true,
srcs: [
"decoder/DecHelper.cpp",
],
export_include_dirs: ["decoder"],
static_libs: [
"libhevcdec",
"libhevc_tests_common",
"libgtest",
"libgmock",
],
shared_libs: [
"libcrypto",
],
cflags: [
"-Wall",
"-Werror",
],
}
// Encoder Test Helper Library
cc_library_static {
name: "libhevc_enc_helper",
host_supported: true,
srcs: [
"encoder/EncHelper.cpp",
],
export_include_dirs: ["encoder"],
static_libs: [
"libhevcenc",
"libhevc_tests_common",
],
shared_libs: [
"libcrypto",
],
cflags: [
"-Wall",
"-Werror",
],
}
cc_test {
name: "HevcTest",
gtest: true,
host_supported: true,
test_suites: ["device-tests"],
srcs: [
"decoder/DecTests.cpp",
"encoder/EncTests.cpp",
],
static_libs: [
"libhevcdec",
"libhevcenc",
"libhevc_dec_helper",
"libhevc_enc_helper",
"libhevc_tests_common",
],
shared_libs: [
"libcrypto",
],
cflags: [
"-Wall",
"-Werror",
],
sanitize: {
misc_undefined: [
"signed-integer-overflow",
"unsigned-integer-overflow",
],
//cfi: true,
},
}