8000 tests failed... · Issue #269 · dev-cafe/autocmake · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
tests failed... #269
Open
Open
@miroi

Description

@miroi

Hi Rado,

any help why tests are crashing ?

milias@labs.fpv.umb.sk:~/work/software/theoretical_chemistry/autocmake/.py.test -vv test/test.py
============================================================= test session starts =============================================================
platform linux -- Python 3.7.3, pytest-7.1.1, pluggy-1.0.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /home/milias/work/software/theoretical_chemistry/autocmake
collected 14 items

test/test.py::test_extra_cmake_options FAILED                                                                                           [  7%]
test/test.py::test_cxx FAILED                                                                                                           [ 14%]
test/test.py::test_fc FAILED                                                                                                            [ 21%]
test/test.py::test_fc_git_info FAILED                                                                                                   [ 28%]
test/test.py::test_fc_int64 FAILED                                                                                                      [ 35%]
test/test.py::test_fc_omp FAILED                                                                                                        [ 42%]
test/test.py::test_fc_blas FAILED                                                                                                       [ 50%]
test/test.py::test_fc_lapack FAILED                                                                                                     [ 57%]
test/test.py::test_cxx_cblas FAILED                                                                                                     [ 64%]
test/test.py::test_cxx_accelerate FAILED                                                                                                [ 71%]
test/test.py::test_python_interpreter FAILED                                                                                            [ 78%]
test/test.py::test_python_interpreter_custom FAILED                                                                                     [ 85%]
test/test.py::test_python_libs FAILED                                                                                                   [ 92%]
test/test.py::test_python_libs_custom FAILED                                                                                            [100%]

================================================================== FAILURES ===================================================================
__________________________________________________________ test_extra_cmake_options ___________________________________________________________

    def test_extra_cmake_options():
        configure_build_and_exe(
            'extra_cmake_options',
>           'python setup --cxx=g++ --cmake-options="-DENABLE_SOMETHING=OFF -DENABLE_FOO=ON"'
        )

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'extra_cmake_options'
setup_command = 'python setup --cxx=g++ --cmake-options="-DENABLE_SOMETHING=OFF -DENABLE_FOO=ON" build-2022-03-22-20-38-02', launcher = None

    def configure_build_and_exe(name, setup_command, launcher=None):

        stamp = datetime.datetime.fromtimestamp(
            time.time()).strftime('%Y-%m-%d-%H-%M-%S')

        os.chdir(os.path.join(HERE, name, 'cmake'))
        shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py')

        if os.path.exists('autocmake'):
            shutil.rmtree('autocmake')
        shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake')

        stdout, stderr = exe('python update.py ..')
        os.chdir(os.path.join(HERE, name))

        make_command = 'make'
        binary = './bin/example'
        if sys.platform == 'win32':
            setup_command += ' --generator="MinGW Makefiles"'
            make_command = 'mingw32-make'
            binary = 'bin\\\example.exe'

        if launcher:
            binary = '%s %s' % (launcher, binary)

        setup_command += ' build-%s' % stamp

        stdout, stderr = exe(setup_command)
>       assert stderr == ''
E       assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
E         + python: can't open file 'setup': [Errno 2] No such file or directory

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:73: AssertionError
------------------------------------------------------------ Captured stderr call -------------------------------------------------------------
ERROR: you need to install the pyyaml package
python: can't open file 'setup': [Errno 2] No such file or directory
__________________________________________________________________ test_cxx ___________________________________________________________________

    def test_cxx():
>       configure_build_and_exe('cxx', 'python setup --cxx=g++')

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:94:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'cxx', setup_command = 'python setup --cxx=g++ build-2022-03-22-20-38-02', launcher = None

    def configure_build_and_exe(name, setup_command, launcher=None):

        stamp = datetime.datetime.fromtimestamp(
            time.time()).strftime('%Y-%m-%d-%H-%M-%S')

        os.chdir(os.path.join(HERE, name, 'cmake'))
        shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py')

        if os.path.exists('autocmake'):
            shutil.rmtree('autocmake')
        shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake')

        stdout, stderr = exe('python update.py ..')
        os.chdir(os.path.join(HERE, name))

        make_command = 'make'
        binary = './bin/example'
        if sys.platform == 'win32':
            setup_command += ' --generator="MinGW Makefiles"'
            make_command = 'mingw32-make'
            binary = 'bin\\\example.exe'

        if launcher:
            binary = '%s %s' % (launcher, binary)

        setup_command += ' build-%s' % stamp

        stdout, stderr = exe(setup_command)
