]> granicus.if.org Git - php/commitdiff
Run function JIT tests in nightly build
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 29 Jul 2020 14:39:16 +0000 (16:39 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 29 Jul 2020 16:20:46 +0000 (18:20 +0200)
Changing this for primary x64 and i386 jobs for now.
The different test configurations are now consolidated in one
file shared between both.

azure/i386/job.yml
azure/i386/test.yml [deleted file]
azure/job.yml
azure/tests.yml [new file with mode: 0644]

index ec1b118aa32faa4e83ac564fc127f88c354bd4b5..2aa411e43fd6c2ba4f7e764b5e6e64ac9aa591a8 100644 (file)
@@ -86,16 +86,7 @@ jobs:
         #sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
         #sudo -u postgres psql -c "CREATE DATABASE test;"
       displayName: 'Setup'
-    - template: test.yml
+    - template: ../tests.yml
       parameters:
         configurationName: ${{ parameters.configurationName }}
-    - template: test.yml
-      parameters:
-        configurationName: ${{ parameters.configurationName }}
-        runTestsName: 'OpCache'
-        runTestsParameters: -d zend_extension=opcache.so
-    - template: test.yml
-      parameters:
-        configurationName: ${{ parameters.configurationName }}
-        runTestsName: 'JIT'
-        runTestsParameters: -d zend_extension=opcache.so -d opcache.jit_buffer_size=16M
+        runTestsParameters: ${{ parameters.runTestsParameters }}
diff --git a/azure/i386/test.yml b/azure/i386/test.yml
deleted file mode 100644 (file)
index 1e2e1d6..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-parameters:
-  runTestsName: ''
-  runTestsParameters: ''
-
-steps:
-  - script: |
-      export MYSQL_TEST_USER=root
-      export MYSQL_TEST_PASSWD=root
-      export PDO_MYSQL_TEST_DSN="mysql:host=localhost;dbname=test"
-      export PDO_MYSQL_TEST_USER=root
-      export PDO_MYSQL_TEST_PASS=root
-      export TEST_PHP_JUNIT=junit.xml
-      export REPORT_EXIT_STATUS=no
-      export SKIP_IO_CAPTURE_TESTS=1
-      rm -rf junit.xml | true
-      php run-tests.php -P -q \
-          -j$(/usr/bin/nproc) \
-          -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \
-          --offline \
-          --show-diff \
-          --show-slow 1000 \
-          --set-timeout 120 \
-          ${{ parameters.runTestsParameters }}
-    displayName: 'Test ${{ parameters.configurationName }} ${{ parameters.runTestsName }}'
-    condition: or(succeeded(), failed())
-  - task: PublishTestResults@2
-    inputs:
-      testResultsFormat: 'JUnit'
-      testResultsFiles: junit.xml
-      testRunTitle: '${{ parameters.configurationName }} ${{ parameters.runTestsName }}'
-      failTaskOnFailedTests: true
-    displayName: 'Export ${{ parameters.configurationName }} ${{ parameters.runTestsName }} Results'
-    condition: or(succeeded(), failed())
index c19cbaf1f83cf764928eedb83f7fefa572571574..e21c4c91e0f0dde044a3d76f76c625289a9581ab 100644 (file)
@@ -18,22 +18,7 @@ jobs:
       displayName: 'Make Build'
     - template: install.yml
     - template: setup.yml
-    - template: test.yml
+    - template: tests.yml
       parameters:
         configurationName: ${{ parameters.configurationName }}
         runTestsParameters: ${{ parameters.runTestsParameters }}
-    - template: test.yml
-      parameters:
-        configurationName: ${{ parameters.configurationName }}
-        runTestsName: 'OpCache'
-        runTestsParameters: >-
-          ${{ parameters.runTestsParameters }}
-          -d zend_extension=opcache.so
-    - template: test.yml
-      parameters:
-        configurationName: ${{ parameters.configurationName }}
-        runTestsName: 'JIT'
-        runTestsParameters: >-
-          ${{ parameters.runTestsParameters }}
-          -d zend_extension=opcache.so
-          -d opcache.jit_buffer_size=16M
diff --git a/azure/tests.yml b/azure/tests.yml
new file mode 100644 (file)
index 0000000..6142623
--- /dev/null
@@ -0,0 +1,34 @@
+parameters:
+  configurationName: ''
+  runTestsParameters: ''
+
+steps:
+  - template: test.yml
+    parameters:
+      configurationName: ${{ parameters.configurationName }}
+      runTestsParameters: ${{ parameters.runTestsParameters }}
+  - template: test.yml
+    parameters:
+      configurationName: ${{ parameters.configurationName }}
+      runTestsName: 'OpCache'
+      runTestsParameters: >-
+        ${{ parameters.runTestsParameters }}
+        -d zend_extension=opcache.so
+  - ${{ if eq(variables['Build.Reason'], 'Schedule') }}:
+    - template: test.yml
+      parameters:
+        configurationName: ${{ parameters.configurationName }}
+        runTestsName: 'Function JIT'
+        runTestsParameters: >-
+          ${{ parameters.runTestsParameters }}
+          -d zend_extension=opcache.so
+          -d opcache.jit_buffer_size=16M
+          -d opcache.jit=1205
+  - template: test.yml
+    parameters:
+      configurationName: ${{ parameters.configurationName }}
+      runTestsName: 'Tracing JIT'
+      runTestsParameters: >-
+        ${{ parameters.runTestsParameters }}
+        -d zend_extension=opcache.so
+        -d opcache.jit_buffer_size=16M