summaryrefslogtreecommitdiff
path: root/scripts/gen_travis.py
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2017-05-22 17:15:57 -0700
committerJason Evans <jasone@canonware.com>2017-05-23 15:31:29 -0700
commit067b97013018211b39e9911ae528ff54edd8fe5e (patch)
treedfed8f83d427b61ac775263b57d67c1e0c92d227 /scripts/gen_travis.py
parent9b1038d19c998b8c219eb08d083ca0328b7941f1 (diff)
Add dss:primary testing.
Generalize the run_tests.sh and .travis.yml test generation to handle combinations of arguments to the --with-malloc-conf configure option, and merge "dss:primary" into the existing "tcache:false" testing.
Diffstat (limited to 'scripts/gen_travis.py')
-rwxr-xr-xscripts/gen_travis.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/scripts/gen_travis.py b/scripts/gen_travis.py
index 4649cb71..4a4c2144 100755
--- a/scripts/gen_travis.py
+++ b/scripts/gen_travis.py
@@ -43,12 +43,16 @@ configure_flag_unusuals = [
'--enable-debug',
'--enable-prof',
'--disable-stats',
- '--with-malloc-conf=tcache:false',
+]
+
+malloc_conf_unusuals = [
+ 'tcache:false',
+ 'dss:primary',
]
all_unusuals = (
[os_unusual] + [compilers_unusual] + compiler_flag_unusuals
- + configure_flag_unusuals
+ + configure_flag_unusuals + malloc_conf_unusuals
)
unusual_combinations_to_test = []
@@ -71,6 +75,14 @@ for unusual_combination in unusual_combinations_to_test:
configure_flags = [
x for x in unusual_combination if x in configure_flag_unusuals]
+ malloc_conf = [
+ x for x in unusual_combination if x in malloc_conf_unusuals]
+ # Filter out an unsupported configuration - dss on OS X.
+ if os == 'osx' and 'dss:primary' in malloc_conf:
+ continue
+ if len(malloc_conf) > 0:
+ configure_flags.append('--with-malloc-conf=' + ",".join(malloc_conf))
+
# Filter out an unsupported configuration - heap profiling on OS X.
if os == 'osx' and '--enable-prof' in configure_flags:
continue