>       assert stderr == ''
E       assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
E         + python: can't open file 'setup': [Errno 2] No such file or directory

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:73: AssertionError
------------------------------------------------------------ Captured stderr call -------------------------------------------------------------
ERROR: you need to install the pyyaml package
python: can't open file 'setup': [Errno 2] No such file or directory
___________________________________________________________________ test_fc ___________________________________________________________________

    def test_fc():
>       configure_build_and_exe('fc', 'python setup --fc=gfortran')

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:98:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'fc', setup_command = 'python setup --fc=gfortran build-2022-03-22-20-38-02', launcher = None

    def configure_build_and_exe(name, setup_command, launcher=None):

        stamp = datetime.datetime.fromtimestamp(
            time.time()).strftime('%Y-%m-%d-%H-%M-%S')

        os.chdir(os.path.join(HERE, name, 'cmake'))
        shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py')

        if os.path.exists('autocmake'):
            shutil.rmtree('autocmake')
        shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake')

        stdout, stderr = exe('python update.py ..')
        os.chdir(os.path.join(HERE, name))

        make_command = 'make'
        binary = './bin/example'
        if sys.platform == 'win32':
            setup_command += ' --generator="MinGW Makefiles"'
            make_command = 'mingw32-make'
            binary = 'bin\\\example.exe'

        if launcher:
            binary = '%s %s' % (launcher, binary)

        setup_command += ' build-%s' % stamp

        stdout, stderr = exe(setup_command)
>       assert stderr == ''
E       assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
E         + python: can't open file 'setup': [Errno 2] No such file or directory

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:73: AssertionError
------------------------------------------------------------ Captured stderr call -------------------------------------------------------------
ERROR: you need to install the pyyaml package
python: can't open file 'setup': [Errno 2] No such file or directory
______________________________________________________________ test_fc_git_info _______________________________________________________________

    def test_fc_git_info():
>       configure_build_and_exe('fc_git_info', 'python setup --fc=gfortran')

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:102:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'fc_git_info', setup_command = 'python setup --fc=gfortran build-2022-03-22-20-38-02', launcher = None

    def configure_build_and_exe(name, setup_command, launcher=None):

        stamp = datetime.datetime.fromtimestamp(
            time.time()).strftime('%Y-%m-%d-%H-%M-%S')

        os.chdir(os.path.join(HERE, name, 'cmake'))
        shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py')

        if os.path.exists('autocmake'):
            shutil.rmtree('autocmake')
        shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake')

        stdout, stderr = exe('python update.py ..')
        os.chdir(os.path.join(HERE, name))

        make_command = 'make'
        binary = './bin/example'
        if sys.platform == 'win32':
            setup_command += ' --generator="MinGW Makefiles"'
            make_command = 'mingw32-make'
            binary = 'bin\\\example.exe'

        if launcher:
            binary = '%s %s' % (launcher, binary)

        setup_command += ' build-%s' % stamp

        stdout, stderr = exe(setup_command)
>       assert stderr == ''
E       assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
E         + python: can't open file 'setup': [Errno 2] No such file or directory

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:73: AssertionError
------------------------------------------------------------ Captured stderr call -------------------------------------------------------------
ERROR: you need to install the pyyaml package
python: can't open file 'setup': [Errno 2] No such file or directory
________________________________________________________________ test_fc_int64 ________________________________________________________________

    def test_fc_int64():
>       configure_build_and_exe('fc_int64', 'python setup --fc=gfortran --int64')

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'fc_int64', setup_command = 'python setup --fc=gfortran --int64 build-2022-03-22-20-38-02', launcher = None

    def configure_build_and_exe(name, setup_command, launcher=None):

        stamp = datetime.datetime.fromtimestamp(
            time.time()).strftime('%Y-%m-%d-%H-%M-%S')

        os.chdir(os.path.join(HERE, name, 'cmake'))
        shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py')

        if os.path.exists('autocmake'):
            shutil.rmtree('autocmake')
        shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake')

        stdout, stderr = exe('python update.py ..')
        os.chdir(os.path.join(HERE, name))

        make_command = 'make'
        binary = './bin/example'
        if sys.platform == 'win32':
            setup_command += ' --generator="MinGW Makefiles"'
            make_command = 'mingw32-make'
            binary = 'bin\\\example.exe'

        if launcher:
            binary = '%s %s' % (launcher, binary)

        setup_command += ' build-%s' % stamp

        stdout, stderr = exe(setup_command)
>       assert stderr == ''
E       assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
E         + python: can't open file 'setup': [Errno 2] No such file or directory

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:73: AssertionError
------------------------------------------------------------ Captured stderr call -------------------------------------------------------------
ERROR: you need to install the pyyaml package
python: can't open file 'setup': [Errno 2] No such file or directory
_________________________________________________________________ test_fc_omp _________________________________________________________________

    @skip_on_osx
    def test_fc_omp():
        os.environ['OMP_NUM_THREADS'] = '2'
>       configure_build_and_exe('fc_omp', 'python setup --omp --fc=gfortran')

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'fc_omp', setup_command = 'python setup --omp --fc=gfortran build-2022-03-22-20-38-02', launcher = None

    def configure_build_and_exe(name, setup_command, launcher=None):

        stamp = datetime.datetime.fromtimestamp(
            time.time()).strftime('%Y-%m-%d-%H-%M-%S')

        os.chdir(os.path.join(HERE, name, 'cmake'))
        shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py')

        if os.path.exists('autocmake'):
            shutil.rmtree('autocmake')
        shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake')

        stdout, stderr = exe('python update.py ..')
        os.chdir(os.path.join(HERE, name))

        make_command = 'make'
        binary = './bin/example'
        if sys.platform == 'win32':
            setup_command += ' --generator="MinGW Makefiles"'
            make_command = 'mingw32-make'
            binary = 'bin\\\example.exe'

        if launcher:
            binary = '%s %s' % (launcher, binary)

        setup_command += ' build-%s' % stamp

        stdout, stderr = exe(setup_command)
>       assert stderr == ''
E       assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
E         + python: can't open file 'setup': [Errno 2] No such file or directory

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:73: AssertionError
------------------------------------------------------------ Captured stderr call -------------------------------------------------------------
ERROR: you need to install the pyyaml package
python: can't open file 'setup': [Errno 2] No such file or directory
________________________________________________________________ test_fc_blas _________________________________________________________________

    def test_fc_blas():
>       configure_build_and_exe('fc_blas', 'python setup --fc=gfortran --blas')

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:116:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'fc_blas', setup_command = 'python setup --fc=gfortran --blas build-2022-03-22-20-38-02', launcher = None

    def configure_build_and_exe(name, setup_command, launcher=None):

        stamp = datetime.datetime.fromtimestamp(
            time.time()).strftime('%Y-%m-%d-%H-%M-%S')

        os.chdir(os.path.join(HERE, name, 'cmake'))
        shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py')

        if os.path.exists('autocmake'):
            shutil.rmtree('autocmake')
        shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake')

        stdout, stderr = exe('python update.py ..')
        os.chdir(os.path.join(HERE, name))

        make_command = 'make'
        binary = './bin/example'
        if sys.platform == 'win32':
            setup_command += ' --generator="MinGW Makefiles"'
            make_command = 'mingw32-make'
            binary = 'bin\\\example.exe'

        if launcher:
            binary = '%s %s' % (launcher, binary)

        setup_command += ' build-%s' % stamp

        stdout, stderr = exe(setup_command)
