summaryrefslogtreecommitdiff
path: root/scripts/gen_run_tests.py
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2018-05-08 12:12:50 -0700
committerQi Wang <interwq@gwu.edu>2018-05-08 12:12:50 -0700
commit61efbda7098de6fe64c362d309824864308c36d4 (patch)
tree62b8cec5495df891b28fbb139b0c01cdbf9f3fb3 /scripts/gen_run_tests.py
parent3f5049340e66c6929c3270f7359617f62e053b11 (diff)
parent1c51381b7cc62b6e0e77d02c42925c3776dbc4a2 (diff)
Merge branch 'dev'
Diffstat (limited to 'scripts/gen_run_tests.py')
-rwxr-xr-xscripts/gen_run_tests.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/gen_run_tests.py b/scripts/gen_run_tests.py
index ddf21533..a87ecffb 100755
--- a/scripts/gen_run_tests.py
+++ b/scripts/gen_run_tests.py
@@ -1,9 +1,14 @@
#!/usr/bin/env python
+import sys
from itertools import combinations
from os import uname
from multiprocessing import cpu_count
+# Later, we want to test extended vaddr support. Apparently, the "real" way of
+# checking this is flaky on OS X.
+bits_64 = sys.maxsize > 2**32
+
nparallel = cpu_count() * 2
uname = uname()[0]
@@ -22,8 +27,10 @@ possible_config_opts = [
'--enable-debug',
'--enable-prof',
'--disable-stats',
- '--with-malloc-conf=tcache:false',
]
+if bits_64:
+ possible_config_opts.append('--with-lg-vaddr=56')
+
possible_malloc_conf_opts = [
'tcache:false',
'dss:primary',
@@ -57,6 +64,11 @@ for cc, cxx in possible_compilers:
else '')
)
+ # We don't want to test large vaddr spaces in 32-bit mode.
+ if ('-m32' in compiler_opts and '--with-lg-vaddr=56' in
+ config_opts):
+ continue
+
# Per CPU arenas are only supported on Linux.
linux_supported = ('percpu_arena:percpu' in malloc_conf_opts \
or 'background_thread:true' in malloc_conf_opts)