commit:     a06cdf4161b4dae04afb2cb5e2487df8c9c83147
Author:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 30 03:05:07 2018 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Mon Apr 30 03:09:32 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a06cdf41

dev-util/qbs: fix and reenable TestApi tests

Package-Manager: Portage-2.3.31, Repoman-2.3.9

 dev-util/qbs/qbs-1.11.0.ebuild | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/dev-util/qbs/qbs-1.11.0.ebuild b/dev-util/qbs/qbs-1.11.0.ebuild
index bfadc6296da..4971aeed820 100644
--- a/dev-util/qbs/qbs-1.11.0.ebuild
+++ b/dev-util/qbs/qbs-1.11.0.ebuild
@@ -53,9 +53,6 @@ src_prepare() {
 
        echo "SUBDIRS = $(usex test auto '')" >> tests/tests.pro
 
-       # since 1.10, TestApi is either broken or requires more configuration
-       sed -i -e '/\<api\>/ d' tests/auto/auto.pro || die
-
        # skip several tests that fail and/or have additional deps
        sed -i \
                -e 's/findArchiver("7z")/""/'           `# requires p7zip, 
fails` \
@@ -86,9 +83,10 @@ src_test() {
 
        export HOME=${T}
        export LD_LIBRARY_PATH=${S}/$(get_libdir)
+       export QBS_AUTOTEST_PROFILE=autotests
 
-       "${S}"/bin/qbs-setup-toolchains /usr/bin/gcc gcc || die
-       "${S}"/bin/qbs-setup-qt "$(qt5_get_bindir)/qmake" qbs_autotests || die
+       "${S}"/bin/qbs-setup-toolchains --detect || die
+       "${S}"/bin/qbs-setup-qt "$(qt5_get_bindir)/qmake" autotests || die
 
        einfo "Running autotests"
 

Reply via email to