aboutsummaryrefslogtreecommitdiff
path: root/test cases/common
AgeCommit message (Collapse)AuthorFilesLines
2021-04-26Condense test directory names.Jussi Pakkanen1077-0/+0
2021-04-26Merge if and else tests to a single project.Jussi Pakkanen3-12/+12
2021-04-24Xcode: some more skips.Jussi Pakkanen1-0/+5
2021-04-24Xcode: fix linking to customtargetindex objects.Jussi Pakkanen3-12/+30
2021-04-23Xcode: one more skip.Jussi Pakkanen1-0/+4
2021-04-23Xcode: a few more skips.Jussi Pakkanen2-0/+8
2021-04-23Xcode: skip one more object extraction test.Jussi Pakkanen1-0/+12
2021-04-22Xcode: use native path naming scheme.Jussi Pakkanen1-1/+6
2021-04-22Xcode: skip link language override test.Jussi Pakkanen1-0/+10
2021-04-21Xcode: one more whole-archive skip.Jussi Pakkanen1-0/+4
2021-04-20Xcode: fix file objects in various places.Jussi Pakkanen1-0/+4
2021-04-20Xcode: skip all-object library test.Jussi Pakkanen1-0/+4
2021-04-19Xcode: disable asm and LLVM ir projects.Jussi Pakkanen4-0/+17
2021-04-19pkgconfig: Add support for CustomTarget objects in generatorXavier Claessens2-1/+22
Fixes: #8618.
2021-04-18Xcode: skip object extraction test that can not be made to work.Jussi Pakkanen1-0/+12
2021-04-14Xcode: fix path of extracted objects in subdirs.Jussi Pakkanen1-1/+1
2021-04-09Add global_source/build_root()Xavier Claessens2-2/+5
2021-04-08Fix Xcode targets in subdirs.Jussi Pakkanen1-1/+2
2021-03-26pkgconfig: Allow setting prefix in dataonly pc fileXavier Claessens1-1/+6
Some variables are reserved because meson set them automatically. But we are not setting them for dataonly pc files, so there is no reason to reserve them. Fixes: #8583.
2021-03-24Merge pull request #8571 from xclaesse/spurious-warningJussi Pakkanen3-2/+8
Fix spurious sandbox violation warning
2021-03-24compilers: clang-cl: Also accept .s files (#8520)D Scott Phillips5-5/+29
* compilers: clang-cl: Also accept .s files clang-cl has support for gas-compatible assembly files. * Add clang-cl to '128 generated assembly' test
2021-03-23interpreter: Fix spurious warning in include_directories()Xavier Claessens3-2/+8
When doing include_directories('.') at the root of the subproject we should not warn about sandboxing violation.
2021-03-23environment(): Allow stacking append() and prepend() (#8547)Xavier Claessens2-0/+12
* environment(): Allow stacking append() and prepend() * Update docs/markdown/Reference-manual.md Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com> Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
2021-03-18add test case for installed targets uninstalling a single directoryEli Schwartz3-3/+18
2021-03-18interpreter: Add varname as positional arg in dep.get_variable()Xavier Claessens1-0/+2
2021-03-17Warn when grabbing internals of subprojects with include_directories.Jussi Pakkanen4-0/+20
2021-03-16Add range() functionXavier Claessens1-0/+20
Fixes: #5026.
2021-03-16Replace Unix shell commands with scripts.Jussi Pakkanen6-5/+23
2021-03-14Fix run_targets running scripts from different subdirs.Jussi Pakkanen2-0/+5
2021-03-12interpreter: Cache found dependency before converting for include_typeXavier Claessens6-0/+28
Fixes: #8516.
2021-03-10Switch fstring syntax to @..@ & limit fstring captures to int, str, float ↵Laurin-Luis Lehning1-4/+2
and bool
2021-03-10Add support for basic format stringsLaurin-Luis Lehning1-0/+9
2021-03-10Disable broken asm test on Cygwin as nobody knows how to fix it.Jussi Pakkanen1-0/+4
2021-03-09Add str.replace() methodTristan Partin1-1/+5
2021-03-04mass rewrite of string formatting to use f-strings everywhereEli Schwartz9-17/+17
performed by running "pyupgrade --py36-plus" and committing the results
2021-03-04various python neatness cleanupsEli Schwartz9-9/+6
All changes were created by running "pyupgrade --py3-only --keep-percent-format" and committing the results. I have not touched string formatting for now. - use set literals - simplify .format() parameter naming - remove __future__ - remove default "r" mode for open() - use OSError rather than compatibility aliases - remove stray parentheses in function(generator) scopes
2021-02-27install_man locale supportJason Woodward3-0/+3
Rather than having to manually build the locale aware man paths with `install_data('foo.fr.1', install_dir: join_paths(get_option('mandir'), 'fr', 'man1'), rename: 'foo.1')` Support doing `install_man('foo.fr.1', locale: 'fr')`
2021-02-26meson: add .has_external_property() methodsTim-Philipp Müller2-2/+27
Useful in case of boolean values to distinguish between a boolean value having been set in the native/cross file and not having been provided, which can't be achieved by passing a fallback parameter to .get_external_property().
2021-02-25Allow custom target output to be processed by generatorsMatthias Klumpp3-4/+22
2021-02-19Ensure that $lang_args and $lang_link_args are properly parsedDylan Baker3-0/+29
Currently we don't handle things correctly if we get a string we should split, and the linker and needs compiler arguments. It would result in two unsplit strings in a list, instead of the split arguments in a list Fixes: #8348
2021-02-17ci: Fix failure in unit tests with vs backendXavier Claessens1-2/+2
2021-02-17Do not validate options when finding non-matchingDylan Baker3-0/+20
This is a) useless because it's only used to print which options are not default, and b) harmful because it can result in cases where things break, like in projects that set a standard that the chosen compiler doesn't support, but the project (or some subset) can be built with a different standard. Fixes: #8360
2021-02-17Substitute @CURRENT_SOURCE_DIR@ in run_target() and custom_target()Xavier Claessens2-3/+34
run_target() does some variable substitutions since 0.57.0. This is a new behavior, and undocumented, caused by sharing more code with custom_target(). More consistency is better, so document it now. custom_target() was doing variable substitution in the past, because it shared some code with generator(), but that was undocumented. Some refactoring in 0.57.0 caused it to not replace @CURRENT_SOURCE_DIR@, @SOURCE_DIR@, and @BUILD_DIR@ anymore. This patch adds back @CURRENT_SOURCE_DIR@ and document it. It does not add back @SOURCE_DIR@ because it is duplicate with @SOURCE_ROOT@ that has a better name. Also do not add back @BUILD_DIR@ which is duplicate of @PRIVATE_DIR@, and not @BUILD_ROOT@ surprisingly, adding to the confusion.
2021-02-09backends: Fix custom_target() with configure_file() exeXavier Claessens1-1/+4
2021-02-09Condense test directory names in preparation for rc1.Jussi Pakkanen5-0/+0
2021-02-08Fix exe wrapper detection for run targets.Jussi Pakkanen1-2/+7
2021-02-07Make installing non-existing subdirs a supported featurePeter Hutterer2-1/+5
install_subdir() with a non-existing subdir creates the directory in the target directory. This seems like an implementation detail but is quite useful to create new directories for e.g. configuration or plugins in the installed locations. git bisect says this started with 8fe816101467e66792251b4f57e0ddddb537764a. Let's add a test for it and document it to make this behavior official. Limitation: it can only create at the install_dir location, trying to create nested subdirectories does not work and indeed creates the wrong directory structure. That is a bug that should be fixed separately: install_subdir('blah', install_dir: get_option('prefix')) install_subdir('sub/foobar', install_dir: get_option('prefix')) install_subdir('foo/baz', install_dir: get_option('prefix')) $ tree ../_inst ../_inst ├── baz ├── blah └── foobar Fixes #2904
2021-02-05run_target: Add env kwargXavier Claessens2-0/+15
Re-implement it in backend using the same code path as for custom_target(). This for example handle setting PATH on Windows when command is an executable.
2021-02-04Introduce `fs.read` to read a file as a stringLuke Drummond5-0/+26
Following #7890, this patch introduces the ability to read the contents of a file to the fs module. This patch introduces the ability to read files at configure time, but has some restrictions: - binary files are not supported (I don't think this will prove a problem, and if people are wanting to do something with binary files, they should probably be shelling out to their own script). - Only files outside the build directory allowed. This limitation should prevent build loops. Given that reading an arbitrary file at configure time can affect the configuration in almost arbitrary ways, meson should force a reconfigure when the given file changes. This is non-configurable, but this can easily be changed with a future keyword argument.
2021-02-01tests/common: fix " 37 has function" test on musl systems.Érico Rolim1-12/+21
This commit fixes the test that asserts on whether the lchmod() function should have been detected as available by Meson. It does so by assuming that on Linux systems not using glibc, the function will be available. - fix comment about lchmod on Linux: musl has implemented the function correctly since 2013, so the assumption in the test wasn't correct. Furthermore, musl doesn't use glibc's stub mechanism. - fix include to receive __GLIBC__ definition: including almost any header in glibc will end up defining __GLIBC__, since most headers include <features.h>. The <gnu/libc-version.h> header was probably chosen because of its name, but its actual purpose is defining functions for checking glibc version at runtime (instead of what the binary was built with), so it isn't necessary to use it. Since it is a completely non standard header, including it makes the test suite fail on musl due to not finding the header.