aboutsummaryrefslogtreecommitdiff
path: root/test cases/linuxlike
AgeCommit message (Collapse)AuthorFilesLines
2022-02-17tests: do not use a GNU bash script to check the minimum version of programsEli Schwartz2-10/+1
find_program() can check that for us already, there's no need to require GNU bash on systems that default to other POSIX shells. Even though this is the *linuxlike* tests and a POSIX shell is guaranteed, there is actually no need to require a shell at all. It's *easier* to use the meson builtin functionality here.
2021-12-01cmake: Fix old style dependency lookup with imported targetsDaniel Mensinger2-0/+14
This also includes some refactoring, since the alternaticve would have been to duplicate the huge traceparser target code block again. fixes #9581
2021-10-30Added warning if run_command is called without the check kwargVolker Weißmann2-2/+2
2021-10-10Fix typos discovered by codespellChristian Clauss1-1/+1
2021-10-06cmake: Implement support for interpreting link "keywords"Daniel Mensinger2-1/+5
CMakes `target_link_libraries()` supports certain keywords to only enable specific libraries for specific CMake configurations. We now try our best to replicate this for Meson dependencies. Fixes #9197
2021-10-06cmake: Warn if we could use IMPORTED CMake targetsDaniel Mensinger2-1/+11
2021-06-22tests: both_library test improvementsDaniel Mensinger3-3/+3
This switches some `shared_library()` calls to `library()` and adds one new CI matrix entries for -Ddefault_library={static, both}.
2021-01-10cmake: add PATH logic to preliminary dep check (fixes #8133)Daniel Mensinger4-1/+12
2020-11-24compiler: allow non-built internal dependencies as argumentsPaolo Bonzini1-0/+6
Allow methods on the compiler object to receive internal dependencies, as long as they only specify compiler/linker arguments or other dependencies that satisfy the same requirements. This is useful if you're using internal dependencies to add special "-D" flags such as -DNCURSES_WIDECHAR, -D_XOPEN_SOURCE_EXTENDED or -DGLIB_STATIC_COMPILATION.
2020-11-21Handle cmake dependencies which require a specified versionJason Ekstrand3-0/+27
Some CMake packages fail to find at all if no version is specified. This commit adds a cmake_version parameter to dependency() to allow you to specify the requested version.
2020-11-21cmVers: use env instead of hardcoding bash locationDylan Baker1-1/+1
2020-08-07cmake: make the traceparser permissive by default (fixes #7501)Daniel Mensinger1-0/+3
2020-07-01Implicit dependency fallback when a subproject wrap or dir existsXavier Claessens1-2/+2
2020-06-22test: Fix linuxlike/3 linker script on Solaris 11.4Alan Coopersmith1-0/+6
Solaris linker added support for GNU-style --version-script in Solaris 11.4, but requires adding the -z gnu-version-script-compat flag to enable it. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-06-13cmake: Fix handling of path seperators (fixes #7294)Daniel Mensinger4-1/+21
2020-04-28tests: Avoid a CMake error by checking the CMake versionDaniel Mensinger2-7/+18
2020-03-19cmake: Add find_package COMPONETS supportDaniel Mensinger2-3/+7
2020-03-06dependency: Verify fallback variable consistencyXavier Claessens2-3/+6
This change made `5 dependency versions` unit test fail because now once a subproject has been configured, the fallback variable is checked to be consistent. So it has to use new subproject because 'somesub' was already configured by previous tests.
2020-03-06Add meson.override_dependency()Xavier Claessens1-6/+13
Similar to meson.override_find_program() but overrides the result of the dependency() function. Also ensure that dependency() always returns the same result when looking for the same dependency, this fixes cases where parts of the project could be using a system library and other parts use the library provided by a subproject.
2020-02-29Merge pull request #6666 from mensinda/testRefactorJussi Pakkanen6-16/+26
Refactor run_projectests.py
2020-02-27Fix 'linuxlike/14 static dynamic linkage' test on CygwinJon Turney1-1/+1
Update the expected output from nm to match changes in binutils 2.34.
2020-02-25test: merge installed_files.txt into test.jsonDaniel Mensinger4-13/+21
2020-02-25test: merge test_matrix.json and setup_env.json into test.jsonDaniel Mensinger2-3/+5
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-21Use python3 in some tests which were still using pythonSebastien Bacher1-1/+1
The unversioned command is deprecated and removed from some distributions
2019-12-09cmake: add project language to cmakelists.txtMichael Hirsch, Ph.D1-1/+3
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-11-26Fix crash when checking multi version on subproject depXavier Claessens1-0/+6
Also harminize a bit the logged message.
2019-11-18Use strict function prototypesMichael Hirsch, Ph.D27-33/+31
2019-11-17use '-Werror=unused-parameter' for gcc/clang on project tests and ↵Michael Hirsch, Ph.D15-18/+17
-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-09-26cmake: Support ALIAS librariesDaniel Mensinger2-4/+9
2019-09-13Fix "test cases/linuxlike/14 static dynamic linkage" on SolarisAlan Coopersmith1-5/+19
Solaris doesn't ship static libraries, so the test can't rely on libz.a existing on Solaris. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-07-23cmake: added test case for environment variablesDaniel Mensinger3-0/+16
2019-07-17cmake: Fix empty -D due to empty strings (closes #5522)Daniel Mensinger3-0/+37
2019-07-11cmake: Fix dependencies with try_compile (closes #5605)Daniel Mensinger1-0/+3
2019-04-21Make it work on Cygwin.Jussi Pakkanen2-9/+24
2019-03-11Add static as keyword to find_libraryNiklas Claesson3-0/+43
2019-02-01CMake: Added support for CMAKE_MODULE_PATH and extra CMake args (closes #4779)Daniel Mensinger2-0/+15
2018-12-22Can specify a string to print when dep not found. Closes #2407.Jussi Pakkanen1-2/+4
2018-12-09Skip CMake dependency check if CMake is not installed.Jussi Pakkanen1-0/+4
2018-11-22CMake find_package dependency backend (#4444)Daniel Mensinger4-0/+78
2018-02-23Remove invalid kwarg from test cases/linuxlike/9 compiler checks with ↵Ran Benita1-1/+1
dependencies cc.has_function() does not accept a `name` keyword argument.
2018-02-08Add get_pkgconfig_variable(default:)Jon Turney1-0/+2
Also use that to squelch the warning for internal uses which handle the variable missing case (just gnome at the moment) A follow up to PR #2914
2017-12-22subproject handling: add two testsNiklas Claesson11-0/+77
2017-12-03Merge pull request #2663 from inigomartinez/pkg-config-define-variableJussi Pakkanen1-0/+2
dependencies: Allow pkg-config to define variables
2017-12-01dependencies: Use prefix variable with define_variableIñigo Martínez1-1/+1
The test used by the new define_variable parameter was using the includedir directory. However, in order to get a successful test, the includedir variables needs to be relative to the prefix variable, otherwise the replacemente will not have any effect. This changes uses the prefix variable itself because we can assure that it will be present.
2017-11-26spelling: nonexistentJosh Soref1-1/+1
2017-11-20dependencies: Allow pkg-config to define variablesIñigo Martínez1-0/+2
pkg-config enables to define variables by using the define-variable option. This allows some packages to redefine relative paths, so files can be installed in the same relative paths but under prefix.
2017-08-01Add thread flags to checks if needed. Closes #2106.Jussi Pakkanen1-0/+7
2017-07-21Check for manual attempts to set rpath and update docs.Jussi Pakkanen1-5/+9