summaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)Author
2021-10-08add install_emptydir functionEli Schwartz
This replaces the absolute hack of using ``` install_subdir('nonexisting', install_dir: 'share') ``` which requires you to make sure you don't accidentally or deliberately have a completely different directory with the same name in your source tree that is full of files you don't want installed. It also avoids splitting the name in two and listing them in the wrong order. You can also set the install mode of each directory component by listing them one at a time in order, and in fact create nested structures at all. Fixes #1604 Properly fixes #2904
2021-09-30syntax-highlighting: vim: set b:undo_indentDoug Kearns
The b:undo_indent variable gets executed to undo the effects of the options set earlier in the file. Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2021-08-18test runner: add the ability to configure test.json for python pathsEli Schwartz
Adds new installed file types with @VAR@ substitution.
2021-08-16Add unset_variable()Tristan Partin
This should be useful for helping to control variable scope within Meson. CMake has something similar for controlling scope.
2021-08-15editorconfig: add setting to trim trailing whitespaceEli Schwartz
and clean up all outstanding issues Skip 'test cases/common/141 special characters/meson.build' since it intentionally uses trailing newlines.
2021-07-07Allow `skip_*` test.json keys at top-level or in `matrix:`Jon Turney
2021-07-07Add `skip_on_os` to test.jsonJon Turney
2021-07-07Add `skip_on_jobname` to test.jsonJon Turney
Plan to replace the hard-coded list of 'may be skipped' framework tests in skippable() with annotations in test.json which record 'will be skipped in these specific CI jobs'. If the value of the MESON_CI_JOBNAME env var (an arbitrary string expected to be unique for each CI configuration) contains any of the strings in the `skip_on_jobname` key in test.json, the test is expected to output MESON_SKIP_TEST. Unexpected skips or runs are treated as an error. Future work: Maybe we should add additional count categories 'unexpected skip' and 'unexpected not skipped', rather than counting those as 'skipped' and 'failed', respectively.
2021-06-24Fix test.json schema for 'matrix'Jon Turney
I'm not sure what the current schema is describing, but it's not doing anything useful to validate 'matrix' entries, as I discover when I come to add something to that. 'matrix' is a dict with possible keys 'options' and 'exclude'. 'options' is a dict with arbitrary keys, whose's values are arrays Once we describe those dicts correctly, also fix that 'val' keys may be string, boolean or null, and the corresponding 'exclude' keys may be string or boolean. v2: Also allow 'val' and 'exclude' to be an array of strings.
2021-06-23Enforce all dicts with a fixed set of keys in test.json schemaJon Turney
Improve test.json schema to disallow arbitrary keys in all dicts which have a defined set of keys (the 'installed', matrix 'options' and 'stdout' dicts). Add 'count' and 'comment' keys to 'stdout' dict.
2021-06-22coverage: Enable coverage reportsDaniel Mensinger
2021-05-06syntax-highlighting: vim: add myself as a maintainerLiam Beguin
Add myself as a maintainer of these files since I'll be keeping them in sync with the Vim repository. Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2021-05-06syntax-highlighting: vim: fix setting cpoLiam Beguin
Since 'cpo' is global, use `set` instead of `setlocal`. See: b66f0372cc11 Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2021-03-16Add range() functionXavier Claessens
Fixes: #5026.
2021-01-13Fix misspellsAntonin Décimo
Signed-off-by: Antonin Décimo <antonin.decimo@gmail.com>
2020-11-03vim: Drop backwards compatibility with Vim 5.Aman Verma
2020-09-23zsh: Add completions for meson compileDylan Baker
2020-09-23zsh: add completions for subprojectsDylan Baker
2020-09-23zsh: add wrap completionsDylan Baker
This is still missing completions for promote, but I can't figure out how to find the wraps in subprojects that are not in the parent project when those projects haven't been fetched yet.
2020-09-23zsh: add missing arguments to meson test completionsDylan Baker
This also reorders the options internally to match the output of meson test --help, which makes it easier to diff
2020-09-23zsh: Add completions for meson initDylan Baker
2020-09-23zsh: Add completions for meson installDylan Baker
2020-09-22zsh: add meson dist completionsDylan Baker
2020-09-22zsh: Add ability to complete depedency pathsDylan Baker
using , separated syntax
2020-09-22zsh: add missing options for meson introspectDylan Baker
2020-09-22zsh: share common options between meson configure and meson setupDylan Baker
2020-09-22zsh: Add missing options for meson setupDylan Baker
2020-09-22zsh: remove binaries that are not longer installedDylan Baker
2020-08-27test: Add 'dir' support for installed files in test.jsonDaniel Mensinger
This is useful for automatically generated docs (doxygen, hotdoc) with a lot of generated files that may differ with different versions of the generator.
2020-08-08completions/zsh: Add --native-fileDylan Baker
Which is missing
2020-07-22vim: Syntax-highlight continue and break statementsNirbheek Chauhan
2020-06-21mcompile: Add --verbose modeIgor Raits
Closes: https://github.com/mesonbuild/meson/issues/7352 Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
2020-06-15macros.meson: Switch to meson compile / installIgor Raits
Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
2020-06-15macros.meson: Switch to %{_smp_build_ncpus}Igor Raits
It is available since RPM 4.15 which has been around 1 year by now. Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
2020-04-30Update test.json schema to add stdoutJon Turney
Update the test.json schema, adding the 'stdout' property. Also amend the test.json schema so the presence of an unexpected property on the root object causes a validation error. v2: Also add 'tools' property to json schema. Amend the documentation not to use the word 'list' to describe a dict.
2020-04-23mtest: Generate a JUnit xml result fileDylan Baker
JUnit is pretty ubiquitous, lots of services and results viewers understand it, in particular gitlab and jenkins know how to consume JUnit xml. This means projects using CI services can have their test results consumed automatically. Fixes: #6972
2020-04-17Add a json schema for the test.json used in testsDylan Baker
This does a couple of nice things, one is that editors like vscode can be configured to use this schema to provide auto completion and error highlighting if invalid values are added or required values are missing. It also allows us test that the format of the test matrix work in a unit test, which I've added. It does require that the python jsonschema package is installed.
2020-03-12syntax-highlighting/vim: Add `in` as an operatorNirbheek Chauhan
This was missed. Ages ago.
2020-01-14Add .wrap file syntax detection for vimLuke Drummond
wrap files are ini syntax, and vim has support for this via the `dosini` syntax type [skip ci]
2019-12-12Add a summary() function for configuration summarizationXavier Claessens
Based on patch from Dylan Baker. Fixes #757
2019-11-07syntax-highlighting: vim: fix setting cpo [skip ci]Liam Beguin
since 'cpo' is global, use `set` instead of `setlocal`. Reported-By: Bram Moolenaar <Bram@vim.org> Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2019-10-18syntax-highlighting: vim: add license header [skip ci]Liam Beguin
Add a license header before getting them in the Vim runtime.
2019-10-14syntax-highlighting: vim: set comment stringLiam Beguin
Vim can automatically comment and format comments. Set the necessary variable to enable that feature. See `:help format-comments` for more information.
2019-08-12Add is_disabler functionJames Hilliard
This is useful if one needs to check if a variable is a disabler. Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
2019-07-10Add alias_target() functionXavier Claessens
2019-04-28RPM Macros: Use `meson test` for %meson_testStephen Gallagher
Previously, this called out to the %ninja_test macro to run the tests, but that limits us to only the arguments that ninja can understand. In particular, it is not possible to add a test timeout multiplier (such as is sometimes needed when building for slow architectures such as armv7hl). With this patch, it will be possible to specify `%meson_test -t 5` in the RPM spec file without needing to patch the sources to extend the timeouts, making life easier for packagers. Related: https://github.com/mesonbuild/meson/issues/2037 Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2019-04-08Revert "rpm: Always set b_ndebug to true"Igor Gnatenko
It turned out that it is not really good idea. This reverts commit da1bb49787b2f65ca3a4c3c3fb0d9eda822f3275. Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2019-03-26rpm: Always set b_ndebug to trueIgor Gnatenko
'if-release' does not catch buildtype=plain, so we need to do this. Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2019-03-08bash/zsh: drop completion for deprecated commandEric Engestrom
2019-02-20zsh: complete targetsEric Engestrom