-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtest_php_ext.py
More file actions
89 lines (71 loc) · 2.28 KB
/
test_php_ext.py
File metadata and controls
89 lines (71 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import pytest
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_bcmath_is_loaded(host):
assert 'bcmath' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_eio_is_loaded(host):
assert 'eio' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_event_is_loaded(host):
assert 'event' in host.run('php -m').stdout
@pytest.mark.php_not_slim
def test_gd_is_loaded(host):
assert 'gd' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_gmp_is_loaded(host):
assert 'gmp' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_iconv_is_loaded(host):
assert 'iconv' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_iconv_is_loaded(host):
assert 'intl' in host.run('php -m').stdout
@pytest.mark.php_zts
def test_parallel_is_loaded(host):
assert 'parallel' in host.run('php -m').stdout
@pytest.mark.php_nts
def test_parallel_is_not_loaded(host):
assert 'parallel' not in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_pcntl_is_loaded(host):
assert 'pcntl' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_pgsql_is_loaded(host):
assert 'pdo' in host.run('php -m').stdout
assert 'pgsql' in host.run('php -m').stdout
assert 'pdo_pgsql' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_uv_is_loaded(host):
assert 'uv' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_mrloop_is_loaded(host):
assert 'mrloop' in host.run('php -m').stdout
@pytest.mark.php_not_slim_amd64
def test_vips_is_loaded(host):
assert 'vips' in host.run('php -m').stdout
@pytest.mark.php_dev
def test_xdebug_is_loaded(host):
assert 'Xdebug' in host.run('php -m').stdout
@pytest.mark.php_no_dev
def test_xdebug_is_not_loaded(host):
assert 'Xdebug' not in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_zip_is_loaded(host):
assert 'zip' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_zip_is_loaded(host):
output = host.run('php -r "exit(function_exists(\'mt_rand\') ? 0 : 255);"')
assert output.rc == 0
# assert 'random' in host.run('php -m').stdout