aboutsummaryrefslogtreecommitdiff
path: root/test cases/failing
AgeCommit message (Collapse)AuthorFilesLines
2021-03-10Some documentation language adjustments & improved error messagesLaurin-Luis Lehning1-1/+1
2021-03-10Formatting fixLaurin-Luis Lehning2-2/+2
2021-03-10Add failing test cases & release snippetLaurin-Luis Lehning4-0/+21
2021-03-06Refactor subdir visitation to track files instead of dirs.Jussi Pakkanen3-0/+11
2021-02-26interpreter: Clean up and simplify/optimize get_(external|cross)_propertyDylan Baker6-8/+18
These are both way more compilcated than they needed to be, this is a much simpler implementation, and is shared between cross and external properies.
2021-01-13build/interpreter: Split InstallDir to fix layering violationDylan Baker1-1/+1
Currently InstallDir is part of the interpreter, and is an Interpreter object, which is then put in the Build object. This is a layering violation, the interperter should have a Holder for build data. This patch fixes that.
2021-01-12Interpreter: Fix nested subsubproject detectionXavier Claessens3-3/+3
A sub-subproject can be configured directly from `subprojects/foo/subprojects/bar/` in the case `bar` is in the same git repository as `foo` and not downloaded separately into the main project's `subprojects/`. In that case the nested subproject violation code was wrong because it is allowed to have more than one "subprojects" in path (was not possible before Meson 0.56.0). Example: - self.environment.source_dir = '/home/user/myproject' - self.root_subdir = 'subprojects/foo/subprojects/bar' - project_root = '/home/user/myproject/subprojects/foo/subprojects/bar' - norm = '/home/user/myproject/subprojects/foo/subprojects/bar/file.c' We want `norm` path to have `project_root` in its parents and not have `project_root / 'subprojects'` in its parents. In that case we are sure `file.c` is within `bar` subproject.
2020-11-13run_unittests: use textwrap.dedentDylan Baker1-1/+1
So that editors that can fold code (vim, vscode, etc) can correctly fold functions, instead of getting confused by code that doesn't follow the current indention. Also, it makes the code easier to read.
2020-10-19In text, betterer grammer usings.Jussi Pakkanen2-2/+2
2020-10-17Fix gnome.compile_resources() when glib is a subprojectXavier Claessens1-1/+1
When glib is a subproject we should use glib-compile-resources it overrides using find_program() in the case it is not installed on the build machine. With old glib version we have to run glib-compile-resources at configure time to generate the list of dependencies, but not when glib is recent enough.
2020-10-16Fix consistency in variables kwargXavier Claessens3-3/+3
Share common code to extract the `variables` kwarg in declare_dependency() and pkg.generate().
2020-10-13Merge wraps from subprojects into wraps from main projectXavier Claessens1-1/+1
wraps from subprojects are now merged into the list of wraps from main project, so they can be used to download dependencies of dependencies instead of having to promote wraps manually. If multiple projects provides the same wrap file, the first one to be configured wins. This also fix usage of sub-subproject that don't have wrap files. We can now configure B when its source tree is at `subprojects/A/subprojects/B/`. This has the implication that we cannot assume that subproject "foo" is at `self.subproject_dir / 'foo'` any more.
2020-10-08dependency: support boolean argument "allow_fallback"Paolo Bonzini3-0/+12
Sometimes, distros want to configure a project so that it does not use any bundled library. In this case, meson.build might want to do something like this, where slirp is a combo option with values auto/system/internal: slirp = dependency('', required: false) if get_option('slirp') != 'internal' slirp = dependency('slirp', required: get_option('slirp') == 'system') endif if not slirp.found() slirp = subproject('libslirp', ...) .variable('...') endif and we cannot use "fallback" because the "system" value should never look for a subproject. This worked until 0.54.x, but in 0.55.x this breaks because of the automatic subproject search. Note that the desired effect here is backwards compared to the policy of doing an automatic search on "required: true"; we only want to do the search if "required" is false! It would be possible to look for the dependency with `required: false` and issue the error manually, but it's ugly and it may produce an error message that looks "different" from Meson's. Instead, with this change it is possible to achieve this effect in an even simpler way: slirp = dependency('slirp', required: get_option('slirp') != 'auto', allow_fallback: get_option('slirp') == 'system' ? false : ['slirp', 'libslirp_dep']) The patch also adds support for "allow_fallback: true", which is simple and enables automatic fallback to a wrap even for non-required dependencies.
2020-09-10Identify machine in error accesing compiler object for missing languageJon Turney2-0/+9
Also add a failing test case for that error.
2020-08-01run dircondensor.pyDylan Baker7-2/+2
2020-08-01machine-files: give better error messages about using integersDylan Baker7-0/+21
2020-07-01wrap: Add failing unit test for fallback consistencyXavier Claessens4-0/+22
Dependency 'foo' is overriden with 'foo_dep' so using fallback variable name 'bar_dep' should abort.
2020-05-23Add expected stdout for failing-meson tests which are missing itJon Turney10-0/+70
2020-05-23Revert "Merge pull request #7172 from jon-turney/test-output-check-mandatory"Jussi Pakkanen10-70/+0
This reverts commit 0871b1032c53287a1ed3ce5108799fb0daccaec5, reversing changes made to 9dc3ca2c1c9fbb47e731551c6432df144f725261.
2020-05-22Merge pull request #7172 from jon-turney/test-output-check-mandatoryJussi Pakkanen10-0/+70
Make the expected output check mandatory for failing-meson and warning-meson tests
2020-05-15Add expected stdout for failing-meson tests which are missing itJon Turney10-0/+70
2020-05-15travis/macos: Restore the old pkg-config behaviourNirbheek Chauhan1-1/+1
We need to test both "have pkg-config" and "don't have pkg-config" pathways on macOS, which is why pkg-config was only installed in one branch based on --unity=on/off.
2020-04-30Add expected stdout for failing-meson and warning-meson testsJon Turney95-10/+707
Initially produced using: for d in "test cases/failing/"* ; do rm -r _build ; ./meson.py setup "$d" _build | grep ERROR >"$d"/expected_stdout.txt; done then converted to json with jq using: jq --raw-input --slurp 'split("\n") | {stdout: map({line: select(. != "")})}' expected_stdout.txt >test.json or merged with existing json using: jq --slurp '.[0] + .[1]' test.json expected.json >test.json.new v2: Add some comments to explain the match when it isn't totally obvious v3: Add or adjust existing re: in expected output to handle '/' or '\' path separators appearing in message, not location. v4: Put expected stdout in test.json, rather than a separate expected_stdout.txt file Park comments in an unused 'comments' key, as JSON doesn't have a syntax for comments
2020-04-30Skip failing tests when they won't fail in the expected wayJon Turney14-11/+60
2020-04-05Rename test dir names with dircondenser.py.Jussi Pakkanen58-0/+0
2020-04-02ci: Skip dub compiler test on SINGLE_DUB_COMPILERDaniel Mensinger1-0/+9
2020-03-29Add a failing test for missing glib-compile-resourcesJon Turney2-0/+11
2020-03-09Merge pull request #6532 from jon-turney/languages-native-kwargJussi Pakkanen4-0/+20
Add add_languages(native:)
2020-03-06dependency: Verify fallback variable consistencyXavier Claessens4-0/+21
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-01Merge pull request #6627 from jon-turney/cwd-relative-file-locationsJussi Pakkanen4-0/+5
Consistently report file locations relative to cwd
2020-02-29Merge pull request #6707 from jon-turney/bogus-failing-testsJussi Pakkanen8-9/+5
Fix various failing-meson tests
2020-02-28Add failing test of parser error in options fileJon Turney2-0/+2
2020-02-28Add failing test of parser error in subdirJon Turney2-0/+3
2020-02-28Fix framework version failing testJon Turney1-1/+1
This test was never testing what it claimed to test, simply failing with "ERROR: No C-like compilers are available, cannot find the framework" because a C-like language is missing from project().
2020-02-28Remove exact version constraint from dub failing-meson testsJon Turney3-3/+3
These are always failing just because the exact version constraint isn't satisfied, e.g. "ERROR: Meson version is 0.53.999 but project requires 0.48.0"
2020-02-28Remove invalid escape char failing testJon Turney1-4/+0
This test was never testing what it claimed to test, simply failing with 'ERROR: First statement must be a call to project' because it's missing project(). Since #5279, all unrecognized escape sequences are literal, so I don't think there's anything to test here.
2020-02-28Fix invalid and non-existent manfile extension testsJon Turney2-0/+0
Currently they are just failing trying to install a non-existent file.
2020-02-28Update test case to use run_target(command:)Jon Turney1-1/+1
Currently this test is just failing due to an unexpected positional argument, as the (deprecated) keywordless run_target() was removed in 0.45.0
2020-02-26test: replace pass_* functions with a test.json entryDaniel Mensinger2-0/+6
2020-02-25test: merge installed_files.txt into test.jsonDaniel Mensinger2-6/+10
2020-02-12Add test of target source without languageJon Turney2-0/+5
Add a test that trying to use a compiler in a target for a language which hasn't been mentioned in project() or add_languages() gives an error.
2020-02-12Add a test that using an unavailable native compiler errorsJon Turney2-0/+15
Add a test that trying to use a native compiler in a target after it's been tentatively added with add_languages() without native: but isn't actually available gives an error.
2020-02-05add get_external_property to replace get_cross_propertyMichael Hirsch, Ph.D2-3/+3
2020-02-05add native-file properties testsMichael Hirsch, Ph.D1-0/+3
2020-01-30Bugfix: sanitize_dir: use pathlib to handle case-insensitive filesystems (#6398)Michael Hirsch, Ph.D1-0/+4
2019-11-18Use strict function prototypesMichael Hirsch, Ph.D2-2/+2
2019-11-12Fixed issue that the key's value type wasn't checked correctly.fchin2-0/+18
Added two new failing tests.
2019-08-03Condense test directory names.Jussi Pakkanen17-0/+0
2019-05-05Fix an assertion exception when misusing install_dataJon Turney3-0/+25
* Failing test case for trying to install_data a custom_target * Validate install_data() arguments are either string or file
2019-04-22Remove extra directory in failing testJon Turney1-0/+0
So it failing tests what it claims, rather than that an directory without a meson.build fails...