Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Mayr
limbo
Commits
bf86d472
Commit
bf86d472
authored
Apr 20, 2016
by
Konstantinos Chatzilygeroudis
Browse files
Added extensive tests in travis
parent
874401c2
Changes
4
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
bf86d472
...
...
@@ -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
ci/run_extensive.sh
0 → 100755
View file @
bf86d472
./waf build_extensive_tests
./waf run_extensive_tests
waf_tools/limbo.py
View file @
bf86d472
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
:
...
...
wscript
View file @
bf86d472
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment