aboutsummaryrefslogtreecommitdiff
path: root/test cases
AgeCommit message (Collapse)AuthorFilesLines
2019-12-29cmake: Use trace for missing link flags (fixes #6386)Daniel Mensinger10-5/+78
This is neccessary for static libraries, since the CMake file API does not add link flags here.
2019-12-23refactor: cuda no unused argsMichael Hirsch, Ph.D16-25/+25
2019-12-22cmake: Fix obeject librariesDaniel Mensinger14-15/+169
This fixes an issue with generated sources and object libraries, as well as an issue on windows with the `link` linker and the vs backend. The last issue is resolved by building the source files multiple times to avoid extracting object files in meson.
2019-12-21Merge pull request #6355 from scivision/depmethodJussi Pakkanen4-23/+23
dependencies: refactor {coarray,mpi,hdf5,netcdf} to use dependency(.., methods: ...)
2019-12-19summary: Change 'section' to be a kwarg instead of positionalXavier Claessens1-8/+8
Fixes: #6372.
2019-12-19add compiler.get_linker_id() methodMichael Hirsch, Ph.D1-5/+13
this can be useful for if/elif where linker behaviors must be considered. For example, clang with "link" vs gcc with "ld.bfd" etc. ci for compiler.get_linker_id() method doc add @FeatureNew check Co-Authored-By: Daniel Mensinger <daniel@mensinger-ka.de>
2019-12-19ci: improve robustnessMichael Hirsch, Ph.D4-23/+23
* netcf * hdf5 * scalapack * coarray
2019-12-19CI: Skip NetCDF Fortran test on OSXDaniel Mensinger1-1/+1
2019-12-19CI: Skip git tests if g-ir-scanner does not existDaniel Mensinger2-2/+2
2019-12-19CI: Fix C++11 related error on osx for protocol bufferDaniel Mensinger1-1/+1
2019-12-19fs: rename samefile => is_samepathMichael Hirsch, Ph.D1-3/+5
is_samepath better reflects the nature of this function--that files and directories can be compared. Also, instead of raising exceptions, simply return False when one or both .is_samepath(path1, path1) don't exist. This is more intuitive behavior and avoids having an extra if fs.exist() to go with every fs.is_samepath()
2019-12-18python: add embed to the python dependency functionDaniel Mensinger1-2/+2
2019-12-18Merge pull request #4649 from dcbaker/summary-functionJussi Pakkanen3-0/+22
Add a summary() function for configuration summarization
2019-12-17ci cmake: Windows link.exe skip due to symbol issuesMichael Hirsch, Ph.D10-12/+16
2019-12-17Fix macOS library test when using system zlib.Jussi Pakkanen1-1/+2
2019-12-12summary: Add bool_yn keyword argumentXavier Claessens1-0/+2
2019-12-12summary: Allow section with no title, and passing key/value separatelyXavier Claessens2-6/+3
2019-12-12Add a summary() function for configuration summarizationXavier Claessens3-0/+23
Based on patch from Dylan Baker. Fixes #757
2019-12-13ci fortran: add case where buildtype=release and warning_level=3Michael Hirsch, Ph.D2-0/+6
this can find issues with non-default build options
2019-12-10mintro: Add version key to --scan-dependencies (fixes #6287)Daniel Mensinger1-2/+3
2019-12-09cmake test: skip case where Cmake backend not Fortran-compatibleMichael Hirsch, Ph.D1-1/+4
2019-12-09cmake: add project language to cmakelists.txtMichael Hirsch, Ph.D4-1/+14
cmake: get language from Meson project if not specified as depedency(..., langugage: ...) deps: add threads method:cmake dependency('threads', method: 'cmake') is useful for cmake unit tests or those who just want to find threads using cmake. cmake: project(... Fortran) generally also requires C language
2019-12-07Merge pull request #6228 from scivision/scalapackJussi Pakkanen4-0/+306
deps: add Scalapack
2019-12-05find_program(): Add 'dirs' keyword argumentXavier Claessens2-0/+9
Fixes: #1576
2019-12-04dict: Fully evaluate keysXavier Claessens2-21/+36
The only restriction is keys must be string after evaluation. This fix various inconsistencies.
2019-12-04ci/test: unused args for objc, objc++Michael Hirsch, Ph.D5-5/+5
2019-12-04ci/test: unused args for WindowsMichael Hirsch, Ph.D32-26/+64
2019-12-03mparser.py: actually check the type of key variable, not its valueMarc Herbert1-5/+14
Fixes PR #6166 and more specifically commit 4e460f04f3b2 that tried to make sure the type of a key variable is a string but checked the type of the value instead. Extends test common/228's limited coverage, its only test case had (surprise) a string value. Also avoid reserved python keyword 'dict' and potentially confusing string 'key'. Implements #5231 for real.
2019-11-30scalapack: test that find methods workMichael Hirsch, Ph.D2-5/+0
2019-11-30scalapack: allow specifying find methodMichael Hirsch, Ph.D2-0/+225
2019-11-30scalapack: run without mpiexecMichael Hirsch, Ph.D2-19/+4
Normally MPI programs would be run with MPI exec, but Travis-CI has errors wanting --allow-run-as-root. To simplify, we don't use mpiexec in this test, since it's a library check, not an MPI stack check.
2019-11-30deps: add scalapackMichael Hirsch, Ph.D3-0/+101
Scalapack uses a library stack that can be challenging to manage. Not least of all since many Scalapacks ship with broken / incomplete pkg-config files and CMake FindScalapack.cmake This resolves those issues for typical Scalapack setups including: * Linux: Intel MKL or OpenMPI + Netlib * MacOS: Intel MKL or OpenMPI + Netlib * Windows: Intel MKL (OpenMPI not available on Windows)
2019-11-30cmake: Make output_target_map more robust (fixes #6208)Daniel Mensinger5-2/+65
This PR refactors the old output_target_map, which was a raw dict, into it's own class. This makes the access to the map more uniform and robust (at the cost of more lines of code). Additionally relative paths to the build directory are now also tracked for outputs. This is neccessary to corretcly distingluish files with the same name, that are in different directories.
2019-11-29tests: add osx test case for PIE builds.Mihai Moldovan2-0/+8
2019-11-28Revert "Have set() and set_quoted() of configuration object work with newlines."Xavier Claessens2-12/+0
This reverts commit 6ed36e97aeb01dd779115a9710d3a97cdbcb4ccf.
2019-11-28Merge pull request #5989 from xclaesse/cmake-part2Jussi Pakkanen4-0/+51
cmake: Add support for add_custom_target() and add_dependencies()
2019-11-28HDF5: make much more robust across platformsMichael Hirsch, Ph.D1-24/+11
This addresses various real-world problems with HDF5 pkg-config, including * hdf*.pc with package versions as part of the filename * malformed hdf*.pc missing the commonly-used HDF5 HL module --- Additionally, this refactors more complicated dependencies such as HDF5 and OpenMPI. This may help us deduplicate internal dependency code in the future. HDF5 selftest: improve platform-agnostic test ci: init demo github action for HDF5 framework ci Actions: hold off on MSYS2 for now [skip ci] hdf5: ensure C libraries always included ci: mac hdf5--use clang+gfortran
2019-11-28cmake: Some minor fixupDaniel Mensinger3-1/+20
2019-11-27cmake: Add unit test for add_custom_target() and add_dependency()Xavier Claessens3-0/+32
Also test commands with args separated by ';'
2019-11-27tests: add clues to find missing private/qtobject_p.h [skip ci]Marc1-0/+4
Finding all the dependencies missing from my Fedora system to run the whole test suite was relatively quick - except for this one.
2019-11-26Fix crash when checking multi version on subproject depXavier Claessens1-0/+6
Also harminize a bit the logged message.
2019-11-25Fix link_whole with a custom targetXavier Claessens3-0/+17
t.pic won't be defined. We can only hope it has been built with -fPIC. Linker will complain otherwise any way. t.extract_all_objects_recurse() won't be defined. We could support this case by extracting the archive somewhere and pick object files.
2019-11-25fs: Add parent() and name() methodsXavier Claessens1-0/+3
2019-11-25Merge pull request #6213 from mensinda/cmNameFixJussi Pakkanen4-10/+12
cmake: Uniform target name handling and custom target fixes
2019-11-25complete gfortran/intel/intel-cl fortran_std testMichael Hirsch, Ph.D6-0/+149
2019-11-21Fix compute_int() when the value is -1Xavier Claessens1-0/+3
2019-11-20cmake: Uniform target name handlingDaniel Mensinger4-10/+12
2019-11-20Merge pull request #6199 from mensinda/cmSysIncJussi Pakkanen1-1/+5
cmake: Handle CMake system include dirs (closes #6079)
2019-11-19Have set() and set_quoted() of configuration object work with newlines.Jehan2-0/+12
* Have set() and set_quoted() of configuration object work with newlines. set_quoted() makes the value into a double-quoted string, so let's assume C-style string, in particular with newlines as "\n". Also take care of remaining newlines in dump_conf_header(). C or nasm macros expect single-line values so if the value was multi-line, we would end up with broken syntax. Appending a backslash at each end of line make them concat into a single line in both C and nasm format (note: multi-line macros in nasm are actually possible apparently but use another format not outputted by current meson code). Also note that the replacement is done at the end only when dumping the conf as a header because we cannot assume anything about the format when replacing variables from an input file (in this case, it should be the dev responsibility). * Add unit tests for multiline set() and set_quoted().
2019-11-19cmake: Skip system include dir test for msvcDaniel Mensinger1-0/+4