-
Notifications
You must be signed in to change notification settings - Fork 6
/
tests.yaml
141 lines (137 loc) · 4.53 KB
/
tests.yaml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
schemaVersion: '2.0.0'
fileExistenceTests:
## Extension files
- name: 'Check swoole extension'
path: /usr/local/lib/php/extensions/no-debug-non-zts-20230831/swoole.so
shouldExist: true
- name: 'Check redis extension'
path: /usr/local/lib/php/extensions/no-debug-non-zts-20230831/redis.so
shouldExist: true
- name: 'Check imagick extension'
path: /usr/local/lib/php/extensions/no-debug-non-zts-20230831/imagick.so
shouldExist: true
- name: 'Check yaml extension'
path: /usr/local/lib/php/extensions/no-debug-non-zts-20230831/yaml.so
shouldExist: true
- name: 'Check maxminddb extension'
path: /usr/local/lib/php/extensions/no-debug-non-zts-20230831/maxminddb.so
shouldExist: true
- name: 'Check mongodb extension'
path: /usr/local/lib/php/extensions/no-debug-non-zts-20230831/mongodb.so
shouldExist: true
- name: 'Check scrypt extension'
path: /usr/local/lib/php/extensions/no-debug-non-zts-20230831/scrypt.so
shouldExist: true
- name: 'Check zstd extension'
path: /usr/local/lib/php/extensions/no-debug-non-zts-20230831/zstd.so
shouldExist: true
- name: 'Check brotli extension'
path: /usr/local/lib/php/extensions/no-debug-non-zts-20230831/brotli.so
shouldExist: true
- name: 'Check lz4 extension'
path: /usr/local/lib/php/extensions/no-debug-non-zts-20230831/lz4.so
shouldExist: true
- name: 'Check snappy extension'
path: /usr/local/lib/php/extensions/no-debug-non-zts-20230831/snappy.so
shouldExist: true
## ini files
- name: 'Check swoole ini'
path: /usr/local/etc/php/conf.d/swoole.ini
shouldExist: true
- name: 'Check redis ini'
path: /usr/local/etc/php/conf.d/redis.ini
shouldExist: true
- name: 'Check imagick ini'
path: /usr/local/etc/php/conf.d/imagick.ini
shouldExist: true
- name: 'Check yaml ini'
path: /usr/local/etc/php/conf.d/yaml.ini
shouldExist: true
- name: 'Check maxminddb ini'
path: /usr/local/etc/php/conf.d/maxminddb.ini
shouldExist: true
- name: 'Check scrypt ini'
path: /usr/local/etc/php/conf.d/scrypt.ini
shouldExist: true
- name: 'Check zstd ini'
path: /usr/local/etc/php/conf.d/zstd.ini
shouldExist: true
- name: 'Check brotli ini'
path: /usr/local/etc/php/conf.d/brotli.ini
shouldExist: true
- name: 'Check lz4 ini'
path: /usr/local/etc/php/conf.d/lz4.ini
shouldExist: true
- name: 'Check snappy ini'
path: /usr/local/etc/php/conf.d/snappy.ini
shouldExist: true
fileContentTests:
- name: 'swoole ini'
path: '/usr/local/etc/php/conf.d/swoole.ini'
expectedContents: ['extension=swoole.so']
- name: 'redis ini'
path: '/usr/local/etc/php/conf.d/redis.ini'
expectedContents: ['extension=redis.so']
- name: 'imagick ini'
path: '/usr/local/etc/php/conf.d/imagick.ini'
expectedContents: ['extension=imagick.so']
- name: 'yaml ini'
path: '/usr/local/etc/php/conf.d/yaml.ini'
expectedContents: ['extension=yaml.so']
- name: 'maxminddb ini'
path: '/usr/local/etc/php/conf.d/maxminddb.ini'
expectedContents: ['extension=maxminddb.so']
- name: 'scrypt ini'
path: '/usr/local/etc/php/conf.d/scrypt.ini'
expectedContents: ['extension=scrypt.so']
- name: 'zstd ini'
path: '/usr/local/etc/php/conf.d/zstd.ini'
expectedContents: ['extension=zstd.so']
- name: 'brotli ini'
path: '/usr/local/etc/php/conf.d/brotli.ini'
expectedContents: ['extension=brotli.so']
- name: 'lz4 ini'
path: '/usr/local/etc/php/conf.d/lz4.ini'
expectedContents: ['extension=lz4.so']
- name: 'snappy ini'
path: '/usr/local/etc/php/conf.d/snappy.ini'
expectedContents: ['extension=snappy.so']
commandTests:
- name: 'Imagemagick command'
command: "magick"
args: ["--version"]
expectedOutput: [".*ImageMagick 7.1.*"]
- name: 'rsync command'
command: "rsync"
args: ["--version"]
expectedOutput: ["rsync version 3.*"]
- name: 'Certbot command'
command: "certbot"
args: ["--version"]
expectedOutput: ["certbot 2.*"]
- name: 'Docker command'
command: "docker"
args: ["--version"]
expectedOutput: ["Docker version 26.*"]
- name: 'PHP info'
command: "php"
args: ["-m"]
expectedOutput:
- ".*imagick.*"
- ".*maxminddb.*"
- ".*swoole.*"
- ".*redis.*"
- ".*yaml.*"
- ".*scrypt.*"
- ".*curl.*"
- ".*PDO.*"
- ".*pdo_mysql.*"
- ".*zstd.*"
- ".*brotli.*"
- ".*lz4.*"
- ".*snappy.*"
- name: 'PHP intl'
command: "php"
args: ["-r", 'print(\Normalizer::FORM_D);']
expectedOutput:
- "4"