>       assert stderr == ''
E       assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
E         + python: can't open file 'setup': [Errno 2] No such file or directory

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:73: AssertionError
------------------------------------------------------------ Captured stderr call -------------------------------------------------------------
ERROR: you need to install the pyyaml package
python: can't open file 'setup': [Errno 2] No such file or directory
_______________________________________________________________ test_fc_lapack ________________________________________________________________

    def test_fc_lapack():
>       configure_build_and_exe('fc_lapack', 'python setup --fc=gfortran --lapack')

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:120:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2364
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'fc_lapack', setup_command = 'python setup --fc=gfortran --lapack build-2022-03-22-20-38-03', launcher = None

    def configure_build_and_exe(name, setup_command, launcher=None):

        stamp = datetime.datetime.fromtimestamp(
            time.time()).strftime('%Y-%m-%d-%H-%M-%S')

        os.chdir(os.path.join(HERE, name, 'cmake'))
        shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py')

        if os.path.exists('autocmake'):
            shutil.rmtree('autocmake')
        shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake')

        stdout, stderr = exe('python update.py ..')
        os.chdir(os.path.join(HERE, name))

        make_command = 'make'
        binary = './bin/example'
        if sys.platform == 'win32':
            setup_command += ' --generator="MinGW Makefiles"'
            make_command = 'mingw32-make'
            binary = 'bin\\\example.exe'

        if launcher:
            binary = '%s %s' % (launcher, binary)

        setup_command += ' build-%s' % stamp

        stdout, stderr = exe(setup_command)
>       assert stderr == ''
E       assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
E         + python: can't open file 'setup': [Errno 2] No such file or directory

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:73: AssertionError
------------------------------------------------------------ Captured stderr call -------------------------------------------------------------
ERROR: you need to install the pyyaml package
python: can't open file 'setup': [Errno 2] No such file or directory
_______________________________________________________________ test_cxx_cblas ________________________________________________________________

    @skip_on_osx
    def test_cxx_cblas():
>       configure_build_and_exe('cxx_cblas', 'python setup --cxx=g++ --cblas')

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:125:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'cxx_cblas', setup_command = 'python setup --cxx=g++ --cblas build-2022-03-22-20-38-03', launcher = None

    def configure_build_and_exe(name, setup_command, launcher=None):

        stamp = datetime.datetime.fromtimestamp(
            time.time()).strftime('%Y-%m-%d-%H-%M-%S')

        os.chdir(os.path.join(HERE, name, 'cmake'))
        shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py')

        if os.path.exists('autocmake'):
            shutil.rmtree('autocmake')
        shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake')

        stdout, stderr = exe('python update.py ..')
        os.chdir(os.path.join(HERE, name))

        make_command = 'make'
        binary = './bin/example'
        if sys.platform == 'win32':
            setup_command += ' --generator="MinGW Makefiles"'
            make_command = 'mingw32-make'
            binary = 'bin\\\example.exe'

        if launcher:
            binary = '%s %s' % (launcher, binary)

        setup_command += ' build-%s' % stamp

        stdout, stderr = exe(setup_command)
>       assert stderr == ''
E       assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
E         + python: can't open file 'setup': [Errno 2] No such file or directory

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:73: AssertionError
------------------------------------------------------------ Captured stderr call -------------------------------------------------------------
ERROR: you need to install the pyyaml package
python: can't open file 'setup': [Errno 2] No such file or directory
_____________________________________________________________ test_cxx_accelerate _____________________________________________________________

    @skip_on_linux
    def test_cxx_accelerate():
        configure_build_and_exe('cxx_accelerate',
>                               'python setup --cxx=g++ --accelerate')

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:131:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'cxx_accelerate', setup_command = 'python setup --cxx=g++ --accelerate build-2022-03-22-20-38-03', launcher = None

    def configure_build_and_exe(name, setup_command, launcher=None):

        stamp = datetime.datetime.fromtimestamp(
            time.time()).strftime('%Y-%m-%d-%H-%M-%S')

        os.chdir(os.path.join(HERE, name, 'cmake'))
        shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py')

        if os.path.exists('autocmake'):
            shutil.rmtree('autocmake')
        shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake')

        stdout, stderr = exe('python update.py ..')
        os.chdir(os.path.join(HERE, name))

        make_command = 'make'
        binary = './bin/example'
        if sys.platform == 'win32':
            setup_command += ' --generator="MinGW Makefiles"'
            make_command = 'mingw32-make'
            binary = 'bin\\\example.exe'

        if launcher:
            binary = '%s %s' % (launcher, binary)

        setup_command += ' build-%s' % stamp

        stdout, stderr = exe(setup_command)
