aboutsummaryrefslogtreecommitdiff
path: root/test cases/linuxlike
AgeCommit message (Collapse)AuthorFilesLines
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
2017-06-17valgrind: Fix __init__ callNirbheek Chauhan1-1/+1
Adds a test so that this is catched later. Closes https://github.com/mesonbuild/meson/issues/1937
2017-06-09dependencies: Add a new class ExternalDependencyNirbheek Chauhan1-3/+9
This class now consolidates a lot of the logic that each external dependency was duplicating in its class definition. All external dependencies now set: * self.version * self.compile_args and self.link_args * self.is_found (if found) * self.sources * etc And the abstract ExternalDependency class defines the methods that will fetch those properties. Some classes still override that for various reasons, but those should also be migrated to properties as far as possible. Next step is to consolidate and standardize the way in which we call 'configuration binaries' such as sdl2-config, llvm-config, pkg-config, etc. Currently each class has to duplicate code involved with that even though the format is very similar. Currently only pkg-config supports multiple version requirements, and some classes don't even properly check the version requirement. That will also become easier now.
2017-05-09dependencies: Fix two more edge-cases in dependency searchingNirbheek Chauhan1-1/+14
Includes tests for both of them.
2017-05-09Completely overhaul caching of external dependenciesNirbheek Chauhan1-2/+21
The old caching was a mess of spaghetti code layered over pasta code. The new code is well-commented, is clear about what it's trying to do, and uses a blacklist of keyword arguments instead of a whitelist while generating identifiers for dep caching which makes it much more robust for future changes. The only side-effect of forgetting about a new keyword argument would be that the dependency would not be cached unless the values of that keyword arguments were the same in the cached and new dependency. There are also more tests which identify scenarios that were broken earlier.
2017-05-09dependencies: Fix caching of native/cross dependenciesNirbheek Chauhan2-1/+10
All our cached_dep magic was totally useless since we ended up using the same identifier for native and cross deps. Just nuke all this cached_dep code since it is very error-prone and improve the identifier generation instead. For instance, this is broken *right now* with the `type_name` kwarg. Add a bunch of tests to ensure that all this actually works... Closes https://github.com/mesonbuild/meson/issues/1736
2017-05-08Allow link_depends to take strings, Files or generated objects. Closes #1172Dylan Baker5-0/+71
Currently only strings can be passed to the link_depends argument of executable and *library, which solves many cases, but not every one. This patch allows generated sources and Files to be passed as well. On the implementation side, it uses a helper method to keep the more complex logic separated from the __init__ method. This also requires that Targets set their link_depends paths as Files, and the backend is responsible for converting to strings when it wants them. This adds tests for the following cases: - Using a file in a subdir - Using a configure_file as an input - Using a custom_target as an input It does not support using a generator as an input, since currently that would require calling the generator twice, once for the -Wl argument, and once for the link_depends. Also updates the docs.
2017-04-22Disabled rpath test due to bug #1635.Jussi Pakkanen1-0/+2