From: "Brian Evans" <grknight@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-http/
Date: Fri, 18 May 2018 20:11:08 +0000 (UTC) [thread overview]
Message-ID: <1526674260.d676eb38df8ab595af6c03def8b095672d297e79.grknight@gentoo> (raw)
commit: d676eb38df8ab595af6c03def8b095672d297e79
Author: Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Fri May 18 20:09:27 2018 +0000
Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Fri May 18 20:11:00 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d676eb38
dev-php/pecl-http: Fix tests so they don't SKIP everything
The basic testing command ignores the requirements of other
extensions needed to run. This adds the required ones.
Package-Manager: Portage-2.3.38, Repoman-2.3.9
dev-php/pecl-http/pecl-http-2.6.0-r2.ebuild | 13 +++++++++++++
dev-php/pecl-http/pecl-http-3.1.0-r2.ebuild | 17 +++++++++++++++++
2 files changed, 30 insertions(+)
diff --git a/dev-php/pecl-http/pecl-http-2.6.0-r2.ebuild b/dev-php/pecl-http/pecl-http-2.6.0-r2.ebuild
index 3a3e49cd8b3..63cfe3ff805 100644
--- a/dev-php/pecl-http/pecl-http-2.6.0-r2.ebuild
+++ b/dev-php/pecl-http/pecl-http-2.6.0-r2.ebuild
@@ -53,6 +53,19 @@ src_install() {
fi
}
+src_test() {
+ for slot in $(php_get_slots); do
+ php_init_slot_env "${slot}"
+ ln -s "${EXT_DIR}/propro.so" "modules/propro.so" || die
+ ln -s "${EXT_DIR}/raphf.so" "modules/raphf.so" || die
+ sed -i \
+ 's/PHP_TEST_SHARED_EXTENSIONS)/PHP_TEST_SHARED_EXTENSIONS) -d extension=propro.so -d extension=raphf.so/' \
+ Makefile || die
+ NO_INTERACTION="yes" emake test
+ rm modules/propro.so modules/raphf.so || die
+ done
+}
+
pkg_postinst() {
ewarn "This API has drastically changed and is not compatible with the 1.x syntax."
ewarn "Please review the documentation and update your code."
diff --git a/dev-php/pecl-http/pecl-http-3.1.0-r2.ebuild b/dev-php/pecl-http/pecl-http-3.1.0-r2.ebuild
index 68af2db5ec8..9351232041c 100644
--- a/dev-php/pecl-http/pecl-http-3.1.0-r2.ebuild
+++ b/dev-php/pecl-http/pecl-http-3.1.0-r2.ebuild
@@ -53,6 +53,23 @@ src_install() {
fi
}
+src_test() {
+ # Cannot use eclass function due to required modules
+ # All tests SKIP otherwise
+ for slot in $(php_get_slots); do
+ php_init_slot_env "${slot}"
+ # Link in required modules for testing
+ ln -s "${EXT_DIR}/propro.so" "modules/propro.so" || die
+ ln -s "${EXT_DIR}/raphf.so" "modules/raphf.so" || die
+ sed -i \
+ 's/PHP_TEST_SHARED_EXTENSIONS)/PHP_TEST_SHARED_EXTENSIONS) -d extension=propro.so -d extension=raphf.so/' \
+ Makefile || die
+ NO_INTERACTION="yes" emake test
+ # Clean up testing links
+ rm modules/propro.so modules/raphf.so || die
+ done
+}
+
pkg_postinst() {
ewarn "This API has drastically changed and is not compatible with the 1.x syntax."
ewarn "Please review the documentation and update your code."
next reply other threads:[~2018-05-18 20:11 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-18 20:11 Brian Evans [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-12 7:54 [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-http/ Sam James
2024-12-12 7:07 Arthur Zamarin
2024-12-11 5:39 Sam James
2024-12-11 3:56 Sam James
2023-11-25 5:36 Sam James
2023-07-27 18:49 Michael Orlitzky
2023-07-05 4:19 Sam James
2023-07-05 4:19 Sam James
2023-07-05 4:19 Sam James
2023-07-05 4:19 Sam James
2022-06-30 14:32 Brian Evans
2022-06-30 14:04 Brian Evans
2022-04-12 13:24 Brian Evans
2022-04-11 18:03 Brian Evans
2021-10-23 12:46 Brian Evans
2021-10-23 7:44 Agostino Sarubbo
2021-10-21 4:40 Agostino Sarubbo
2021-09-22 14:51 Brian Evans
2021-05-19 15:08 Brian Evans
2021-05-18 18:37 Thomas Deutschmann
2021-05-01 18:07 Sam James
2021-02-01 15:44 Brian Evans
2021-02-01 15:44 Brian Evans
2021-01-21 2:49 Brian Evans
2021-01-21 2:49 Brian Evans
2020-12-10 20:26 Brian Evans
2019-12-13 0:07 Thomas Deutschmann
2019-12-05 19:02 Brian Evans
2019-12-02 14:10 Thomas Deutschmann
2019-11-28 22:48 Thomas Deutschmann
2019-11-17 21:01 Thomas Deutschmann
2019-06-07 14:14 Thomas Deutschmann
2018-12-18 0:51 Thomas Deutschmann
2018-01-29 16:44 Brian Evans
2017-10-09 13:22 Brian Evans
2017-03-19 17:32 Michael Orlitzky
2017-03-19 17:32 Michael Orlitzky
2017-02-23 16:30 Agostino Sarubbo
2017-02-22 15:06 Agostino Sarubbo
2016-12-28 21:20 Brian Evans
2016-11-24 2:03 Michael Orlitzky
2016-11-19 13:55 Agostino Sarubbo
2016-11-19 13:53 Agostino Sarubbo
2016-08-23 20:58 Brian Evans
2016-07-13 14:41 Brian Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1526674260.d676eb38df8ab595af6c03def8b095672d297e79.grknight@gentoo \
--to=grknight@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox