aboutsummaryrefslogtreecommitdiff
path: root/test cases
AgeCommit message (Collapse)AuthorFilesLines
2021-08-27interpreter: fix IndexError when specifying dependency 'include_type'Rihards Skuja1-0/+3
Exception is thrown when dependency name is empty and when its 'include_type' differs from the default one. Regression from b6d754a40c.
2021-08-23interpreter: Fix dependency(..., static: true) fallbackXavier Claessens2-0/+35
It should build the fallback subprject with default_library=static and override the dependency for both static=True and static kwarg not given. Fixes: #8050.
2021-08-22Add Java moduleTristan Partin4-25/+13
The Java module will serve as a source for easing Java development within Meson. Currently it only supports generating native header files.
2021-08-22use a more informative error message for invoking meson in a subdirEli Schwartz1-1/+1
Explicitly mention that the project definition is invalid, and clarify that project is `project()` -- a function. Also try to walk the directory tree upward, and if there are parent meson.build files, just say this isn't the project root, and "maybe you meant to run meson there instead?" This won't catch calls to subdir('foo/bar') but we can't be perfect, only better than before and catch the *majority* of such cases, and hopefully it's a lot more clear if meson protests that the project is "invalid, there is no project() function", where the user should look for a potential solution. Fixes #3426
2021-08-21Path special casing for the Xcode backend.Jussi Pakkanen1-1/+1
2021-08-18tests: python module should install files correctlyEli Schwartz7-3/+51
- default to python site-packages - subdir to site-packages/subdir - arbitrary install_dir
2021-08-18Test boost-python on macOSKevin Meagher1-6/+8
Previously the meson test case would only test boost-python on linux. With the #7909 it is now possible to use boost-python on macOS/homebrew. This enables the boost-python test on both linux and macOS. It also uses python.extension_module() instead of shared_library to make the python extension module.
2021-08-17test cases/rust: clang-cl also needs extra_winlibsNirbheek Chauhan1-1/+1
2021-08-17Add install tagsXavier Claessens9-0/+92
Fixes: #7007.
2021-08-16Add unset_variable()Tristan Partin1-0/+15
This should be useful for helping to control variable scope within Meson. CMake has something similar for controlling scope.
2021-08-16interpreter: Fix holder_map not being updated when subproject failsXavier Claessens2-0/+9
Fixes: #9038
2021-08-15editorconfig: add setting to trim trailing whitespaceEli Schwartz126-152/+48
and clean up all outstanding issues Skip 'test cases/common/141 special characters/meson.build' since it intentionally uses trailing newlines.
2021-08-15Revert "interpreter: Fix holder_map not being updated when subproject fails"Jussi Pakkanen2-9/+0
This reverts commit 566383c727219fc20cf1c90c0fe7dae4bcac5c96.
2021-08-15Revert "compilers/c++: Add MSVC option to make the __cplusplus define accurate"Jussi Pakkanen3-22/+1
This reverts commit 0b97d585480e973d8b149618901f7a4ddfa1a906.
2021-08-14Force unity builds off in Flex test.Jussi Pakkanen1-1/+3
2021-08-12Fix building framework test.Jussi Pakkanen1-0/+2
2021-08-12Disable asan memory leak checks on a Cuda test.Jussi Pakkanen1-2/+5
2021-08-12Pass a test file to flex test.Jussi Pakkanen3-2/+5
2021-08-11compilers/c++: Add MSVC option to make the __cplusplus define accurateDylan Baker3-1/+22
Otherwise it always returns the value for c++98, starting with MSVC 2017 15.7 or later. Earlier versions are not affected by this mis-feature
2021-08-11Make the flex test case workAdrien Plazas2-11/+3
This adds the noyywrap option so flex doesn't wait for more input once we reached EOF. This also adds the nounput and noinput options to fix compilation warnings. We can now run the test as expected.
2021-08-09Fix i18n target name when using @BASENAME@ and configure_file() inputXavier Claessens4-1/+43
Fixes: #9022
2021-08-09interpreter: Fix missing subsubproject summary when subproject failsXavier Claessens2-1/+5
In the case main->subp->subsubp, if subsubp succeed to configure but subp subsequentially fails, subsubp is still being built but its summary was missing.
2021-08-09interpreter: Fix holder_map not being updated when subproject failsXavier Claessens2-0/+9
Fixes: #9038
2021-08-09pkg-config: support for `-l:libfoo.a`lilinzhe5-0/+67
fixs: #9000 Meson not correctly process with -l:xxx.a link arguments in pkgconfig .pc file. see also:https://stackoverflow.com/questions/48532868/gcc-library-option-with-a-colon-llibevent-a with unit test, unit test will be partially skiped if pkg-config version < 0.28 . see: https://gitlab.freedesktop.org/pkg-config/pkg-config/-/blob/master/NEWS
2021-08-09interpreter: Fix list contains for Holders (fixes #9020 #9047)Daniel Mensinger4-0/+24
2021-08-08Add support for finding Javascript source libraries with Emscripten.Jussi Pakkanen3-0/+24
2021-08-08Update iphone cross building.Jussi Pakkanen1-10/+17
2021-08-04Escape path in exclude filter passed to gcovrAlois Wohlschlager2-0/+7
Gcovr interprets exclude filters, as passed to the -e option, as regexes. Since we want to exclude a raw path, the argument must be escaped.
2021-08-04Relax restrictions on detecting boost dependencyKevin Meagher16-0/+18
This does two things: * allows the library files to be symlinks * searches `lib` and `lib64` in `BOOST_ROOT` even if it finds lib directories from the compiler The first condition is needed for the homebrew on macOS because boost and boost python are provided in seperate packages and are put together in /usr/local/lib with symlinks to the library files. The both conditions are needed for high performace computing environments where dependencies are often provided in nonstandard directories with symlinks A test case was added which looks for boost libraries in seperate directories which have been symlinked to BOOST_ROOT/lib
2021-08-03ninjabackend: use get_subdir() instead of subdir attribute for cythonDylan Baker1-0/+10
As this works correctly for CustomTarget, CustomTargetIndex, and GeneratedList, but .subdir doesn't work for CustomTargetIndex.
2021-07-28expand tests to check both static and shared intl dependencyEli Schwartz3-1/+10
2021-07-27build: learn to take CustomTargetIndex as custom_target commandMarc-André Lureau1-0/+6
Fix ERROR: Argument <CustomTargetIndex:...>[0]> in "command" is invalid. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-07-25ast: Add dummy "support" for fstrings in the ast packageDaniel Mensinger1-0/+2
2021-07-23Add support for gcovr --sonarqube reportWeston Schmidt1-0/+1
Sonarcloud.io only can read the sonarqube based report that gcovr can produce. This change enables support for this output in meson and ninja. Signed-off-by: Weston Schmidt <Weston_Schmidt@alumni.purdue.edu>
2021-07-23Merge pull request #9005 from jon-turney/xskip-ci-2Jussi Pakkanen31-25/+74
Add expected skip annotations for non-linux CI runs to framework tests
2021-07-21Merge pull request #8994 from SoapGentoo/cuda-fixesJussi Pakkanen3-3/+15
Cuda fixes
2021-07-21Fix meson.version().version_compare() regression in subprojectXavier Claessens2-0/+10
2021-07-18Cuda: Add test for shared versioned internal libsDavid Seifert1-1/+3
2021-07-18Cuda: Add test for -isystem/usr/includeDavid Seifert1-2/+8
2021-07-18Cuda: Add test for -DNDEBUGDavid Seifert2-1/+5
2021-07-15Condense test directory names for next release.Jussi Pakkanen185-73/+73
2021-07-13Add expected skip annotations for non-linux CI runs to framework testsJon Turney31-24/+73
2021-07-13Fix skip condition in sdl2 test.jsonJon Turney1-1/+1
The build_machine.system() value we should be matching against is 'darwin', not 'macos', so this was expected to skip everywhere. Unfortunately, fixing this reveals that this test skips in our macos CI runs also, (I think) because brew doesn't (normally) provide frameworks, just pkgconfig files. So, also skip this test there, which means it doesn't run anywhere in CI currently.
2021-07-10fix: Fix recursive _unholder permissive kwarg (fixes #8977)Daniel Mensinger1-0/+2
2021-07-07Annotate framework tests with where they are expected to skipJon Turney9-8/+21
Remove hard-coded framework test skip logic in skippable(), instead annotate test.json with environments in which skip is expected. (Mainly this is done with by testing the value of MESON_CI_JOBNAME now set for linux jobs)
2021-07-07Skip LLVM test if required modules aren't foundJon Turney1-3/+6
If the required LLVM modules can't be found, skip the LLVM framework test, rather than succesfully doing nothing. (This optionality is a leftover from before #7379) (At the moment, OpenSuse provides dynamic-only LLVM. The cmake method still finds LLVM, when a static LLVM is requested, but fails to find any modules. This might be a bug in the cmake method of the LLVM dependency.)
2021-07-05cmake: Improved error message for using dependency for executablesDaniel Mensinger4-0/+24
fixes #8893
2021-07-05cmake: Only use the `cm_` prefix when it is actually required (fixes #8955)Daniel Mensinger6-13/+18
2021-07-03Merge pull request #8950 from dcbaker/submit/import-required-disabledJussi Pakkanen4-12/+16
Add required and disabled to import, modules.found method
2021-07-02Flatten test suite valueTristan Partin1-1/+1
This behavior is more inline with the rest of Meson