aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-01-15mtest: pass command line to TestRun.startPaolo Bonzini1-18/+16
The command line is already available when the test is started. Pass it to TestRun.start instead of TestRun.complete*.
2021-01-15mtest: add complete_skip to TestRunPaolo Bonzini1-1/+4
2021-01-15mtest: simplify complete_exitcodePaolo Bonzini1-8/+5
There is no need anymore to pass the JUnit XML down to complete_exitcode. Just set self.junit in complete_gtest instead.
2021-01-15mtest: store the environment in the TestRunPaolo Bonzini1-1/+1
The test_env was lost from the TestRun object in commit 30741a0f2 ("mtest: create TestRun object early on"). Fix things.
2021-01-15mtest: do not print time out message twicePaolo Bonzini1-2/+0
Rebase mistake in "mtest: move timeout message to ConsoleLogger".
2021-01-14mtest: allow quickly interrupting the test runPaolo Bonzini2-5/+22
The new behavior of interrupting the longest running test with Ctrl-C is useful when tests hang, but not when the run is completely broken for some reason. Psychology tells us that the user will compulsively spam Ctrl-C in this case, so exit if three Ctrl-C's are detected within a second.
2021-01-14mtest: fix flake8Paolo Bonzini1-2/+2
2021-01-14coredata: Add missing nopromote wrap_mode choiceXavier Claessens2-1/+7
2021-01-14Merge pull request #8192 from dcbaker/submit/minstall-type-annotationsJussi Pakkanen11-161/+238
Add type annotations to minstall (and some related cleanups)
2021-01-14Add qtcreator to IDE-integration.mdgaal-dev1-0/+1
2021-01-13run_mypy: add minstallDylan Baker1-0/+1
2021-01-13minstall: Fix signature of monkeypatched os.chownDylan Baker1-3/+12
this also clears up the last of the mypy problems in minstall, yay!
2021-01-13minstall: Pass destdir and fullprefix instead of adding them to instanceDylan Baker1-25/+25
Same idea as the last patch, just different data
2021-01-13minstall: Pass DirMaker separately instead of adding to instanceDylan Baker1-24/+23
Add a new attribute to an object outside of the initializer of construtor is considered an antipattern for good reason, it's gross, it's confusing, and it often leads to AttributeErrors down some paths. Let's not do that.
2021-01-13minstall: Add type annotationsDylan Baker1-31/+64
This adds annotations and fixes a couple of issues (passing Set[bytes] where List[byte] is expected), however, there's some very gross addition of attributes to types going on that I haven't fixed yet, and mypy is very grump about.
2021-01-13backends/backends: Add type annotations for InstallDataDylan Baker1-27/+36
This adds enough type annotations for InstallData and friends to make minstall happy. There is also a small change in that I've replaced the List[List] with List[Tuple], as tuples are more appropraite data types for the information (fixed length, position matters, different types at different indexes)
2021-01-13build/interpreter: Split InstallDir to fix layering violationDylan Baker4-33/+44
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-13build: Add some type annotationsDylan Baker2-12/+20
2021-01-13build/interperter: Add annotations and move input validation to interpreterDylan Baker5-17/+20
This moves the user input validation to the interpreter, instead of being in the build module, and adds type annotations.
2021-01-13minstall: fix importsDylan Baker1-6/+10
This uses PEP8 style, one per from `import mod`, but with commas from `from mod import a, b`. Also run sort, for niceness.
2021-01-13scripts/depfixer: make rpaths_dirs_to_remove a setDylan Baker1-4/+4
It's only used for doing an `if x in container` check, which will be faster with a set, and the only caller already has a set, so avoid we can avoid a type conversion as well.
2021-01-13Fix misspellsAntonin Décimo40-67/+67
Signed-off-by: Antonin Décimo <antonin.decimo@gmail.com>
2021-01-13gen_data.py: even more sortingEli Schwartz2-97/+97
glob.glob() is not sorted, despite using shell-style wildcards, and the documentation does not mention this: https://bugs.python.org/issue21748 Recently, it does start mentioning "Whether or not the results are sorted depends on the file system." which does not really get to the heart of the matter... This is causing fuzz too.
2021-01-12summary: align left, not align middleEli Schwartz4-21/+25
aligning along the left is, I think, what most projects want to do. Aligning along the middle looks subjectively ugly, and objectively prevents me from further indenting an element, e.g. Build information: prefix : /usr sysconfdir : /etc conf file : /etc/myprogram.conf
2021-01-12gen_data.py: sort files when generating mesondataEli Schwartz2-112/+112
The current way this works is chaos since the tool might return files in any order and thus shuffle around the order of embedded files. This results in big diffs that cannot be easily reviewed. Also regenerate the data according to the, going forward, canonical ordering algorithm.
2021-01-12dependencies: use env.machines for is_$os methodsDylan Baker1-7/+7
Currently we use the mesonlib ones, but these are always the build machine definitions, rather than being available for either the build or host machine. We already have an `Environment` instance, and the correct `MachineChoice`, so lets use that. Fixes #8165
2021-01-12Allow '//' as project function id due to git bash path conversion.Luke Elliott8-6/+49
See https://stackoverflow.com/questions/54258996/git-bash-string-parameter-with-at-start-is-being-expanded-to-a-file-path
2021-01-12Merge pull request #8159 from dcbaker/submit/all-env-variables-up-frontJussi Pakkanen16-356/+269
Read and store all environment variables up front
2021-01-12Interpreter: Fix nested subsubproject detectionXavier Claessens7-38/+26
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.
2021-01-11CI: fix arch linux tests failing to install wxgtkEli Schwartz1-1/+1
There hasn't been any such package since the original addition of a gtk3 version of wxgtk... back in 2017. The "new" wxgtk2 package provided a virtual provides ever since, so people still depending on "wxgtk" would get the old gtk2 version. This virtual provides got dropped today, resulting in the package being uninstallable. Resolve the provides to its canonical name, thus making it installable again.
2021-01-11make some Environment methods protectedDylan Baker1-5/+5
they're really not public methods, they'r only meant to be called from the initializer. Let's mark them as such.
2021-01-11clean up get_env_var_pairDylan Baker1-14/+8
This function returns both the name and the value, but we never actually use the name, just the value. Also make this module private. We really want to keep all environment variable reading in the Environment class so it's done once up front. This should help with that goal.
2021-01-11move get_env_var_pair to environmentDylan Baker2-38/+32
This is only used in environment, so it should live there too.
2021-01-11boost: default machine file properties to env var valuesDylan Baker4-59/+37
This both moves the env reading to configuration time, which is useful, and also simplifies the implementation of the boost dependency. The simplification comes from being able to delete basically duplicated code since the values will be in the Properties if they exist at all.
2021-01-11Move BinaryTable environment lookups to EnvironmentDylan Baker3-65/+57
This means that all the env lookups are done once, at initial configure time. This has all of the expected advantages.
2021-01-11pull env to program mappings out of BinaryType classDylan Baker2-49/+49
These really aren't pivotal to that class, and they're used outside of it. In a follow up patch they're not going to be used inside it at all.
2021-01-11move handling of CFLAGS and friends to environmentDylan Baker6-111/+72
This has a bunch of nice features. It obviously centralizes everything, which is nice. It also means that env is only re-read at `meson --wipe`, not `meson --reconfigure`. And it's going to allow more cleanups.
2021-01-11use PEP8 style naming for LANGUAGES_USING_* as wellDylan Baker3-7/+7
2021-01-11rename cflags_mapping to CFLAGS_MAPPINGDylan Baker3-19/+23
This is PEP8 convention for a const variable. Also, make the type Mapping, which doesn't have mutation methods. This means mypy will warn us if someone tries to change this.
2021-01-11dependencies: Don't read PKG_CONFIG_PATH from the env againDylan Baker1-10/+2
We already read this in, don't read it again. Just rely on the value we have stored.
2021-01-11move CMAKE_PREFIX_PATH env var handling to environmentDylan Baker2-24/+20
This causes the variable to be read up front and stored, rather than be re-read on each invocation of meson. This does have two slight behavioral changes. First is the obvious one that changing the variable between `meson --reconfigure` invocations has no effect. This is the way PKG_CONFIG_PATH already works. The second change is that CMAKE_PREFIX_PATH the env var is no longer appended to the values set in the machine file or on the command line, and is instead replaced by them. CMAKE_PREFIX_PATH is the only env var in meson that works this way, every other one is replaced not appended, so while this is a behavioral change, I also think its a bug fix.
2021-01-11dependencies/mpi: Add a type annotationDylan Baker1-1/+1
Some change in this series causes mypy to notice that this isn't annotated, and it makes a wrong assumption.
2021-01-11import MachineChoice from mesonlibDylan Baker2-2/+2
there are a couple of places importing it from envconfig, which is not correct. It's defined in mesonlib, and then imported into envconfig.
2021-01-11unittests: Clang on windows can use either ld or link.exeDylan Baker1-2/+4
it generally uses the ld style linkers with msys2 and link.exe style linkers otherwise, but anything's possible.
2021-01-11doc: fix invalid Commands.md example for introspect [skip ci]Eli Schwartz1-1/+1
It requires at least one option argument, and the one that provides "basic information" about the project is --projectinfo, so let's use that to demo the command. Fixes #8182
2021-01-11Add Chicken-Libraries to Users.md (#8180)Michael Brockus1-0/+1
2021-01-10cmake: add PATH logic to preliminary dep check (fixes #8133)Daniel Mensinger7-5/+35
2021-01-10Merge pull request #8029 from bonzini/mtest-asyncio-nextJussi Pakkanen2-330/+466
mtest: asynchronous TAP parsing, improved progress report
2021-01-10Hotdoc: use template for Commands.md instead of generating the entire file ↵Eli Schwartz4-102/+38
(#8154) * doc: fix hotdoc misuse for dynamically generated content hotdoc has a native include feature for including files inline. Use this to generate one file for each dynamically generated code block, and include that file in Commands.md; see: https://hotdoc.github.io/syntax-extensions.html#smart-file-inclusion-syntax This permits us to move back to using the in-tree version of the hotdoc *.md sources, thus fixing the incorrect inclusion of "builddir/" in the "Edit on github" links which resulted from using copies as the source. Fixes #8061 * doc: call the dummy file a "stamp" as it is a better known term
2021-01-09ci: Run github workflows on stable branches tooNirbheek Chauhan2-0/+4