aboutsummaryrefslogtreecommitdiff
path: root/test cases
AgeCommit message (Collapse)AuthorFilesLines
2020-01-27Merge pull request #6423 from dcbaker/declare-dependency-variablesJussi Pakkanen1-2/+11
Add ability to set and query arbitrary variables on declare_dependency objects
2020-01-25tests: Prevent multiple-definition of symbolsErnestas Kulik6-6/+14
With GCC 10, -fno-common becomes default behavior, meaning that any subtly-broken code will be broken not so subtly anymore. This commit changes the linkage to variables declared in headers to external and, where needed, adds additional definitions in other compilation units.
2020-01-24Fix CUDA test without devices.Jan Alexander Steffens (heftig)1-10/+11
Getting the runtime version fails when no devices are present.
2020-01-24ci: Fix boost test on xenialDaniel Mensinger1-1/+1
2020-01-24tests: Disable fortran submodule test on old GCC versionsNirbheek Chauhan1-0/+5
Need gcc 6.0 or newer: https://gcc.gnu.org/wiki/Fortran2008Status
2020-01-24tests: Fix some test failures on Ubuntun 16.04 CINirbheek Chauhan6-13/+17
* xenial doesn't ship many dependencies, so make them all optional since we don't guarantee that everything will work * cmake/{5,6}: needs stdlib.h for EXIT_SUCCESS on GCC 5 * common/222: needs C++11, and GCC 5 doesn't understand `auto` correctly unless we explicitly enable it. * frameworks/1 boost: xenial doesn't ship boost_python3, so make it properly optional * frameworks/6 gettext: gettext can be installed without xgettext, which doesn't cause the project to fail, but the installed files list is different which causes the test to fail. * frameworks/7 gnome: gobject-introspection can't be enabled because the sanitizer unit test detects leaks in glib and fails
2020-01-23cmake: Always Add C, CXX if no language is specified (fixes #6441)Daniel Mensinger2-1/+38
2020-01-22tests: Add a test case for finding ldDylan Baker1-0/+4
2020-01-22tests/windows/16: Use pefile module instead of objdump/dumpbinNirbheek Chauhan2-25/+13
The pefile module is a CI dependency now, so we can use that instead of objdump/dumpbin which greatly simplifies the test. Of course, this module is also cross-platform so it will work if we add cross-win32 CI at some point.
2020-01-21Merge pull request #6481 from jon-turney/osx-qt-dep-crashDylan Baker3-7/+15
Fix dependency('qt') crash with old Qt on OSX
2020-01-21Use python3 in some tests which were still using pythonSebastien Bacher12-12/+12
The unversioned command is deprecated and removed from some distributions
2020-01-18Fix 'qt4test' test executable when only Qt4 is presentJon Turney2-1/+2
This always tries to load a 'qt5core_fr' translation file, when it is actually named 'qtNcore_fr'(where N is the qt version).
2020-01-18Make the 'framework/4 qt' test more flexibleJon Turney2-6/+13
Make the 'framework/4 qt' test more flexible about what version of Qt is expected to be present in the CI environment. Currently, this is hard-coded as Qt5. We add an option to specify it so we can run this test under CI with just Qt4 present.
2020-01-17wrap: Fix support of file:// URLsXavier Claessens3-0/+4
Fixes: #6445
2020-01-14dependency: add cursesMichael Hirsch, Ph.D2-0/+16
fixes #6096. Didn't use CMake because Curses is a real corner-case for CMake that would require Curses-specific enhancements to Meson's CMake interface.
2020-01-09dependencies: Add ability to set arbitrary variables onDylan Baker1-2/+11
declare_dependencies This allows dependencies declared in subprojects to set variables, and for those variables to be accessed via the get_variable method, just like those from pkg-config and cmake. This makes it easier to use projects from subprojects in a polymorphic manner, lowering the distinction between a subproject and an external dependency every further.
2020-01-08Rename test dirs to sequential order.Jussi Pakkanen36-0/+0
2020-01-07One more symlink test skip.Jussi Pakkanen1-1/+1
2019-12-29Only run symlink test from git checkout.Jussi Pakkanen1-1/+11
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.