blob: f0382f9b42e5687453d9dc81b3e185a9ca1dc007 [file] [log] [blame]
# Copyright 2022 The ChromiumOS Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CROS_WORKON_COMMIT="424149d2a083ff5213897ca292ab4f986f0b58c0"
CROS_WORKON_TREE=("1647a468f15f85e89d45c799e27359e3e664c67b" "fa6f6d4bf420ee9b84e4174ac9cc48e278c06b3d" "f91b6afd5f2ae04ee9a2c19109a3a4a36f7659e6")
CROS_WORKON_LOCALNAME="../platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_DESTDIR="${S}/platform2"
CROS_WORKON_SUBTREE="common-mk ml_core .gn"
DESCRIPTION="Tests for Chrome OS ML Core Feature Library"
PLATFORM_SUBDIR="ml_core/tests"
inherit cros-workon platform
# camera_feature_effects needed as `use.camera_feature_effects` is
# referenced in BUILD.gn
IUSE="camera_feature_effects"
LICENSE="BSD-Google"
KEYWORDS="*"
RDEPEND="
dev-libs/ml-core:=
media-libs/libpng:=
chromeos-base/dlcservice:=
chromeos-base/dlcservice-client:=
"
DEPEND="${RDEPEND}
"
src_install() {
platform_src_install
insinto /usr/local/
dobin "${OUT}"/ml_core_effects_pipeline_test
insinto /usr/local/share/ml_core
doins -r testdata/*.png
}
platform_pkg_test() {
local tests=(
ml_core_pngio_test
)
local test_bin
for test_bin in "${tests[@]}"; do
platform_test "run" "${OUT}/${test_bin}"
done
}