summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-20 16:51:14 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-06-28 15:00:54 +0200
commit54dd762f596d4b0ea97d6d10e9d0c96e0f33e76e (patch)
tree4c8837cfc655c3215ee44b6002d9f6b3a60855ba /run-tests.php
parentca6f41aa5a15a44f841e42c7255294d521c95d5d (diff)
downloadphp-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 'run-tests.php')
-rwxr-xr-xrun-tests.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/run-tests.php b/run-tests.php
index 60a1bed2b6..96df073a84 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -517,6 +517,18 @@ NO_PROC_OPEN_ERROR;
case '--shuffle':
$shuffle = true;
break;
+ case '--asan':
+ $environment['USE_ZEND_ALLOC'] = 0;
+ $environment['USE_TRACKED_ALLOC'] = 1;
+ $environment['SKIP_ASAN'] = 1;
+ $environment['SKIP_PERF_SENSITIVE'] = 1;
+
+ $lsanSuppressions = __DIR__ . '/azure/lsan-suppressions.txt';
+ if (file_exists($lsanSuppressions)) {
+ $environment['LSAN_OPTIONS'] = 'suppressions=' . $lsanSuppressions
+ . ':print_suppressions=0';
+ }
+ break;
//case 'w'
case '-':
// repeat check with full switch