blob: 294b2281978ad2279e3b8d3d1b0414529fbc0d02 [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_COMMIT="207b9c95e801b90f6616962cb928bec371aed39f"
CROS_WORKON_TREE=("17f4a6efa079886fb3e23fd256264f932d59721d" "cacc0cb9d67110e776f848341dd3732a5ba71db4" "bf63e42013d78934a2f5ffc087f8dac3ab1700e2")
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_INCREMENTAL_BUILD=1
# TODO(crbug.com/809389): Avoid directly including headers from other packages.
CROS_WORKON_SUBTREE="common-mk libcontainer run_oci"
PLATFORM_SUBDIR="run_oci"
inherit cros-workon libchrome platform
DESCRIPTION="Utility for running OCI-compatible containers"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE=""
RDEPEND="
chromeos-base/libbrillo
chromeos-base/libcontainer
sys-apps/util-linux
sys-libs/libcap
"
DEPEND="${RDEPEND}"
src_install() {
cd "${OUT}"
dobin run_oci
}
platform_pkg_test() {
local tests=(
container_config_parser_unittest
run_oci_unittest
)
local test_bin
for test_bin in "${tests[@]}"; do
# platform_test takes care of setting up your test environment
platform_test "run" "${OUT}/${test_bin}"
done
}