mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/php-pecl-dbus: new package
The php-pecl-dbus package provides a PHP extension for interaction with D-Bus busses. https://github.com/derickr/pecl-dbus Based on initial work from Nicolas Carrier <nicolas.carrier@orolia.com> Signed-off-by: Herve Codina <herve.codina@bootlin.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle (Essensium/Mind)
parent
eedbd6f97d
commit
7f9ad0ed7f
32
support/testing/tests/package/test_php_pecl_dbus.py
Normal file
32
support/testing/tests/package/test_php_pecl_dbus.py
Normal file
@@ -0,0 +1,32 @@
|
||||
import os
|
||||
|
||||
import infra.basetest
|
||||
|
||||
|
||||
class TestPhpPeclDbus(infra.basetest.BRTest):
|
||||
config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
|
||||
"""
|
||||
BR2_PACKAGE_PHP=y
|
||||
BR2_PACKAGE_PHP_SAPI_CLI=y
|
||||
BR2_PACKAGE_PHP_PECL_DBUS=y
|
||||
BR2_TARGET_ROOTFS_CPIO=y
|
||||
# BR2_TARGET_ROOTFS_TAR is not set
|
||||
"""
|
||||
|
||||
def test_run(self):
|
||||
img = os.path.join(self.builddir, "images", "rootfs.cpio")
|
||||
self.emulator.boot(arch="armv5",
|
||||
kernel="builtin",
|
||||
options=["-initrd", img])
|
||||
self.emulator.login()
|
||||
|
||||
self.assertRunOk("mkdir /etc/php.d")
|
||||
self.assertRunOk("echo 'extension=dbus.so'> /etc/php.d/dbus.ini")
|
||||
|
||||
output, exit_code = self.emulator.run("php --ri dbus | sed '/^$/d'")
|
||||
self.assertEqual(exit_code, 0)
|
||||
self.assertEqual(output[0], "dbus")
|
||||
self.assertEqual(output[1], "Dbus support => enabled")
|
||||
# Do not check the version value in order to avoid test failure when
|
||||
# bumping package version
|
||||
self.assertEqual(output[2][0:11], "Version => ")
|
||||
Reference in New Issue
Block a user