aboutsummaryrefslogtreecommitdiff
path: root/test cases
AgeCommit message (Collapse)AuthorFilesLines
2019-05-10tests: Add test for Dependency.get_variableDylan Baker1-0/+52
2019-05-09add support for "target_type: 'shared_module'" in build_target()Daniel Eklöf4-0/+23
2019-05-09Better detection of tab indentation.Jussi Pakkanen1-9/+9
"But surely nobody would indent by having spaces first, and tabs after that. Right? Right?"
2019-05-05add -fno-exceptions if cpp_eh=none is specified nicole mazzuca1-7/+4
2019-05-05Fix an assertion exception when misusing install_dataJon Turney3-0/+25
* Failing test case for trying to install_data a custom_target * Validate install_data() arguments are either string or file
2019-05-03cmake: LLVM better modules handlingDaniel Mensinger1-1/+1
2019-05-03LLVM: Added CMake backendDaniel Mensinger2-2/+2
2019-05-02Merge pull request #5254 from dcbaker/fix-sub-dependenciesDylan Baker3-3/+3
Fix sub dependencies
2019-05-02per-target manual specification of link_languageMichael Hirsch, Ph.D3-0/+30
2019-05-02tests: Extend tests that use Threads internally to set methodDylan Baker3-3/+3
It turns out there's a bug in creating a sub dependency out of threads in that we pass all of the kwargs from the parent to the ThreadDependency instance. This demonstrates the bug.
2019-05-02Merge pull request #5161 from TheQwertiest/feature/custom_target_linkJussi Pakkanen7-0/+291
Can link against custom_target[i]
2019-05-02mtest: check for an empty suite listPeter Hutterer3-0/+12
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-05-02Non-required appleframework deps should not be an error. Closes #5295.Jussi Pakkanen1-0/+3
2019-04-29Added additional tests for linking with custom_target[i]TheQwertiest6-0/+269
2019-04-29Added tests for custom_target[i]TheQwertiest1-0/+22
2019-04-28consistent invalid escape sequence behaviourJon Turney1-0/+14
* docs: document unrecognized escape sequence behaviour [skip ci] Document that unrecognized escape sequence behaviour is like python, not C. * Don't try to decode invalid hex escape sequences Don't try to decode escape sequences which should contain a sequence of hex digits, but don't, throwing a python exception. These will treated literally instead. * Extend test case to cover invalid escape sequences
2019-04-23ast: Improved test caseDaniel Mensinger1-12/+4
2019-04-23ast: Make sure to avoid infinite recursionsDaniel Mensinger1-0/+14
2019-04-23ast: support elementary object methodsDaniel Mensinger1-3/+2
2019-04-23ast: resolve simple arithmetic nodesDaniel Mensinger1-1/+4
2019-04-23ast: resolve ID nodes in flatten_argsDaniel Mensinger1-1/+3
2019-04-22Remove extra directory in failing testJon Turney1-0/+0
So it failing tests what it claims, rather than that an directory without a meson.build fails...
2019-04-22i18n: add args keyword to merge_fileKonstantin6-3/+42
* i18n: add args keyword to merge_file * i18n: add testcase to msgfmt args
2019-04-21Merge pull request #5289 from mesonbuild/fixxpassJussi Pakkanen4-9/+29
Report xpass results as failures.
2019-04-21Make it work on Cygwin.Jussi Pakkanen2-9/+24
2019-04-21Report xpass results as failures.Jussi Pakkanen2-0/+5
2019-04-18Add a test case for dependency(method:'config-tool') with an unknown nameJon Turney1-0/+2
This failed with an exception with 0.49. Fixed by c0166355, but add a test case to ensure it doesn't regress.
2019-04-15gpgme dependency: verify that pkg-config works on newer gpgmeEli Schwartz1-0/+6
If the detected gpgme version is recent enough to match the version in which upstream pkg-config files were added, assert that the default found dependency is of the pkgconfig type.
2019-04-13interpreter: Warn when environment() ops are overridenNirbheek Chauhan2-0/+21
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 Mensinger1-0/+3
2019-04-13TST: Actually check that postconf introspection works.Elliott Sales de Andrade2-1/+19
2019-04-07Merge pull request #4931 from dcbaker/pkg-config-builtinNirbheek Chauhan2-0/+10
dependencies: Add command line option for pkg_config_path
2019-04-06Add gpgme-config supportJan Tojnar2-0/+29
GPGME does not support pkg-config so we need config-tool support if we do not want projects like Almanah and Seahorse to parse the values manually.
2019-04-05dependencies: Add command line option for pkg_config_pathDylan Baker2-0/+10
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-05BUGFIX: Microsoft MPI is only compatible with Intel FortranMichael Hirsch, Ph.D3-44/+38
2019-04-04Merge pull request #5205 from dcbaker/python-module-logJussi Pakkanen1-1/+1
Python module log which python is found
2019-04-03modules/python: Report program found in find_installation()Dylan Baker1-1/+1
Currently find_installation is silent, which is pretty annoying. Let's log it.
2019-04-02Merge pull request #5197 from mensinda/introDepBugFixJussi Pakkanen2-1/+9
mintro: Fix crash when required is a function (closes #5177)
2019-04-02Fix 'failing/85 gtest dependency with version' test to fail on ArchJon Turney1-1/+1
If gtest is patched to have a pkg-config file, that will report the version, so force the 'system' method to be used when we are exercising that an unknown version doesn't satisfy any version constraint.
2019-04-02mintro: fix some interpreter crashesDaniel Mensinger2-1/+7
2019-04-02mintro: Fix crash when required is a function (closes #5177)Daniel Mensinger2-0/+2
2019-04-02Merge pull request #5128 from Ericson2314/sanity-check-with-flagsJussi Pakkanen2-2/+2
Sanity check with external args
2019-04-01Use a real linker arg in 'test cases/common/177 initial c_args'John Ericson2-2/+2
`-Dtest_harmless_but_useless_link_arg` won't actually do anything without anything to preprocess, but least it is valid for GCC and MSVC, and won't be caused by anything else.
2019-04-01Merge pull request #5103 from mesonbuild/linkcustomJussi Pakkanen7-55/+114
Can link against custom targets
2019-04-01Also format headers with Clang-Format. Closes #5184.Jussi Pakkanen2-0/+12
2019-03-29tests: modify partial_dependency test to cover a bugDylan Baker1-1/+5
Currently if a dependency is added to declare_dependency, and the top dependency doesn't have an attribute that the subdependency does, it wont be propagated by subdependency.
2019-03-28Support link_whole with custom targets.Jussi Pakkanen1-0/+10
2019-03-25add test case for same-name module+submoduleMichael Hirsch, Ph.D3-9/+6
2019-03-24Fix setup so test suite runs with rustc + MSVC. Closes: 5099Jussi Pakkanen1-2/+8
2019-03-22Disallow add_languages('vala') without 'c'Jon Turney2-1/+4
v2: Exercise add_lanagues('vala') after 'c' in a test case