summaryrefslogtreecommitdiff
path: root/test cases/unit
AgeCommit message (Collapse)Author
2019-12-19summary: Change 'section' to be a kwarg instead of positionalXavier Claessens
Fixes: #6372.
2019-12-12summary: Add bool_yn keyword argumentXavier Claessens
2019-12-12summary: Allow section with no title, and passing key/value separatelyXavier Claessens
2019-12-12Add a summary() function for configuration summarizationXavier Claessens
Based on patch from Dylan Baker. Fixes #757
2019-12-10mintro: Add version key to --scan-dependencies (fixes #6287)Daniel Mensinger
2019-11-18Use strict function prototypesMichael Hirsch, Ph.D
2019-11-13coredata: CmdLineFileParser no longer interpolates strings.Paulo Neves
Previously if a user tried to pass a command line build option that contained a '%' character the command line parser assumed that there was string interpolation to be done. As there is no sense in such a scenario no code provides any input for the interpolation. This then leads to a failure. In this commit we specifically override the defaults in ConfigParser and set interpolation to None, which disables command line build option interpolation. Fixes #6157
2019-11-13Revert "Add `-Wl,-rpath-link` for secondary dependencies"Jussi Pakkanen
This reverts commit 7b9c348102792030859ed0001a51416506a0a092. Closes #6027.
2019-11-06Fix typos found by codespellWolfgang Stöggl
- Typos were found by codespell v1.16.0
2019-10-21Remove duplicated object files in static librariesXavier Claessens
When a static library link_whole to a bunch of other static libraries, we have to extract all their objects recursively. But that could introduce duplicated objects. ar is dumb enough to allow this without error, but once the resulting static library is linked into an executable or shared library, the linker will complain about duplicated symbols.
2019-10-15Add test case to verify identity cross buildsRoss Burton
A build with a cross file should always be identified as a cross build, even if the host and build machine are identical. This was the case in 0.50, regressed in 0.51, and is fixed again in 0.52, so add a test case to ensure it doesn't regress again.
2019-10-01Add clang-tidy target. Closes #2383.Jussi Pakkanen
2019-10-01Recursively include all objects from uninstalled static librariesXavier Claessens
2019-10-01Do not promote to link_whole when an internal library links to anotherXavier Claessens
2019-10-01pkgconfig: Include dependencies of uninstalled static librariesXavier Claessens
2019-10-01pkgconfig: Do not include uninstalled static librariesXavier Claessens
2019-10-01Fix link_with of a static library with an uninstalled static libraryXavier Claessens
2019-10-01Fix link_whole of static librariesXavier Claessens
2019-09-29environment: Support taking values from dictMarc-André Lureau
Related to #5955.
2019-09-08Fix static archives stripping (#5905)David Seifert
* Do not strip static archives Stripping static archives without more fine-grained options (e.g. `-g`) leads to failures such as ld: libfoo.a: error adding symbols: archive has no index; run ranlib to add one because GNU strip removes *every* symbol in a static archive by default. Given that static archives are not final build artifacts (unlike executables and shared libraries), stripping them gains little and only causes more edge case failures. * Gentoo's portage only strips debug information: https://github.com/gentoo/portage/blob/86f211e3a552753eb945670a39c1a3b14c3c3bd1/bin/estrip#L322 * Fedora also only strips debug information: https://github.com/rpm-software-management/rpm/blob/e9c13c6565cf4782d1f73255ee9144dd9bd2aca7/scripts/brp-strip-static-archive#L18 * Debian also only does some very light stripping: https://github.com/Debian/debhelper/blob/72ed1d3261730d56da6afde0ec7f52f32976e04d/dh_strip#L374 Fixes #4138 * Add test case for static archive stripping
2019-09-08Rename 'rpath-link secondary' unit testDavid Seifert
2019-09-06Add `-Wl,-rpath-link` for secondary dependenciesDavid Seifert
2019-09-04mintro: Fix resolving nodes in kwargs (fixes #5884)Daniel Mensinger
2019-08-06Made build. options alias basic ones when native building.Jussi Pakkanen
2019-08-03Condense test directory names.Jussi Pakkanen
2019-07-31mintro: Fix crash related to the sources kwarg (fixes #5741)Daniel Mensinger
2019-07-10Add alias_target() functionXavier Claessens
2019-06-09Make test for identityJohn Ericson
(cherry picked from commit ae6426cd8acfe0ccc5d7958d55edb613b4a5bf01)
2019-06-09Purge `is_cross` and friends without changing user interfacesJohn Ericson
In most cases instead pass `for_machine`, the name of the relevant machines (what compilers target, what targets run on, etc). This allows us to use the cross code path in the native case, deduplicating the code. As one can see, environment got bigger as more information is kept structured there, while ninjabackend got a smaller. Overall a few amount of lines were added, but the hope is what's added is a lot simpler than what's removed.
2019-06-05Add tests for std usage. Closes #5097.Jussi Pakkanen
(cherry picked from commit 27ae70dfaaff1298e68df70098acaa96f7ca748a)
2019-06-05Per machine do 'build.' and '' option prefixesJohn Ericson
See the docs/ changes for details.
2019-05-29dependencies/cmake: correctly handle spaces in variable namesDylan Baker
2019-05-29tests: Test the cmake parser more thuroughlyDylan Baker
It turns out there are bugs, in particular with spaces in variables...
2019-05-27coredata: add cmake_prefix_path optionDylan Baker
2019-05-13ast: fix #5376Daniel Mensinger
2019-05-03LLVM: Added CMake backendDaniel Mensinger
2019-05-02mtest: check for an empty suite listPeter Hutterer
For consistency, it can be useful to have an explicit empty test suite list for a test: test('test-name', binary, suite: []) This currently passes meson but fails when running meson tests: Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mesonbuild/mesonmain.py", line 122, in run return options.run_func(options) File "/usr/lib/python3.7/site-packages/mesonbuild/mtest.py", line 1005, in run return th.doit() File "/usr/lib/python3.7/site-packages/mesonbuild/mtest.py", line 756, in doit self.run_tests(tests) File "/usr/lib/python3.7/site-packages/mesonbuild/mtest.py", line 896, in run_tests visible_name = self.get_pretty_suite(test) File "/usr/lib/python3.7/site-packages/mesonbuild/mtest.py", line 875, in get_pretty_suite rv = TestHarness.split_suite_string(test.suite[0])[0] IndexError: list index out of range Fix it by simply checking for the test suite to be a valid list we can pass on Fixes #5340 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2019-04-23ast: Improved test caseDaniel Mensinger
2019-04-23ast: Make sure to avoid infinite recursionsDaniel Mensinger
2019-04-23ast: support elementary object methodsDaniel Mensinger
2019-04-23ast: resolve simple arithmetic nodesDaniel Mensinger
2019-04-23ast: resolve ID nodes in flatten_argsDaniel Mensinger
2019-04-13interpreter: Warn when environment() ops are overridenNirbheek Chauhan
Warn when someone tries to use append() or prepend() on an env var which already has an operation set on it. People seem to think that multiple append/prepend operations stack, but they don't. Closes https://github.com/mesonbuild/meson/issues/5087
2019-04-13mintro: Fix set_variable plus assign bug (closes #5256)Daniel Mensinger
2019-04-05dependencies: Add command line option for pkg_config_pathDylan Baker
This creates a new command line option to store pkg_config_path into, and store the environment variable into that option. Currently this works like the environment variable, for both cross and native targets.
2019-04-02mintro: fix some interpreter crashesDaniel Mensinger
2019-04-02mintro: Fix crash when required is a function (closes #5177)Daniel Mensinger
2019-04-01Also format headers with Clang-Format. Closes #5184.Jussi Pakkanen
2019-03-20Add test case for multiple cross filesRoss Burton
2019-03-14compilers: Try harder to dedup builtin libsNirbheek Chauhan
Compiler internal libs should always be de-duplicated, no matter what. Closes https://github.com/mesonbuild/meson/issues/2150 Test case is by Bruce Richardson in the issue.