Commit Graph

11 Commits

Author SHA1 Message Date
Nirbheek Chauhan c7aa4c8861 coredata: Set default options as cmdline args that override each other
The previous code was assuming that options do not depend on each
other, and that you can set defaults using `dict.setdefault()`. This
is not true for `buildtype` + `optimization`/`debug`, so we add
defaults + overrides in the right order and use the options parsing
code later to compute the values.

Includes a test.

Closes https://github.com/mesonbuild/meson/issues/6752
2020-03-11 07:11:59 -04:00
Stéphane Cerveau a46f0a6202 interpreter: add 'name' method to BuildTargetHolder
As any child of BuildTargetHolder might need the name of the object,
provides a method to get object name.
This is useful in gst-build to display the plugin name and not
the filename.
2020-03-04 13:49:01 -05:00
Michael Hirsch, Ph.D 5478397c59 tests/1common: update meson_version>=0.52 for is_disabler
since 0.52 is indeed now required for this test case.
2019-10-18 00:44:27 +03:00
James Hilliard b21fd95f73 Add is_disabler function
This is useful if one needs to check if a variable is a disabler.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
2019-08-12 01:05:45 +03:00
Dylan Baker 28aac9fc3b test cases: Add ICL branches in addition to ICC branches 2019-05-10 13:36:35 -07:00
FredericHamel 6f4e5e96d8 Allow test to depend on executable target in cross build. (#2007)
* Add a crossbuild case in 'test case/common/1 trivial/meson.build'

* Add native flags for crossbuild tests.
2017-07-20 12:25:59 +03:00
Nirbheek Chauhan 731aca216e icc: Fix C/C++ std options and add a unit test for them
Compiler versions 15.0 and later actually ignore invalid values for the
-std= option unless `-diag-error 10159` is passed, so we need to put
that in the unit test.

I have tested this with versions 14.0.3, 15.0.6, 16.0.4, and 17.0.1.
Would be great if someone could test with 13.x.y
2017-01-04 00:40:54 +05:30
Nirbheek Chauhan 4990dd197c Test arrays in languages for the project() method
This broke in 6590b7221e and we didn't
have a test for it.
2016-10-07 18:33:37 +05:30
Jussi Pakkanen c5788548d2 Can check for Meson version in project definition. 2015-10-15 21:18:39 +03:00
Jussi Pakkanen d4284aae89 Renamed add_test to test. 2013-06-02 13:18:15 +03:00
Jussi Pakkanen 9262fe600a Split test suite into common and platform dependent parts. 2013-03-03 20:05:04 +02:00