rename
This commit is contained in:
parent
60ecbdfec1
commit
49f69b854c
@ -3,7 +3,8 @@
|
||||
# Determine program version from file "VERSION" (example: "14.1")
|
||||
# The reason why this information is stored
|
||||
# in a file and not as CMake variable is that CMake-unaware programs can parse
|
||||
# and use it (e.g. Sphinx).
|
||||
# and use it (e.g. Sphinx). Also web-based hosting frontends such as GitLab
|
||||
# automatically use a file "VERSION".
|
||||
#
|
||||
# Defines::
|
||||
#
|
||||
|
@ -6,6 +6,9 @@ source: https://github.com/scisoft/autocmake/raw/master/modules/fc.cmake
|
||||
docopt: --fc=<FC> Fortran compiler [default: gfortran].
|
||||
export: 'FC=%s' % arguments['--fc']
|
||||
|
||||
[compilers]
|
||||
source: https://github.com/scisoft/autocmake/raw/master/compilers/GNU.Fortran.cmake
|
||||
|
||||
[default_build_paths]
|
||||
source: https://github.com/scisoft/autocmake/raw/master/modules/default_build_paths.cmake
|
||||
|
@ -27,14 +27,14 @@ def test_cxx():
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
def test_fortran():
|
||||
os.chdir(os.path.join(HERE, 'fortran', 'cmake'))
|
||||
def test_fc():
|
||||
os.chdir(os.path.join(HERE, 'fc', 'cmake'))
|
||||
stdout, stderr = exe('wget https://github.com/scisoft/autocmake/raw/master/update.py')
|
||||
stdout, stderr = exe('python update.py --self')
|
||||
stdout, stderr = exe('python update.py ..')
|
||||
os.chdir(os.path.join(HERE, 'fortran'))
|
||||
os.chdir(os.path.join(HERE, 'fc'))
|
||||
stdout, stderr = exe('python setup.py --fc=gfortran')
|
||||
os.chdir(os.path.join(HERE, 'fortran', 'build'))
|
||||
os.chdir(os.path.join(HERE, 'fc', 'build'))
|
||||
stdout, stderr = exe('make')
|
||||
stdout, stderr = exe('./bin/example')
|
||||
assert 'Hello World!' in stdout
|
||||
|
Loading…
x
Reference in New Issue
Block a user