diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-20 16:51:14 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-28 15:00:54 +0200 |
| commit | 54dd762f596d4b0ea97d6d10e9d0c96e0f33e76e (patch) | |
| tree | 4c8837cfc655c3215ee44b6002d9f6b3a60855ba /sapi | |
| parent | ca6f41aa5a15a44f841e42c7255294d521c95d5d (diff) | |
| download | php-git-54dd762f596d4b0ea97d6d10e9d0c96e0f33e76e.tar.gz | |
Set up asan+ubsan scheduled build on azure
Also adds an --asan flag to run-tests.php to setup all the necessary
environment variables. Some tests are marked as skipped because they
are incompatible with asan or too slow.
I'm basing this on the DEBUG_ZTS build, which seems to give us the
most mileage.
Diffstat (limited to 'sapi')
| -rw-r--r-- | sapi/cli/tests/upload_2G.phpt | 4 | ||||
| -rw-r--r-- | sapi/fpm/tests/bug68381-log-level-warning.phpt | 1 | ||||
| -rw-r--r-- | sapi/phpdbg/tests/watch_001.phpt | 3 | ||||
| -rw-r--r-- | sapi/phpdbg/tests/watch_002.phpt | 3 | ||||
| -rw-r--r-- | sapi/phpdbg/tests/watch_003.phpt | 3 | ||||
| -rw-r--r-- | sapi/phpdbg/tests/watch_004.phpt | 3 | ||||
| -rw-r--r-- | sapi/phpdbg/tests/watch_005.phpt | 3 | ||||
| -rw-r--r-- | sapi/phpdbg/tests/watch_006.phpt | 3 |
8 files changed, 23 insertions, 0 deletions
diff --git a/sapi/cli/tests/upload_2G.phpt b/sapi/cli/tests/upload_2G.phpt index 34e3a7c288..a4bcc6860f 100644 --- a/sapi/cli/tests/upload_2G.phpt +++ b/sapi/cli/tests/upload_2G.phpt @@ -25,6 +25,10 @@ if (empty($enough_free_ram)) { if (getenv('TRAVIS')) { die("skip Fails intermittently on travis"); } + +if (getenv('SKIP_PERF_SENSITIVE')) { + die("skip Test may be very slow if PHP is instrumented"); +} ?> --FILE-- <?php diff --git a/sapi/fpm/tests/bug68381-log-level-warning.phpt b/sapi/fpm/tests/bug68381-log-level-warning.phpt index 8d4a9af4cc..b9066cd051 100644 --- a/sapi/fpm/tests/bug68381-log-level-warning.phpt +++ b/sapi/fpm/tests/bug68381-log-level-warning.phpt @@ -3,6 +3,7 @@ FPM: bug68381 - Log messages with warning level only --SKIPIF-- <?php include "skipif.inc"; +if (getenv("SKIP_ASAN")) die("skip Often fails on azure with asan for unknown reason"); ?> --FILE-- <?php diff --git a/sapi/phpdbg/tests/watch_001.phpt b/sapi/phpdbg/tests/watch_001.phpt index 86e5786e97..90ede3f952 100644 --- a/sapi/phpdbg/tests/watch_001.phpt +++ b/sapi/phpdbg/tests/watch_001.phpt @@ -5,6 +5,9 @@ Test simple recursive watchpoint if (PHP_INT_SIZE == 4) { die("xfail There may be flaws in the implementation of watchpoints that cause failures"); } +if (getenv('SKIP_ASAN')) { + die("skip intentionally causes segfaults"); +} ?> --INI-- opcache.optimization_level=0 diff --git a/sapi/phpdbg/tests/watch_002.phpt b/sapi/phpdbg/tests/watch_002.phpt index 52336c08d0..ba2cad1abe 100644 --- a/sapi/phpdbg/tests/watch_002.phpt +++ b/sapi/phpdbg/tests/watch_002.phpt @@ -5,6 +5,9 @@ Test simple array watchpoint with replace if (PHP_INT_SIZE == 4) { die("xfail There may be flaws in the implementation of watchpoints that cause failures"); } +if (getenv('SKIP_ASAN')) { + die("skip intentionally causes segfaults"); +} ?> --PHPDBG-- b 6 diff --git a/sapi/phpdbg/tests/watch_003.phpt b/sapi/phpdbg/tests/watch_003.phpt index e054b6f324..ab6dc317a8 100644 --- a/sapi/phpdbg/tests/watch_003.phpt +++ b/sapi/phpdbg/tests/watch_003.phpt @@ -5,6 +5,9 @@ Test simple watchpoint with replace if (PHP_INT_SIZE == 4) { die("xfail There may be flaws in the implementation of watchpoints that cause failures"); } +if (getenv('SKIP_ASAN')) { + die("skip intentionally causes segfaults"); +} ?> --PHPDBG-- b 6 diff --git a/sapi/phpdbg/tests/watch_004.phpt b/sapi/phpdbg/tests/watch_004.phpt index dcb37a4959..42e3fd3b26 100644 --- a/sapi/phpdbg/tests/watch_004.phpt +++ b/sapi/phpdbg/tests/watch_004.phpt @@ -5,6 +5,9 @@ Test detection of inline string manipulations on zval watch if (PHP_INT_SIZE == 4) { die("xfail There may be flaws in the implementation of watchpoints that cause failures"); } +if (getenv('SKIP_ASAN')) { + die("skip intentionally causes segfaults"); +} ?> --INI-- opcache.optimization_level=0 diff --git a/sapi/phpdbg/tests/watch_005.phpt b/sapi/phpdbg/tests/watch_005.phpt index 0bd44c9a01..aacc158f61 100644 --- a/sapi/phpdbg/tests/watch_005.phpt +++ b/sapi/phpdbg/tests/watch_005.phpt @@ -5,6 +5,9 @@ Test proper watch comparisons when having multiple levels of indirection from a if (PHP_INT_SIZE == 4) { die("xfail There may be flaws in the implementation of watchpoints that cause failures"); } +if (getenv('SKIP_ASAN')) { + die("skip intentionally causes segfaults"); +} ?> --PHPDBG-- b 3 diff --git a/sapi/phpdbg/tests/watch_006.phpt b/sapi/phpdbg/tests/watch_006.phpt index fa292005a4..5b5ca9ee57 100644 --- a/sapi/phpdbg/tests/watch_006.phpt +++ b/sapi/phpdbg/tests/watch_006.phpt @@ -5,6 +5,9 @@ Test multiple watch elements pointing to the same watchpoint if (PHP_INT_SIZE == 4) { die("xfail There may be flaws in the implementation of watchpoints that cause failures"); } +if (getenv('SKIP_ASAN')) { + die("skip intentionally causes segfaults"); +} ?> --PHPDBG-- b 4 |
