summaryrefslogtreecommitdiff
path: root/test cases/linuxlike
AgeCommit message (Collapse)Author
2025-03-04coredata: fix handling of prefixDylan Baker
Which was improperly updated by the option store refactor. Fixes: #14329
2024-09-05tests: handle uncommon architecture format for nmEli Schwartz
The zlib symbols may not be of type 'T' but rather e.g. 'D' -- instead, tell nm to emit the POSIX format and also to only emit defined symbols, not undefined ones. Then we just check if the symbol is listed at all, regardless of type. We already depend on -U elsewhere (e.g symbolextractor). There's no real replacement for it, sadly. It's also buggy in some versions of nm, so we check both its long and short options. Bug: https://bugs.gentoo.org/938259
2024-07-16Fix the zlib-ng failing tests, for realTristan Partin
I failed to properly account for the case in which the two string are completely equal.
2024-07-15tests: short-circuit tests that require cmake, fasterEli Schwartz
We have two ways of marking a test as skipped: - raise MESON_SKIP_TEST - declare that the tools it needs in test.json are unavailable Doing the former requires performing the configure stage including e.g. language setup. In several cases we weren't even getting this far anyway since we used both mechanisms (the cmake category has a category-wide skip for this, in fact). In some case, we were missing test.json declaring it skippable; add this.
2024-07-15Fix failing tests for zlib-ngTristan Partin
Fedora, at the very least, now packages zlib-ng as zlib. This means the version reported for the dependency is now X.Y.Z.zlib-ng by pkgconfig whereas the test expected X.Y.Z. Make the version check work for both regular zlib and zlib-ng.
2023-11-14dependencies: allow get_variable to define multiple pkgconfig definesEli Schwartz
It was previously impossible to do this: ``` dep.get_pkgconfig_variable( 'foo', define_variable: ['prefix', '/usr', 'datadir', '/usr/share'], ) ``` since get_pkgconfig_variable mandated exactly two (if any) arguments. However, you could do this: ``` dep.get_variable( 'foo', pkgconfig_define: ['prefix', '/usr', 'datadir', '/usr/share'], ) ``` It would silently do the wrong thing, by defining "prefix" as `/usr=datadir=/usr/share`, which might not "matter" if only datadir was used in the "foo" variable as the unmodified value might be adequate. The actual intention of anyone writing such a meson.build is that they aren't sure whether the .pc file uses ${prefix} or ${datadir} (or which one gets used, might have changed between versions of that .pc file, even). A recent refactor made this into a hard error, which broke some projects that were doing this and inadvertently depending on some .pc file that only used the second variable. (This was "fine" since the result was essentially meaningful, and even resulted in behavior identical to the intended behavior if both projects were installed into the same prefix -- in which case there's nothing to remap.) Re-allow this. There are two ways we could re-allow this: - ignore it with a warning - add a new feature to allow actually doing this Since the use case which triggered this bug actually has a pretty good reason to want to do this, it makes sense to add the new feature. Fixes https://bugs.gentoo.org/916576 Fixes https://github.com/containers/bubblewrap/issues/609
2023-09-25tests: fix broken promises with linker scriptsEli Schwartz
This has never, ever, ever worked. You can get away with it a tiny, tiny bit, iff you magically assume several things about both internal implementations, as well as the project source layout and builddir location. This can be witnessed by the way using files() was mercilessly tortured through joining the undefined stringified format value of the file to the current source dir... because it didn't actually *work*, the stringified value isn't an absolute path or a builddir-relative one, but it works as long as you do it from the root meson.build file. Furthermore, this triggers a deprecation warning if you do it. And using it for files() is frivolous, the "static map file" case was correct all along. Fix the configure_file case to demonstrate the same painful hoops we must jump through to get custom_target outputs to work correctly. Fixes #12259
2023-08-30Re-enable "11 runpath rpath ldlibrarypath"Tristan Partin
The bug it was blocked on was fixed in a0514a7c4183a9e42d436865087d2f887d658d54.
2023-08-30Disable failing test on cygwin due to broken cmakeCharles Brunet
See https://gitlab.kitware.com/cmake/cmake/-/issues/25200.
2023-04-11fix various spelling issuesJosh Soref
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2022-04-18Fix generator expression list problems (fixes #10288)Daniel Mensinger
2022-02-17tests: do not use a GNU bash script to check the minimum version of programsEli Schwartz
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 Mensinger
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ßmann
2021-10-10Fix typos discovered by codespellChristian Clauss
2021-10-06cmake: Implement support for interpreting link "keywords"Daniel Mensinger
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 Mensinger
2021-06-22tests: both_library test improvementsDaniel Mensinger
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 Mensinger
2020-11-24compiler: allow non-built internal dependencies as argumentsPaolo Bonzini
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 Ekstrand
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 Baker
2020-08-07cmake: make the traceparser permissive by default (fixes #7501)Daniel Mensinger
2020-07-01Implicit dependency fallback when a subproject wrap or dir existsXavier Claessens
2020-06-22test: Fix linuxlike/3 linker script on Solaris 11.4Alan Coopersmith
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 Mensinger
2020-04-28tests: Avoid a CMake error by checking the CMake versionDaniel Mensinger
2020-03-19cmake: Add find_package COMPONETS supportDaniel Mensinger
2020-03-06dependency: Verify fallback variable consistencyXavier Claessens
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 Claessens
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 Pakkanen
Refactor run_projectests.py
2020-02-27Fix 'linuxlike/14 static dynamic linkage' test on CygwinJon Turney
Update the expected output from nm to match changes in binutils 2.34.
2020-02-25test: merge installed_files.txt into test.jsonDaniel Mensinger
2020-02-25test: merge test_matrix.json and setup_env.json into test.jsonDaniel Mensinger
2020-01-23cmake: Always Add C, CXX if no language is specified (fixes #6441)Daniel Mensinger
2020-01-22tests: Add a test case for finding ldDylan Baker
2020-01-21Use python3 in some tests which were still using pythonSebastien Bacher
The unversioned command is deprecated and removed from some distributions
2019-12-09cmake: add project language to cmakelists.txtMichael Hirsch, Ph.D
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 Claessens
Also harminize a bit the logged message.
2019-11-18Use strict function prototypesMichael Hirsch, Ph.D
2019-11-17use '-Werror=unused-parameter' for gcc/clang on project tests and ↵Michael Hirsch, Ph.D
-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 Mensinger
2019-09-13Fix "test cases/linuxlike/14 static dynamic linkage" on SolarisAlan Coopersmith
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 Mensinger
2019-07-17cmake: Fix empty -D due to empty strings (closes #5522)Daniel Mensinger
2019-07-11cmake: Fix dependencies with try_compile (closes #5605)Daniel Mensinger
2019-04-21Make it work on Cygwin.Jussi Pakkanen
2019-03-11Add static as keyword to find_libraryNiklas Claesson
2019-02-01CMake: Added support for CMAKE_MODULE_PATH and extra CMake args (closes #4779)Daniel Mensinger
2018-12-22Can specify a string to print when dep not found. Closes #2407.Jussi Pakkanen