Commit bf86d472 authored by Konstantinos Chatzilygeroudis's avatar Konstantinos Chatzilygeroudis
Browse files

Added extensive tests in travis

parent 874401c2
......@@ -24,6 +24,7 @@ env:
- LIBCMAES=OFF NLOPT=ON TBB=OFF
- LIBCMAES=OFF NLOPT=OFF TBB=ON
- LIBCMAES=OFF NLOPT=OFF TBB=OFF
- LIBCMAES=ON NLOPT=ON TBB=ON EXTENSIVE=ON
addons:
apt:
......@@ -41,3 +42,4 @@ install:
script:
- ./waf configure
- ./waf --tests --alltests -v
- if [ "$EXTENSIVE" = "ON" ]; then 'ci/run_extensive.sh' ; fi
./waf build_extensive_tests
./waf run_extensive_tests
import os
import stat
import subprocess
from waflib.Tools import waf_unit_test
json_ok = True
try:
......@@ -39,6 +40,16 @@ def create_variants(bld, source, uselib_local,
use=uselib_local,
defines=deff)
def summary(bld):
lst = getattr(bld, 'utest_results', [])
total = 0
tfail = 0
if lst:
total = len(lst)
tfail = len([x for x in lst if x[1]])
waf_unit_test.summary(bld)
if tfail > 0:
bld.fatal("Build failed, because some tests failed!")
def _sub_script(tpl, conf_file):
if 'LD_LIBRARY_PATH' in os.environ:
......
......@@ -14,7 +14,6 @@ import os
import subprocess
import limbo
from waflib.Build import BuildContext
from waflib.Tools import waf_unit_test
import inspect
......@@ -89,24 +88,13 @@ def configure(conf):
print 'configuring for exp: ' + i
conf.recurse('exp/' + i)
def summary(bld):
lst = getattr(bld, 'utest_results', [])
total = 0
tfail = 0
if lst:
total = len(lst)
tfail = len([x for x in lst if x[1]])
waf_unit_test.summary(bld)
if tfail > 0:
bld.fatal("Build failed, because some tests failed!")
def build(bld):
bld.recurse('src/')
if bld.options.exp:
for i in bld.options.exp.split(','):
print 'Building exp: ' + i
bld.recurse('exp/' + i)
bld.add_post_fun(summary)
bld.add_post_fun(limbo.summary)
def build_extensive_tests(ctx):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment