Eli Schwartz
30dc26a0fb
tests: unskip windows mixing msvc and fortran, for non-gcc fortran
...
These checked that e.g. the cpp and fc ids are identical, which isn't
strictly what we want. Particularly, msvc doesn't even have a fortran
compiler, and what we really care about is whether we mix both gcc and
something else.
2022-07-11 17:58:02 -04:00
Volker Weißmann
2c079d855e
Added warning if run_command is called without the check kwarg
2021-10-30 22:26:28 -04:00
Dylan Baker
64c267c49c
compilers: Add default search path stdlib_only_link_flags
...
This should be done in all cases of language_stdlib_only_link_flags, but
I don't have access to all of the compilers to test it.
This is required in cases where object files created by gfortran are
linked using another compiler with a differen default search path, such
as gfortran and clang together.
2021-09-25 00:18:22 +03:00
Rohit Goswami
4e41a6203f
tests: Fix fortran tests
2021-09-20 01:29:59 -04:00
Dylan Baker
40ff02268c
backend/ninja: add generated sources to depscan order deps
...
Since we changed to using a json file to avoid over long command lines
we created a situation where the generated files may not be ready when
the depscan happens. To avoid that, we need to add all of the generated
sources as order deps.
Fixes : #9258
2021-09-20 01:25:21 -04:00
Dylan Baker
276ff0cc89
tests/fortran/7 generated: don't try to find a configure_file by path
...
Use the value returned by configure file instead. The issue that caused
this to be required is no longer present.
2021-09-20 01:25:21 -04:00
Mat Cross
20d1bfbcb6
Made submodule child code valid Fortran.
2021-09-10 16:08:57 -04:00
Eli Schwartz
59d4f771d2
editorconfig: add setting to trim trailing whitespace
...
and clean up all outstanding issues
Skip 'test cases/common/141 special characters/meson.build' since it
intentionally uses trailing newlines.
2021-08-15 09:36:18 -04:00
Daniel Mensinger
c4b8e03895
tests: both_library test improvements
...
This switches some `shared_library()` calls to `library()` and adds
one new CI matrix entries for -Ddefault_library={static, both}.
2021-06-22 21:09:25 +02:00
Michael Hirsch
1730778974
test:fortran:21: fix Windows by using configure_file(copy:)
2021-05-13 15:24:06 +03:00
Jussi Pakkanen
85796229c2
Fix Fortran dep scanner for upper case file extensions. Closes #8395 .
2021-03-06 01:53:52 +02:00
Jussi Pakkanen
72865a2773
Fix combining C and Fortran. Closes #8377 .
2021-02-19 18:18:39 +02:00
Jonas Lundholm Bertelsen
d3ae808742
Add fortran test with an install:yes static library
...
This adds a test which makes use of an install:yes static library that
depends on another static library. This triggers a promotion to
link_whole_target inside meson which takes different code paths in
certain places.
Also makes use of .F90 source (capital F) to test for case
(in)sensitivity.
2021-01-21 14:46:20 +01:00
Michael Hirsch
d01fc3da8f
tests: add fortran cmake subproject include test
...
ci:unused_arg: update ninja version to work with fortran+cmake
2020-09-03 00:20:07 -04:00
Michael Hirsch
4ba06fb4dd
test:fortran7: default static so Intel/VS-based compilers pass
...
we did the same thing earlier with other Fortran tests for the same
reason.
2020-06-15 10:06:34 -07:00
Nirbheek Chauhan
eab0e5a8b3
windows: Canonicalize `:` in filenames
...
Fixes https://github.com/mesonbuild/meson/issues/7265
2020-06-14 14:55:49 +00:00
Michael Hirsch
e2379148a6
fortran generated test: add code to reveal issue
...
used with Issue #7265
2020-06-14 14:55:49 +00:00
Michael Hirsch, Ph.D
5b4ebb5641
quality / test: Fortran type hinting
...
enhance fortran args tests
2020-04-05 13:43:53 +03:00
Nirbheek Chauhan
ca1776d6db
tests: Disable fortran submodule test on old GCC versions
...
Need gcc 6.0 or newer: https://gcc.gnu.org/wiki/Fortran2008Status
2020-01-24 02:53:34 +05:30
Michael Hirsch, Ph.D
ccbb20e881
ci: improve robustness
...
* netcf
* hdf5
* scalapack
* coarray
2019-12-19 11:59:47 -05:00
Michael Hirsch, Ph.D
9371965132
ci fortran: add case where buildtype=release and warning_level=3
...
this can find issues with non-default build options
2019-12-13 00:45:49 +02:00
Michael Hirsch, Ph.D
07a2fe2f00
complete gfortran/intel/intel-cl fortran_std test
2019-11-25 13:08:56 +02:00
Jussi Pakkanen
b5f9895bfb
Merge pull request #6194 from scivision/coarrays
...
dep: Fortran Coarrays-enhance finding by use Pkg-config & CMake
2019-11-18 23:40:12 +02:00
Michael Hirsch, Ph.D
83b4e981c4
Use strict function prototypes
2019-11-18 22:21:36 +02:00
Michael Hirsch, Ph.D
a911a237ad
ci: add timeout to coarray test
2019-11-17 10:56:09 -05:00
Michael Hirsch, Ph.D
1baa1c9222
use '-Werror=unused-parameter' for gcc/clang on project tests and -fimplicit-none on fortran
...
Fortran: check for undeclared variables by forcing implicit none everywhere
C/C++: check for unused parameters and return types
removed unused variables from test cases
ci: do missing return and unused arg check with Github Actions
2019-11-17 13:24:42 +02:00
Michael Hirsch, Ph.D
248a75ff48
tests: add fortran-specific compiler checks
2019-10-23 18:44:19 +03:00
Michael Hirsch, Ph.D
e3b21de563
Intel-Cl tests: increase robustness of Windows Intel compilers detection ( #5828 )
...
* intel-cl tests: more rigorous detection of intent to use Intel Windows compilers
* fortran coarray test: make skipping more robust in that underlying MPI stack is .run()
This is useful for any Fortran coarray work, and especially for intel-cl where multiple Intel compiler
versions are often installed, and the wrong underlying MPI library may be dynamically linked,
and so a runtime check is needed to exercise the MPI stack underlying Fortran coarray.
This is done by
fc.run('sync all; end', dependencies: coarray)
* pep8
2019-08-24 02:33:54 +03:00
Michael Hirsch, Ph.D
902d0e579e
default fortran lib to static so windows can be tested
2019-07-30 15:33:10 -04:00
Michael Hirsch, Ph.D
051e5e0e35
skip fortran dyamiclib tests on Windows
2019-07-30 15:33:10 -04:00
Michael Hirsch, Ph.D
0706434afe
PGI doesn't have coarray fortran
2019-07-30 15:33:09 -04:00
Jussi Pakkanen
3e54719ab8
Merge pull request #5740 from scivision/intel-ci_fix
...
tests: Intel-cl fixes for Fortran
2019-07-30 18:21:30 +03:00
Michael Hirsch, Ph.D
b5e9ab8ed0
fortran tests: non-gfortran compilers on Windows are best static libs
...
collapsed get_relative_files_list_from_dir to a one-liner via pathlib.Path
2019-07-30 03:17:14 -04:00
Michael Hirsch, Ph.D
26f8058ef2
Flang and PGI don't yet support coarray
2019-07-29 01:00:04 -04:00
Michael Hirsch, Ph.D
31e069e93f
fortran-specific openMP tests
2019-06-25 09:17:48 -07:00
Michael Hirsch, Ph.D
2c9725a4bb
only test if Zlib found
2019-06-24 14:06:32 -04:00
Michael Hirsch, Ph.D
1d6ed8cac8
windows ifort can't do shared_library sanely
2019-06-24 14:06:32 -04:00
Michael Hirsch, Ph.D
9a3bc75410
intel windows coarray args
2019-06-24 14:06:32 -04:00
Michael Hirsch, Ph.D
3f531be2e7
fortran 2003 use, non_instrinsic
...
incl
inver
2019-06-23 21:11:16 +03:00
Michael Hirsch, Ph.D
9dbd5f129b
fortran submodule checks
...
fortran submodule checks
2019-06-23 21:11:16 +03:00
Michael Hirsch, Ph.D
c8d144b064
fortran include syntax checks
...
minvers
2019-06-23 21:11:16 +03:00
Michael Hirsch, Ph.D
ef53107f14
BUGFIX: Fortran module regex handle more edge cases
2019-06-23 17:27:46 +03:00
Michael Hirsch, Ph.D
930d2457e1
add fortarn use inline comment test
2019-06-20 12:45:41 -04:00
Michael Hirsch, Ph.D
c214859304
add inline comment test for Fortran submodule
2019-06-20 12:41:40 -04:00
Michael Hirsch, Ph.D
f652950602
add inline comment test for Fortran include
2019-06-20 12:40:49 -04:00
Michael Hirsch, Ph.D
2a7ef98aff
BUGFIX syntax
2019-06-20 12:31:32 -04:00
Michael Hirsch, Ph.D
d3294b58c4
make test more stringent by building separate library
2019-06-19 21:52:24 -04:00
Michael Hirsch, Ph.D
f7465c0887
add fortran module inline comment test
2019-06-19 21:42:29 -04:00
Dylan Baker
7f1cecf25b
compilers/fortran: Fix all has_argument methods in meson
...
Apparently we have no tests for this because this is broken pretty
badly. This extends the basic test to actually check for the correct
free-form argument and thus test this.
2019-05-16 22:01:35 +03:00
Dylan Baker
ecc1f17f8e
tests/fortran/14: Add vsdef files
...
ICL and ifort need these to pass this tests.
2019-05-10 13:36:35 -07:00