aboutsummaryrefslogtreecommitdiff
path: root/unittests/machinefiletests.py
AgeCommit message (Collapse)AuthorFilesLines
2025-06-18options: fix option orderingPaolo Bonzini1-4/+10
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-06-18test cases: do not pass global option on command linePaolo Bonzini1-4/+5
The test covers overriding an option from the dependency() function. If the same option is passed on the command line, it overrides the dependency()'s default_options as well. Tweak the description of the unittests that uses the same sources. The tests pass, but I am not sure they should. For example in the second test the default_library=both setting in the machine file should have the same effect as the -D option (machine files have lower priority than command line, but higher priority than anything in meson.build files). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-04-14Condense directory names for 1.8 rc1.Jussi Pakkanen1-1/+1
2025-02-13Make all Meson level options overridable per subproject.Jussi Pakkanen1-1/+3
2025-01-27compilers: Check if GCC has support for ObjC and/or ObjC++Dylan Baker1-3/+13
Since this is optional, we should not accept that GCC is a valid ObjC or G++ is a valid ObjC++ Compiler unless we've tested that they can actually do a basic compile. This requires fixing a number of tests that have broken assumptions. In some cases I've split tests where issues with one language would hide the other. It would be great if we had a competent test framework that allowed subtests to skip, unfortunately we have python's unittest instead. Because of that we can't avoid extra tests by use of subtests.
2025-01-09Condensed directory names for release.Jussi Pakkanen1-1/+1
2024-09-11Fix typosspaette1-5/+5
2024-07-30unittests: fix EncodingWarnings. minus 123 warnings collected by pytestEli Schwartz1-1/+1
2024-06-04Extract native file parser to machinefile source file.Jussi Pakkanen1-1/+1
2024-06-02Start moving machine files to their own store.Jussi Pakkanen1-1/+12
2023-12-17Skip pkg-config-dependent tests if it's missingAlyssa Ross1-3/+6
2023-12-13Use SPDX-License-Identifier consistentlyDylan Baker1-12/+1
This replaces all of the Apache blurbs at the start of each file with an `# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing uses to be consistent in capitalization, and to be placed above any copyright notices. This removes nearly 3000 lines of boilerplate from the project (only python files), which no developer cares to look at. SPDX is in common use, particularly in the Linux kernel, and is the recommended format for Meson's own `project(license: )` field
2023-10-27Condense test directories for RC1.Jussi Pakkanen1-1/+1
2023-07-13Silence some encoding warningsTristan Partin1-2/+2
By specifiying explicit encodings, we can silence warnings like: /__w/meson/meson/test cases/common/100 postconf with args/postconf.py:15: EncodingWarning: 'encoding' argument not specified with open(input_file) as f: in CI.
2023-06-27modules/rust: Add a machine file property for extra clang args with bindgenDylan Baker1-4/+29
It's currently impossible to inject extra clang arguments when using bindgen, which is problematic when cross compiling since you may need critical arguments like `--target=...`. Because such arguments must be passed after the `--` it's impossible to inject them currently without going to something like a wrapper script. Fixes: #11805
2023-04-11fix various spelling issuesJosh Soref1-1/+1
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-11Change "can not" to "cannot" throughout projectHiPhish1-1/+1
The word "cannot" expresses inability to do something whereas "can not" expresses the ability to refrain from doing something.
2023-03-28Condense test directories for rc1.Jussi Pakkanen1-1/+1
2022-12-14depfixer: silence fix_jar() and make it do somethingBenjamin Gilbert1-0/+18
fix_jar() tries to remove an existing Class-Path entry from the jar manifest by postprocessing the manifest and passing it to `jar -um`. However, `jar -um` can only add/replace manifest entries, not remove them, and it also complains loudly when replacing an entry: Dec 13, 2022 7:11:19 PM java.util.jar.Attributes read WARNING: Duplicate name in Manifest: Manifest-Version. Ensure that the manifest does not have duplicate entries, and that blank lines separate individual sections in both your manifest and in the META-INF/MANIFEST.MF entry in the jar file. Thus fix_jar() produces one such warning for each entry in the manifest and accomplishes nothing else. Use jar -uM instead. This completely removes the manifest from the jar and allows adding it back as a normal zip member, fixing fix_jar() and avoiding the warnings. Fixes: https://github.com/mesonbuild/meson/issues/10491 Fixes: c70a051e93 ("java: remove manifest classpath from installed jar")
2022-03-29Condense test directory names.Jussi Pakkanen1-11/+11
2021-08-15editorconfig: add setting to trim trailing whitespaceEli Schwartz1-1/+0
and clean up all outstanding issues Skip 'test cases/common/141 special characters/meson.build' since it intentionally uses trailing newlines.
2021-07-26Split run_unittests.py fileXavier Claessens1-0/+936