mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
media-libs/mlt: use just built mlt for tests
Also skip xml test when xml is disabled. Closes: https://bugs.gentoo.org/978139 Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1276 Merges: https://codeberg.org/gentoo/gentoo/pulls/1276 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
3d13e2d09a
commit
e6cf60340f
@@ -172,6 +172,21 @@ src_configure() {
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# see setenv in upstream repository
|
||||
local -x MLT_REPOSITORY="${BUILD_DIR}/out/lib/mlt"
|
||||
local -x MLT_DATA="${BUILD_DIR}/out/share/mlt"
|
||||
local -x MLT_PROFILES_PATH="${BUILD_DIR}/out/share/mlt/profiles"
|
||||
local -x MLT_PRESETS_PATH="${BUILD_DIR}/out/share/mlt/presets"
|
||||
local -x LD_LIBRARY_PATH="${BUILD_DIR}/out/lib:${LD_LIBRARY_PATH}"
|
||||
local -x PATH="${BUILD_DIR}/out/bin:${PATH}"
|
||||
|
||||
local CMAKE_SKIP_TESTS=()
|
||||
use !xml && CMAKE_SKIP_TESTS+=( QtTest:xml )
|
||||
|
||||
cmake_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
|
||||
@@ -175,6 +175,21 @@ src_configure() {
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# see setenv in upstream repository
|
||||
local -x MLT_REPOSITORY="${BUILD_DIR}/out/lib/mlt"
|
||||
local -x MLT_DATA="${BUILD_DIR}/out/share/mlt"
|
||||
local -x MLT_PROFILES_PATH="${BUILD_DIR}/out/share/mlt/profiles"
|
||||
local -x MLT_PRESETS_PATH="${BUILD_DIR}/out/share/mlt/presets"
|
||||
local -x LD_LIBRARY_PATH="${BUILD_DIR}/out/lib:${LD_LIBRARY_PATH}"
|
||||
local -x PATH="${BUILD_DIR}/out/bin:${PATH}"
|
||||
|
||||
local CMAKE_SKIP_TESTS=()
|
||||
use !xml && CMAKE_SKIP_TESTS+=( QtTest:xml )
|
||||
|
||||
cmake_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user