>       assert stderr == ''
E       assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
E         + python: can't open file 'setup': [Errno 2] No such file or directory

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:73: AssertionError
------------------------------------------------------------ Captured stderr call -------------------------------------------------------------
ERROR: you need to install the pyyaml package
python: can't open file 'setup': [Errno 2] No such file or directory
___________________________________________________________ test_python_interpreter ___________________________________________________________

    def test_python_interpreter():
>       configure_build_and_exe('python_interpreter', 'python setup --cxx=g++')

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:135:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'python_interpreter', setup_command = 'python setup --cxx=g++ build-2022-03-22-20-38-03', launcher = None

    def configure_build_and_exe(name, setup_command, launcher=None):

        stamp = datetime.datetime.fromtimestamp(
            time.time()).strftime('%Y-%m-%d-%H-%M-%S')

        os.chdir(os.path.join(HERE, name, 'cmake'))
        shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py')

        if os.path.exists('autocmake'):
            shutil.rmtree('autocmake')
        shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake')

        stdout, stderr = exe('python update.py ..')
        os.chdir(os.path.join(HERE, name))

        make_command = 'make'
        binary = './bin/example'
        if sys.platform == 'win32':
            setup_command += ' --generator="MinGW Makefiles"'
            make_command = 'mingw32-make'
            binary = 'bin\\\example.exe'

        if launcher:
            binary = '%s %s' % (launcher, binary)

        setup_command += ' build-%s' % stamp

        stdout, stderr = exe(setup_command)
>       assert stderr == ''
E       assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
E         + python: can't open file 'setup': [Errno 2] No such file or directory

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:73: AssertionError
------------------------------------------------------------ Captured stderr call -------------------------------------------------------------
ERROR: you need to install the pyyaml package
python: can't open file 'setup': [Errno 2] No such file or directory
_______________________________________________________ test_python_interpreter_custom ________________________________________________________

    def test_python_interpreter_custom():
        setup = 'python setup --cxx=g++ --python=%s' % sys.executable
