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.
3 years ago
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}.
4 years ago
Michael Hirsch
1730778974
test:fortran:21: fix Windows by using configure_file(copy:)
4 years ago
Jussi Pakkanen
85796229c2
Fix Fortran dep scanner for upper case file extensions. Closes #8395 .
4 years ago
Jussi Pakkanen
72865a2773
Fix combining C and Fortran. Closes #8377 .
4 years ago
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.
4 years ago
Michael Hirsch
d01fc3da8f
tests: add fortran cmake subproject include test
...
ci:unused_arg: update ninja version to work with fortran+cmake
4 years ago
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.
5 years ago
Nirbheek Chauhan
eab0e5a8b3
windows: Canonicalize `:` in filenames
...
Fixes https://github.com/mesonbuild/meson/issues/7265
5 years ago
Michael Hirsch
e2379148a6
fortran generated test: add code to reveal issue
...
used with Issue #7265
5 years ago
Dylan Baker
29ef4478df
compilers/d: Add b_ndebug support
...
D lang compilers have an option -release (or similar) which turns off
asserts, contracts, and other runtime type checking. This patch wires
that up to the b_ndebug flag.
Fixes #7082
5 years ago
Michael Hirsch, Ph.D
5b4ebb5641
quality / test: Fortran type hinting
...
enhance fortran args tests
5 years ago
Nirbheek Chauhan
ca1776d6db
tests: Disable fortran submodule test on old GCC versions
...
Need gcc 6.0 or newer: https://gcc.gnu.org/wiki/Fortran2008Status
5 years ago
Michael Hirsch, Ph.D
ccbb20e881
ci: improve robustness
...
* netcf
* hdf5
* scalapack
* coarray
5 years ago
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
5 years ago
Michael Hirsch, Ph.D
07a2fe2f00
complete gfortran/intel/intel-cl fortran_std test
5 years ago
Michael Hirsch, Ph.D
83b4e981c4
Use strict function prototypes
5 years ago
Michael Hirsch, Ph.D
a911a237ad
ci: add timeout to coarray test
5 years ago
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
5 years ago
Michael Hirsch, Ph.D
248a75ff48
tests: add fortran-specific compiler checks
5 years ago
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
5 years ago
Michael Hirsch, Ph.D
902d0e579e
default fortran lib to static so windows can be tested
5 years ago
Michael Hirsch, Ph.D
051e5e0e35
skip fortran dyamiclib tests on Windows
5 years ago
Michael Hirsch, Ph.D
0706434afe
PGI doesn't have coarray fortran
5 years ago
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
5 years ago
Michael Hirsch, Ph.D
26f8058ef2
Flang and PGI don't yet support coarray
5 years ago
Michael Hirsch, Ph.D
31e069e93f
fortran-specific openMP tests
6 years ago
Michael Hirsch, Ph.D
2c9725a4bb
only test if Zlib found
6 years ago
Michael Hirsch, Ph.D
1d6ed8cac8
windows ifort can't do shared_library sanely
6 years ago
Michael Hirsch, Ph.D
9a3bc75410
intel windows coarray args
6 years ago
Michael Hirsch, Ph.D
3f531be2e7
fortran 2003 use, non_instrinsic
...
incl
inver
6 years ago
Michael Hirsch, Ph.D
9dbd5f129b
fortran submodule checks
...
fortran submodule checks
6 years ago
Michael Hirsch, Ph.D
c8d144b064
fortran include syntax checks
...
minvers
6 years ago
Michael Hirsch, Ph.D
ef53107f14
BUGFIX: Fortran module regex handle more edge cases
6 years ago
Michael Hirsch, Ph.D
930d2457e1
add fortarn use inline comment test
6 years ago
Michael Hirsch, Ph.D
c214859304
add inline comment test for Fortran submodule
6 years ago
Michael Hirsch, Ph.D
f652950602
add inline comment test for Fortran include
6 years ago
Michael Hirsch, Ph.D
2a7ef98aff
BUGFIX syntax
6 years ago
Michael Hirsch, Ph.D
d3294b58c4
make test more stringent by building separate library
6 years ago
Michael Hirsch, Ph.D
f7465c0887
add fortran module inline comment test
6 years ago
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.
6 years ago
Dylan Baker
ecc1f17f8e
tests/fortran/14: Add vsdef files
...
ICL and ifort need these to pass this tests.
6 years ago
Dylan Baker
23d2311d12
tests/fortran/9 cpp: It's okay to link ICL and ifort
...
This test currently assumes that the fortran compiler is gfotran, and
if we're not using g++ it skips. This patch changes it to skip if the
fotran compiler and the c++ compiler aren't the same family. This still
may skip in some cases it shouldn't (clang and gfort probably work fine
on windows), but it does enable ifort + ICL. Which is hte point.
6 years ago
Dylan Baker
0dc88487dd
tests/fortran/1: call compiler.get_id() == str instead of compiler == str
6 years ago
Michael Hirsch, Ph.D
06bfc2dab6
per-target manual specification of link_language
6 years ago
Michael Hirsch, Ph.D
6e06ad1c1f
add test case for same-name module+submodule
6 years ago
Michael Hirsch, Ph.D
972857fc1d
add fortran include test case
6 years ago
Michael Hirsch, Ph.D
39e6dc5885
correct Fortran self-dep logic
...
corrected, generalized self-referential Fortran fix
further refine logic
6 years ago
Michael Hirsch, Ph.D
32a344b949
Fortran: handle self-referential files
6 years ago
Michael Hirsch, Ph.D
ebfb09f5d6
Fortran 2008/2018 Coarray support
6 years ago