media-gfx/imagemagick: use magick.sh wrapper in src_test

Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
This commit is contained in:
Thomas Deutschmann
2018-10-31 14:45:00 +01:00
parent 30bff2fac8
commit 289e63e3fb
3 changed files with 24 additions and 15 deletions
@@ -172,12 +172,15 @@ src_test() {
cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
# Check that your policy.xml file is taken into account
LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
"${S}"/utilities/.libs/identify -list policy || die
local im_command= IM_COMMANDS=()
IM_COMMANDS+=( "magick -version" ) # Verify that we are using version we just built
IM_COMMANDS+=( "magick -list policy" ) # Verify that policy.xml is used
IM_COMMANDS+=( "emake check" ) # Run tests
LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
emake check
for im_command in "${IM_COMMANDS[@]}"; do
"${S}"/magick.sh \
${im_command} || die
done
}
src_install() {
@@ -176,12 +176,15 @@ src_test() {
cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
# Check that your policy.xml file is taken into account
LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
"${S}"/utilities/.libs/magick -list policy || die
local im_command= IM_COMMANDS=()
IM_COMMANDS+=( "magick -version" ) # Verify that we are using version we just built
IM_COMMANDS+=( "magick -list policy" ) # Verify that policy.xml is used
IM_COMMANDS+=( "emake check" ) # Run tests
LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
emake check
for im_command in "${IM_COMMANDS[@]}"; do
"${S}"/magick.sh \
${im_command} || die
done
}
src_install() {
@@ -176,12 +176,15 @@ src_test() {
cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
# Check that your policy.xml file is taken into account
LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
"${S}"/utilities/.libs/magick -list policy || die
local im_command= IM_COMMANDS=()
IM_COMMANDS+=( "magick -version" ) # Verify that we are using version we just built
IM_COMMANDS+=( "magick -list policy" ) # Verify that policy.xml is used
IM_COMMANDS+=( "emake check" ) # Run tests
LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
emake check
for im_command in "${IM_COMMANDS[@]}"; do
"${S}"/magick.sh \
${im_command} || die
done
}
src_install() {