1parameters:
2  configurationName: ''
3  configurationParameters: ''
4  runTestsParameters: ''
5  timeoutInMinutes: 60
6
7jobs:
8  - job: ${{ parameters.configurationName }}
9    timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
10    pool:
11      vmImage: 'ubuntu-20.04'
12    steps:
13    - template: mssql.yml
14    - template: apt.yml
15    - template: configure.yml
16      parameters:
17        configurationParameters: ${{ parameters.configurationParameters }}
18    - script: make -j$(/usr/bin/nproc) >/dev/null
19      displayName: 'Make Build'
20    - template: install.yml
21    - template: setup.yml
22    - template: test.yml
23      parameters:
24        configurationName: ${{ parameters.configurationName }}
25        runTestsName: 'File Cache (prime shm)'
26        runTestsParameters: >-
27          ${{ parameters.runTestsParameters }}
28          -d zend_extension=opcache.so
29          --file-cache-prime
30    - template: test.yml
31      parameters:
32        configurationName: ${{ parameters.configurationName }}
33        runTestsName: 'File Cache (prime shm, use shm)'
34        runTestsParameters: >-
35          ${{ parameters.runTestsParameters }}
36          -d zend_extension=opcache.so
37          --file-cache-use
38    - template: test.yml
39      parameters:
40        configurationName: ${{ parameters.configurationName }}
41        runTestsName: 'File Cache (prime shm, use file)'
42        runTestsParameters: >-
43          ${{ parameters.runTestsParameters }}
44          -d zend_extension=opcache.so
45          --file-cache-use
46          -d opcache.file_cache_only=1
47    - template: test.yml
48      parameters:
49        configurationName: ${{ parameters.configurationName }}
50        runTestsName: 'File Cache (prime file)'
51        runTestsParameters: >-
52          ${{ parameters.runTestsParameters }}
53          -d zend_extension=opcache.so
54          --file-cache-prime
55          -d opcache.file_cache_only=1
56    - template: test.yml
57      parameters:
58        configurationName: ${{ parameters.configurationName }}
59        runTestsName: 'File Cache (prime file, use file)'
60        runTestsParameters: >-
61          ${{ parameters.runTestsParameters }}
62          -d zend_extension=opcache.so
63          --file-cache-use
64          -d opcache.file_cache_only=1
65    - template: test.yml
66      parameters:
67        configurationName: ${{ parameters.configurationName }}
68        runTestsName: 'File Cache (prime file, use shm)'
69        runTestsParameters: >-
70          ${{ parameters.runTestsParameters }}
71          -d zend_extension=opcache.so
72          --file-cache-use
73    - template: test.yml
74      parameters:
75        configurationName: ${{ parameters.configurationName }}
76        runTestsName: 'Without interned strings'
77        runTestsParameters: >-
78          ${{ parameters.runTestsParameters }}
79          -d zend_extension=opcache.so
80          -d opcache.interned_strings_buffer=0
81    - template: test.yml
82      parameters:
83        configurationName: ${{ parameters.configurationName }}
84        runTestsName: 'Preload'
85        runTestsParameters: >-
86          ${{ parameters.runTestsParameters }}
87          -d zend_extension=opcache.so
88          --preload
89