aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-12-30Handle uppercase dependency names in wraps.wrapcaseJussi Pakkanen6-2/+31
2020-12-29cmake: fix -framework dependencies (fixes #8045)Daniel Mensinger3-0/+33
2020-12-29Only do module scanning if C++ version is latest.Jussi Pakkanen1-0/+2
2020-12-29Implement support of dlang -makedeps switch (#8119)Remi Thebault2-3/+32
* Implement support of dlang -makedeps switch Fix #8118 * resolve code review comments
2020-12-28Fix network path output in ninja backend on WindowsSamuel Longchamps1-0/+7
2020-12-28Incorrect source-build directory error when using network paths on WindowsSamuel Longchamps1-2/+5
2020-12-28Merge pull request #8001 from bonzini/mtest-asyncioJussi Pakkanen2-179/+368
mtest: refactor logging and add progress report
2020-12-28Fix missed imports in #7902wereii1-0/+3
2020-12-27mtest: flush progress report before warningPaolo Bonzini1-4/+14
2020-12-27mtest: flush stdout after printing test resultsPaolo Bonzini1-1/+1
Flush after each output line, even if printing to a file, so that each result is immediately visible down a pipeline. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: add progress reportPaolo Bonzini2-1/+116
Add a progress report in the style of "yum". Every second the report prints a different test among the ones that are running. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: merge print_stats and process_test_resultPaolo Bonzini1-7/+5
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: convert console output to TestLoggerPaolo Bonzini1-26/+26
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: convert logfile to TestLoggerPaolo Bonzini1-35/+33
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: convert jsonlogfile to TestLoggerPaolo Bonzini1-20/+27
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: introduce TestLoggerPaolo Bonzini1-10/+28
The TestLogger class lets us move the code for all those log files out of TestHarness. The interface is based on JunitBuilder, which is converted already in this commit. Over the next commits, we will also convert JSON, text and console output. The main difference with JunitBuilder is that the completion method is asynchronous. This can be useful if the logger needs to clean up after itself and wait for asyncio tasks. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: do not use __del__Paolo Bonzini1-8/+8
Use try/finally instead of destructors to ensure that log files are closed. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: remove collected_logsPaolo Bonzini1-25/+33
Just reuse the collected_failures collection now that it contains TestRun objects. Move the code to generate the short form of the log to TestRun. Note that the first line of the error log is not included in get_log()'s return value, so the magic "first four lines are passed unscathed" is changed to three lines only. The resulting output is like this: --- command --- <command line> --- Listing only the last 100 lines from a long log. --- --- stdout --- ... Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: use backslash replace when printing error logsPaolo Bonzini1-1/+1
If there's an UnicodeEncodeError while printing the error logs, TestHarness tries an encode/decode pair to get rid of anything that is not a 7-bit ASCII character; this however results in "?" characters that are not very clear. To make it easier to understand what is going on, use backslashreplace instead. While at it, fix the decode to use a matching encoding. This will only matter in the rare case of sys.stdout.encoding not being an ASCII superset, but that should not matter. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: improve colorizationPaolo Bonzini1-10/+14
Instead of colorizing the whole status line, only colorize the word representing the outcome of the test (SKIP, OK, FAIL, etc.). This is less intrusive, so the patch also does the following changes: - colorize OK and EXPECTEDFAIL, respectively as green and yellow - colorize the summary of failures as well. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: store TestRuns in collected_failuresPaolo Bonzini1-13/+24
Instead of storing the string, store the whole TestRun. In the next patches we'll use this to colorize the summary of failures, and to allow a few more simplifications. There is some code duplication between the console and logfile code, but it won't matter as soon as console and logfile output will be in two completely separate classes. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: add test methods to TestResultPaolo Bonzini1-7/+11
Keep the list of "ok" and "bad" statuses close to the definition of the enum. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: move test_count and name_max_len to TestHarness classPaolo Bonzini1-9/+10
Avoid passing them around as parameters; this will be useful when logging is moved out of TestHarness, because individual loggers will call back into TestHarness to do common formatting chores. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: add name and number to TestRunPaolo Bonzini1-23/+33
Place in TestRun everything that is needed in order to format the result. This avoids passing around the number and visible test name as arguments. Test numbers are assigned the first time they are used. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-27mtest: create TestRun object early onPaolo Bonzini1-47/+52
This will provide a way to pass more information from the TestHarness local variables to the SingleTestRunner and use them outside the run_test function. For example, the name could be used to report progress while the tests are running. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-25Extend the C++ module scanner to handle Fortran, too.Jussi Pakkanen2-54/+177
2020-12-22mdist: Print file path at the end of run() instead of in create_hash().Aman Verma1-1/+1
2020-12-22mdist: Ensure correct format for sha256sum.Aman Verma1-1/+3
We conform to the format described at <https://www.gnu.org/software/coreutils/manual/html_node/md5sum-invocation.html>. and compatible with busybox and Perl's shasum utility.
2020-12-22depfixer: split new rpath into multiple entries for dedup comparisonsAlan Coopersmith1-1/+1
Fixes: #8115 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-12-22linkers: add rpath_dirs_to_remove support to SolarisDynamicLinkerAlan Coopersmith1-1/+6
Applies the changes made to GnuLikeDynamicLinkerMixin by commit d7235c5905fa98207d90f3ad34bf590493498d5b to SolarisDynamicLinker This makes test_build_rpath pass with the Solaris linker, where before this change it failed with: New rpath must not be longer than the old one. Old: $ORIGIN/sub:/foo/bar New: /baz:$ORIGIN/sub:/foo/bar FAILED: meson-install Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-12-22Add simple start page for beginners. [skip ci]Jussi Pakkanen15-0/+170
2020-12-17Revert "add owl chess in Users.md [skip ci]"Eli Schwartz1-1/+0
This reverts commit 7092efabb5a0488b694418c823463048ddbb310c. No longer exists. See: https://github.com/mesonbuild/meson/pull/7592#issuecomment-747817950
2020-12-17environment.py: Detect all mips* architectures (#8108)Persian Prince1-3/+9
* environment.py: Detect all mips* architectures We have more than those values, like: mipsel mipsel-nf mips32el mips33el-nf mipsisa32r6 mipsisa32r6el So lets just detect them all. Sorry I forgot about 64bit and closed https://github.com/mesonbuild/meson/pull/8106 But now it even detects: mipsisa64r6 mipsisa64r6el * Make dcbaker happy
2020-12-16cmake: Revert to using self.for_machine instead of MachineChoice.BUILD ↵Daniel Mensinger4-2/+6
(fixes #8028)
2020-12-16Merge pull request #8103 from dcbaker/submit/module-typing-cleanupsJussi Pakkanen2-77/+156
Fix some layering violations and add some type annotations in the interpreter
2020-12-16mlog: make mlog helper take once keyword argumentDylan Baker1-5/+10
We really want to have this in the log method as well. Fixes: #8002
2020-12-16build/interpreter: Add some type annotationsDylan Baker2-9/+11
2020-12-16interpreter: Use a typing.NamedTuple instead of collections.namedtupleDylan Baker1-6/+34
The former can hold type annotations, unlike the other. It also uses the class syntax, which is easier to read.
2020-12-16build: Use python 3.6 annotation syntax for Build initializerDylan Baker1-10/+10
2020-12-16build: Add annotation for Build.dataDylan Baker1-1/+1
2020-12-16build/interpreter: fix layering violations for ManPagesDylan Baker2-28/+44
Like `install_headers`, `install_man` used the same objects for both the interpreter and the build, this is bad. Let's have two separate objects.
2020-12-16build/interpreter: split representation of HeadersDylan Baker2-24/+57
This was all layering violations before. Now we have Headers in the build module, and a holder in the interpreter. All of the type validation is done in interpreter method for `install_headers`.
2020-12-15Merge pull request #7902 from bonzini/mtest-build-depends-onlyJussi Pakkanen4-29/+91
mtest: only build what is needed for the tests
2020-12-15Fix the subsystem options for lld in mingw modeMartin Storsjö1-15/+12
lld in gnu like mode (e.g. for mingw) needs these options in the same for as gnu ld, thus remove the lld specific code bit and move the code for gnu like options into GnuLikeDynamicLinkerMixin. This unbreaks linking with lld for mingw targets after 2fb4d1f7512a4ec125883fd65115ab33a5b06b6f.
2020-12-15docs: Update link to libspng [skip ci]Jean-Michel Gorius1-1/+1
libspng moved from Gitlab to Github. Update the link to point to the new location.
2020-12-14doc: fix typos for doubled words [skip ci]Eli Schwartz1-2/+2
"more more" is one place where we don't need more. Fixes #8097
2020-12-14Less restrictive get_win_subsystem_args implementationsLaurin-Luis Lehning1-6/+12
2020-12-14Propagate Windows target checks upLaurin-Luis Lehning5-37/+26
2020-12-14Give get_gui_app_args access to the EnvironmentLaurin-Luis Lehning4-8/+9
2020-12-14Slight consistency changes to get_gui_app_argsLaurin-Luis Lehning3-9/+12