>       configure_build_and_exe('python_interpreter_custom', setup)

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:140:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'python_interpreter_custom', setup_command = 'python setup --cxx=g++ --python=/usr/bin/python3 build-2022-03-22-20-38-03'
launcher = None

    def configure_build_and_exe(name, setup_command, launcher=None):

        stamp = datetime.datetime.fromtimestamp(
            time.time()).strftime('%Y-%m-%d-%H-
6FFD
%M-%S')

        os.chdir(os.path.join(HERE, name, 'cmake'))
        shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py')

        if os.path.exists('autocmake'):
            shutil.rmtree('autocmake')
        shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake')

        stdout, stderr = exe('python update.py ..')
        os.chdir(os.path.join(HERE, name))

        make_command = 'make'
        binary = './bin/example'
        if sys.platform == 'win32':
            setup_command += ' --generator="MinGW Makefiles"'
            make_command = 'mingw32-make'
            binary = 'bin\\\example.exe'

        if launcher:
            binary = '%s %s' % (launcher, binary)

        setup_command += ' build-%s' % stamp

        stdout, stderr = exe(setup_command)
>       assert stderr == ''
E       assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
E         + python: can't open file 'setup': [Errno 2] No such file or directory

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:73: AssertionError
------------------------------------------------------------ Captured stderr call -------------------------------------------------------------
ERROR: you need to install the pyyaml package
python: can't open file 'setup': [Errno 2] No such file or directory
______________________________________________________________ test_python_libs _______________________________________________________________

    def test_python_libs():
>       configure_build_and_exe('python_libs', 'python setup --cxx=g++')

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'python_libs', setup_command = 'python setup --cxx=g++ build-2022-03-22-20-38-03', launcher = None

    def configure_build_and_exe(name, setup_command, launcher=None):

        stamp = datetime.datetime.fromtimestamp(
            time.time()).strftime('%Y-%m-%d-%H-%M-%S')

        os.chdir(os.path.join(HERE, name, 'cmake'))
        shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py')

        if os.path.exists('autocmake'):
            shutil.rmtree('autocmake')
        shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake')

        stdout, stderr = exe('python update.py ..')
        os.chdir(os.path.join(HERE, name))

        make_command = 'make'
        binary = './bin/example'
        if sys.platform == 'win32':
            setup_command += ' --generator="MinGW Makefiles"'
            make_command = 'mingw32-make'
            binary = 'bin\\\example.exe'

        if launcher:
            binary = '%s %s' % (launcher, binary)

        setup_command += ' build-%s' % stamp

        stdout, stderr = exe(setup_command)
>       assert stderr == ''
E       assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
E         + python: can't open file 'setup': [Errno 2] No such file or directory

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:73: AssertionError
------------------------------------------------------------ Captured stderr call -------------------------------------------------------------
ERROR: you need to install the pyyaml package
python: can't open file 'setup': [Errno 2] No such file or directory
___________________________________________________________ test_python_libs_custom ___________________________________________________________

    def test_python_libs_custom():
        python_executable = sys.executable
        configure_build_and_exe(
            'python_libs_custom',
>           'python setup --cxx=g++ --python={0}'.format(python_executable))

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:151:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'python_libs_custom', setup_command = 'python setup --cxx=g++ --python=/usr/bin/python3 build-2022-03-22-20-38-03', launcher = None

    def configure_build_and_exe(name, setup_command, launcher=None):

        stamp = datetime.datetime.fromtimestamp(
            time.time()).strftime('%Y-%m-%d-%H-%M-%S')

        os.chdir(os.path.join(HERE, name, 'cmake'))
        shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py')

        if os.path.exists('autocmake'):
            shutil.rmtree('autocmake')
        shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake')

        stdout, stderr = exe('python update.py ..')
        os.chdir(os.path.join(HERE, name))

        make_command = 'make'
        binary = './bin/example'
        if sys.platform == 'win32':
            setup_command += ' --generator="MinGW Makefiles"'
            make_command = 'mingw32-make'
            binary = 'bin\\\example.exe'

        if launcher:
            binary = '%s %s' % (launcher, binary)

        setup_command += ' build-%s' % stamp

        stdout, stderr = exe(setup_command)
>       assert stderr == ''
E       assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
E         + python: can't open file 'setup': [Errno 2] No such file or directory

/home/milias/work/software/theoretical_chemistry/autocmake/test/test.py:73: AssertionError
------------------------------------------------------------ Captured stderr call -------------------------------------------------------------
ERROR: you need to install the pyyaml package
python: can't open file 'setup': [Errno 2] No such file or directory
=========================================================== short test summary info ===========================================================
FAILED test/test.py::test_extra_cmake_options - assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
FAILED test/test.py::test_cxx - assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
FAILED test/test.py::test_fc - assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
FAILED test/test.py::test_fc_git_info - assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
FAILED test/test.py::test_fc_int64 - assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
FAILED test/test.py::test_fc_omp - assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
FAILED test/test.py::test_fc_blas - assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
FAILED test/test.py::test_fc_lapack - assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
FAILED test/test.py::test_cxx_cblas - assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
FAILED test/test.py::test_cxx_accelerate - assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
FAILED test/test.py::test_python_interpreter - assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
FAILED test/test.py::test_python_interpreter_custom - assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
FAILED test/test.py::test_python_libs - assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
FAILED test/test.py::test_python_libs_custom - assert "python: can't open file 'setup': [Errno 2] No such file or directory\n" == ''
============================================================= 14 failed in 0.69s ==============================================================
milias@labs.fpv.umb.sk:~/work/software/theoretical_chemistry/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0