aboutsummaryrefslogtreecommitdiff
path: root/test cases
AgeCommit message (Collapse)AuthorFilesLines
2020-03-19tests/mpi: Add a method optionDylan Baker2-4/+12
So we can force the use of pkg-config or config-tool
2020-03-19cmake: Add find_package COMPONETS supportDaniel Mensinger2-3/+7
2020-03-19Merge pull request #6789 from dcbaker/deprecated-c-ldJussi Pakkanen1-0/+4
Make linker selection environment variables match docs
2020-03-19Use os.path.normpath() for include pathsClausKlein1-1/+1
This make relative pathes shorter an too give a chance to de-duplicate -isystem flags just like -I flags. Fix common test case 203 for OSX build host too
2020-03-17docs: Add Environment variables for compiler/linker selectionDylan Baker1-0/+4
We really should be documenting these in an easy to find and reference place.
2020-03-12Merge pull request #6356 from dcbaker/fix-d-compiler-abstractionsJussi Pakkanen11-35/+90
Fix d compiler abstractions
2020-03-11compilers: Don't put split soname args in start groupsDylan Baker4-1/+42
Some compilers that act as linker drivers (dmd and ldc) need to split arguments that GCC combines with , (ie, -Wl,-foo,bar -> -L=-foo -L=bar). As such we need to detect that the previous argument contained -soname, and not wrap that in a --start-group/--end-group This modifies the shared library test to demonstrate the problem, with a test case. Fixes #6359
2020-03-11coredata: Set default options as cmdline args that override each otherNirbheek Chauhan1-1/+1
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-09project_tests: Add the option to the test format to mark the languageDylan Baker7-15/+15
This is needed when mixing D and C code, as it's possible to end up witha combination of linkers and compilres such that C produces pdb files but D does not.
2020-03-09tests: Add pdb files for d testsDylan Baker7-8/+22
2020-03-09project_tests: Add "version" to "shared_lib" and "pdb" typesDylan Baker2-21/+21
This allows the harness to apply the version correctly, putting it in the right place, dropping the right amount of numbers, etc. pdb taking a version allows it to be more easily copied from the shared_lib type.
2020-03-09Merge pull request #6532 from jon-turney/languages-native-kwargJussi Pakkanen6-0/+25
Add add_languages(native:)
2020-03-08cmake: Fix build_by_default: false, install: true (fixes #6737)Daniel Mensinger2-2/+6
2020-03-08Merge pull request #6688 from dcbaker/emcc-linker-bugsJussi Pakkanen5-1/+53
Emcc linker bugs and improvments
2020-03-08qt5: Add has_tools() methodXavier Claessens1-0/+1
2020-03-07Merge pull request #6203 from xclaesse/override-dependencyJussi Pakkanen10-9/+66
Add meson.override_dependency()
2020-03-06dependency: Verify fallback variable consistencyXavier Claessens6-3/+27
This change made `5 dependency versions` unit test fail because now once a subproject has been configured, the fallback variable is checked to be consistent. So it has to use new subproject because 'somesub' was already configured by previous tests.
2020-03-06Allow override_dependency() with a not-found depXavier Claessens2-0/+5
2020-03-06Simplify dependency() fallbackXavier Claessens2-0/+7
Now that subprojects can override the dependency name, there is no need to provide a variable name for the fallback any more.
2020-03-06Add meson.override_dependency()Xavier Claessens4-7/+28
Similar to meson.override_find_program() but overrides the result of the dependency() function. Also ensure that dependency() always returns the same result when looking for the same dependency, this fixes cases where parts of the project could be using a system library and other parts use the library provided by a subproject.
2020-03-06project_tests: Add a "shared_lib" typeDylan Baker2-4/+4
This allows fixing tests that produce .dylib's on macOS and .so's on elf Unices.
2020-03-06ast: Implement dummy evaluate_notstatementDaniel Mensinger1-0/+1
2020-03-04interpreter: add 'name' method to BuildTargetHolderStéphane Cerveau2-2/+2
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-01Merge pull request #6692 from xclaesse/summary-warningsJussi Pakkanen1-0/+1
Summary improvements
2020-03-01Merge pull request #6627 from jon-turney/cwd-relative-file-locationsJussi Pakkanen4-0/+5
Consistently report file locations relative to cwd
2020-02-29Fix re-building test '127 custom target directory install' with VS backendJon Turney1-1/+4
Running the build step of test '127 custom target directory install' again, using the VS backend, causes 'docgen.py' to try to create the target directory again (which fails with a FileNotFound exception). I'm guessing that perhaps this is a shortcoming of the VS backend that it doesn't correctly give this target a dependency on the directory. I'm not sure that this test is actually valid meson: the reference manual says custom_target(output:) should be a list of files, and not a directory, as is this case here.
2020-02-29Test host_machine is correctly detected after add_languages()Jon Turney1-1/+2
Test that the host_machine is correctly detected after add_languages(), when no langauge is initially specified in project(). In the MSYS2 MSYSTEM=MINGW32 environment (64-bit MSYS2 but with a i686-w64-mingw32 targeted gcc as gcc) this test fails, as it (incorrectly) tries to build retval-x86_64.S using an x86 compiler.
2020-02-29Merge pull request #6707 from jon-turney/bogus-failing-testsJussi Pakkanen8-9/+5
Fix various failing-meson tests
2020-02-29Merge pull request #6666 from mensinda/testRefactorJussi Pakkanen153-876/+1180
Refactor run_projectests.py
2020-02-28Add failing test of parser error in options fileJon Turney2-0/+2
2020-02-28Add failing test of parser error in subdirJon Turney2-0/+3
2020-02-28Fix framework version failing testJon Turney1-1/+1
This test was never testing what it claimed to test, simply failing with "ERROR: No C-like compilers are available, cannot find the framework" because a C-like language is missing from project().
2020-02-28Remove exact version constraint from dub failing-meson testsJon Turney3-3/+3
These are always failing just because the exact version constraint isn't satisfied, e.g. "ERROR: Meson version is 0.53.999 but project requires 0.48.0"
2020-02-28Remove invalid escape char failing testJon Turney1-4/+0
This test was never testing what it claimed to test, simply failing with 'ERROR: First statement must be a call to project' because it's missing project(). Since #5279, all unrecognized escape sequences are literal, so I don't think there's anything to test here.
2020-02-28Fix invalid and non-existent manfile extension testsJon Turney2-0/+0
Currently they are just failing trying to install a non-existent file.
2020-02-28Update test case to use run_target(command:)Jon Turney1-1/+1
Currently this test is just failing due to an unexpected positional argument, as the (deprecated) keywordless run_target() was removed in 0.45.0
2020-02-27compilers/mixins/emscripten: Implement thread supportDylan Baker3-0/+44
Emscripten has pthread support (as well as C++ threads), but we don't currently implement them. This fixes that by adding the necessary code. The one thing I'm not sure about is setting the pool size. The docs suggest that you really want to do this to ensure that your code works correctly, but the number should really be configurable, not sure how to set that. Fixes #6684
2020-02-27tests/wasm: Add C language as well as C++ language to testDylan Baker2-1/+9
2020-02-27Fix 'linuxlike/14 static dynamic linkage' test on CygwinJon Turney1-1/+1
Update the expected output from nm to match changes in binutils 2.34.
2020-02-26test: replace pass_* functions with a test.json entryDaniel Mensinger4-2/+10
2020-02-26summary: Add list_sep keyword argumentXavier Claessens1-0/+1
This allows having lists on a single line instead of having each value aligned on a new line.
2020-02-25test: merge installed_files.txt into test.jsonDaniel Mensinger141-837/+1117
2020-02-25test: realise test_args.txt with a test matrixDaniel Mensinger4-8/+18
2020-02-25test: merge test_matrix.json and setup_env.json into test.jsonDaniel Mensinger6-31/+37
2020-02-23Merge pull request #6637 from ↵Jussi Pakkanen1-1/+1
mesonbuild/nirbheek/implement-symbolextractor-windows Implement symbolextractor on windows + some cleanups/fixes
2020-02-23Merge pull request #6602 from mensinda/depBoostJussi Pakkanen4-26/+37
boost: System dependency rewrite
2020-02-23Merge pull request #6635 from mensinda/cmOTMFixJussi Pakkanen8-6/+58
cmake: Fix dependency loops in custom targets (fixes #6632)
2020-02-22tests: Ensure that executable and library are named differentlyNirbheek Chauhan1-1/+1
On Windows, the basename is used to determine the name of the PDB file. So for a project called myproject, we will create myproject.dll and myproject.exe, both of which will have myproject.pdb. This is a file collision. Instead, append `_test`, similar to the C# template. Fixes AllPlatformTest.test_templates on MSVC. This became a hard error when we started listing PDBs in the implicit outputs list of ninja targets. Do the same for a test that was making the same mistake.
2020-02-20Introduce dataonly for the pkgconfig moduleRohan Garg2-0/+8
This allows users to disable writing out the inbuilt variables to the pkg-config file as they might actualy not be required. One reason to have this is for architecture-independent pkg-config files in projects which also have architecture-dependent outputs. For example : https://gitlab.freedesktop.org/wayland/weston/issues/269 Fixes #4011
2020-02-20boost: Updated testsDaniel Mensinger4-26/+37