restore a couple of tests

This commit is contained in:
Radovan Bast 2016-05-20 20:55:10 +02:00
parent 30ced00c4f
commit 6896da511c
9 changed files with 70 additions and 116 deletions

View File

@ -1,15 +1,11 @@
[project]
name: example
min_cmake_version: 2.8
[cxx]
source: ../../../modules/cxx.cmake
[math]
source: ../../../modules/math/accelerate.cmake
[default_build_paths]
source: ../../../modules/default_build_paths.cmake
[src]
source: ../../../modules/src.cmake
modules:
- cxx:
- source: ../../../modules/cxx.cmake
- math:
- source: ../../../modules/math/accelerate.cmake
- default_build_paths:
- source: ../../../modules/default_build_paths.cmake
- src:
- source: ../../../modules/src.cmake

View File

@ -1,15 +1,11 @@
[project]
name: example
min_cmake_version: 2.8
[cxx]
source: ../../../modules/cxx.cmake
[math]
source: ../../../modules/math/cblas.cmake
[default_build_paths]
source: ../../../modules/default_build_paths.cmake
[src]
source: ../../../modules/src.cmake
modules:
- cxx:
- source: ../../../modules/cxx.cmake
- math:
- source: ../../../modules/math/cblas.cmake
- default_build_paths:
- source: ../../../modules/default_build_paths.cmake
- src:
- source: ../../../modules/src.cmake

View File

@ -1,12 +1,9 @@
[project]
name: example
min_cmake_version: 2.8
[cxx]
source: ../../../modules/cxx.cmake
[default_build_paths]
source: ../../../modules/default_build_paths.cmake
[src]
source: ../../../modules/src.cmake
modules:
- cxx:
- source: ../../../modules/cxx.cmake
- default_build_paths:
- source: ../../../modules/default_build_paths.cmake
- src:
- source: ../../../modules/src.cmake

View File

@ -1,15 +1,11 @@
[project]
name: example
min_cmake_version: 2.8
[fc]
source: ../../../modules/fc.cmake
[math]
source: ../../../modules/math/blas.cmake
[default_build_paths]
source: ../../../modules/default_build_paths.cmake
[src]
source: ../../../modules/src.cmake
modules:
- fc:
- source: ../../../modules/fc.cmake
- math:
- source: ../../../modules/math/blas.cmake
- default_build_paths:
- source: ../../../modules/default_build_paths.cmake
- src:
- source: ../../../modules/src.cmake

View File

@ -1,15 +1,11 @@
[project]
name: example
min_cmake_version: 2.8
[fc]
source: ../../../modules/fc.cmake
[default_build_paths]
source: ../../../modules/default_build_paths.cmake
[src]
source: ../../../modules/src.cmake
[git_info]
source: ../../../modules/git_info/git_info.cmake
modules:
- fc:
- source: ../../../modules/fc.cmake
- default_build_paths:
- source: ../../../modules/default_build_paths.cmake
- src:
- source: ../../../modules/src.cmake
- git_info:
- source: ../../../modules/git_info/git_info.cmake

View File

@ -1,15 +1,11 @@
[project]
name: example
min_cmake_version: 2.8
[fc]
source: ../../../modules/fc.cmake
[int64]
source: ../../../modules/int64.cmake
[default_build_paths]
source: ../../../modules/default_build_paths.cmake
[src]
source: ../../../modules/src.cmake
modules:
- fc:
- source: ../../../modules/fc.cmake
- int64:
- source: ../../../modules/int64.cmake
- default_build_paths:
- source: ../../../modules/default_build_paths.cmake
- src:
- source: ../../../modules/src.cmake

View File

@ -1,15 +1,11 @@
[project]
name: example
min_cmake_version: 2.8
[fc]
source: ../../../modules/fc.cmake
[math]
source: ../../../modules/math/lapack.cmake
[default_build_paths]
source: ../../../modules/default_build_paths.cmake
[src]
source: ../../../modules/src.cmake
modules:
- fc:
- source: ../../../modules/fc.cmake
- math:
- source: ../../../modules/math/lapack.cmake
- default_build_paths:
- source: ../../../modules/default_build_paths.cmake
- src:
- source: ../../../modules/src.cmake

View File

@ -1,15 +1,11 @@
[project]
name: example
min_cmake_version: 2.8
[fc]
source: ../../../modules/fc.cmake
[omp]
source: ../../../modules/omp.cmake
[default_build_paths]
source: ../../../modules/default_build_paths.cmake
[src]
source: ../../../modules/src.cmake
modules:
- fc:
- source: ../../../modules/fc.cmake
- omp:
- source: ../../../modules/omp.cmake
- default_build_paths:
- source: ../../../modules/default_build_paths.cmake
- src:
- source: ../../../modules/src.cmake

View File

@ -15,9 +15,6 @@ skip_on_linux = pytest.mark.skipif('sys.platform == "linux2"', reason="not worki
skip_always = pytest.mark.skipif('1 == 1', reason="tests are broken")
# ------------------------------------------------------------------------------
def exe(command):
"""
Executes command and returns string representations of stdout and stderr captured from the console.
@ -41,8 +38,6 @@ def exe(command):
return stdout, stderr
# ------------------------------------------------------------------------------
def configure_build_and_exe(name, setup_command, launcher=None):
@ -83,10 +78,7 @@ def configure_build_and_exe(name, setup_command, launcher=None):
assert 'PASSED' in stdout
# ------------------------------------------------------------------------------
@skip_always
def test_extra_cmake_options():
configure_build_and_exe('extra_cmake_options', 'python setup --cxx=g++ --cmake-options="-DENABLE_SOMETHING=OFF -DENABLE_FOO=ON"')
@ -99,40 +91,33 @@ def test_fc():
configure_build_and_exe('fc', 'python setup --fc=gfortran')
@skip_always
def test_fc_git_info():
configure_build_and_exe('fc_git_info', 'python setup --fc=gfortran')
@skip_always
def test_fc_int64():
configure_build_and_exe('fc_int64', 'python setup --fc=gfortran --int64')
@skip_always
@skip_on_osx
def test_fc_omp():
os.environ['OMP_NUM_THREADS'] = '2'
configure_build_and_exe('fc_omp', 'python setup --omp --fc=gfortran')
@skip_always
def test_fc_blas():
configure_build_and_exe('fc_blas', 'python setup --fc=gfortran --blas')
@skip_always
def test_fc_lapack():
configure_build_and_exe('fc_lapack', 'python setup --fc=gfortran --lapack')
@skip_always
@skip_on_osx
def test_cxx_cblas():
configure_build_and_exe('cxx_cblas', 'python setup --cxx=g++ --cblas')
@skip_always
@skip_on_linux
def test_cxx_accelerate():
configure_build_and_exe('cxx_accelerate', 'python setup --cxx=g++ --accelerate')