New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testing/php7-pdlib: new aport #12174
Conversation
Hmm, somehow the tests are skipped in my local Logs of my local (skipped) tests:
|
I think it has something to do with loading the shared library, as these logs on my machine point out:
This is not logged in the CI build. How would I go around debugging this? |
yep, mostly all tests are broken because of expectation of specific directory like
and only this one fails for some reason
|
The test looks for a file called |
The workaround is to comment out broken tests diff --git a/testing/php7-pdlib/APKBUILD b/testing/php7-pdlib/APKBUILD
index 28d29419ea..ce3d42d868 100644
--- a/testing/php7-pdlib/APKBUILD
+++ b/testing/php7-pdlib/APKBUILD
@@ -9,24 +9,30 @@ url="https://github.com/goodspb/pdlib"
arch="all"
license="MIT"
depends="php7-common dlib"
-makedepends="php7-dev pkgconf"
+makedepends="php7-dev pkgconf php7-bz2"
source="$pkgname-$pkgver.tar.gz::https://github.com/goodspb/$_pkgreal/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
- cd "$builddir"
phpize7
./configure --prefix=/usr --with-php-config=php-config7
make
}
check() {
- cd "$builddir"
+ # Remove broken tests https://github.com/goodspb/pdlib/issues/14
+ rm \
+ tests/chinese_whispers_wrong_arg_type_error.phpt \
+ tests/cnn_face_detection_ctor_error.phpt \
+ tests/face_landmark_detection_ctor_error.phpt \
+ tests/face_recognition_ctor_error.phpt \
+ tests/integration_face_recognition.phpt # Downloads huge images
+ # Tests require bz2 extension which is not bundled
+ sed -i 's#PHP_TEST_SHARED_EXTENSIONS = `#PHP_TEST_SHARED_EXTENSIONS = -d extension=/usr/lib/php7/modules/bz2.so `#' Makefile
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
}
package() {
- cd "$builddir"
make INSTALL_ROOT="$pkgdir" install
install -d "$pkgdir"/etc/php7/conf.d
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini |
not sure about last one, it fails to download for me( |
Thanks for your help @andypost! I've applied your diff and committed again |
I'll keep an eye out on goodspb/pdlib#14 and enable the tests when they work again. |
Merged in 2b68695 by @andypost. Thanks for your contribution! (This pull request has been closed automatically by GitHub PR Closer. If you think that it’s not resolved yet, please add a comment.) |
I gonna disable build for |
Disabled with 9c60d06 |
This repository does not accept Pull Requests (PR) anymore. Development has moved to https://gitlab.alpinelinux.org/alpine/aports Please signup and create a Merge Request (MR) instead. Sorry for the inconvenience caused. |
No description provided.