aboutsummaryrefslogtreecommitdiff
path: root/test cases
AgeCommit message (Collapse)AuthorFilesLines
2020-04-12cmake: Fix custom command CMake list issueDaniel Mensinger1-0/+6
2020-04-11opts: Allow `-` and `not` in meson_options.txt (fixes #6948)Daniel Mensinger2-2/+7
2020-04-11Handle BuildTarget as custom_target() argument #6914Marc-André Lureau2-0/+17
2020-04-11Extend test to cover using library(name_prefix: []) for defaultJon Turney2-1/+7
Also test library(name_suffix: [])
2020-04-05Rename test dir names with dircondenser.py.Jussi Pakkanen65-0/+0
2020-04-05quality / test: Fortran type hintingMichael Hirsch, Ph.D2-0/+22
enhance fortran args tests
2020-04-04Make cc.has_function work on GCC/Clang __builtinsAndrei Alexeyev1-0/+8
2020-04-04Merge pull request #6843 from mensinda/ciJSONSCHEMAJussi Pakkanen2-2/+11
CI: Maintain docker images with GitHub Actions
2020-04-04mparser: fix precedence of arithmetic operatorsAndrei Alexeyev1-0/+8
The arithmetic operators are now split into two groups: * The add/sub group: +, - * The mul/div group: *, /, % All operators within the same group are left-associative and have equal precedence. The mul/div group has a higher precedence than the add/sub group, as one would expect. Previously every operator had a different precedence and was right-associative, which resulted in surprising behavior. This is a potentially breaking change for projects that relied on the old incorrect behavior. Fixes #6870
2020-04-02boost: make python2 optionalDaniel Mensinger1-2/+2
2020-04-02ci: Skip dub compiler test on SINGLE_DUB_COMPILERDaniel Mensinger1-0/+9
2020-04-01boost: Fix boost_python detection on bionic (fixes #6886 #4788)Daniel Mensinger1-1/+1
2020-03-29Add a failing test for missing glib-compile-resourcesJon Turney2-0/+11
2020-03-29cmake: Only expand executable targets in COMMAND (fixes #6857)Daniel Mensinger1-0/+4
2020-03-28boost: Better python module detectionDaniel Mensinger1-16/+2
2020-03-24Make werror per subproject optionXavier Claessens3-2/+12
2020-03-20Merge pull request #6544 from dcbaker/mpi-dependency-factoryJussi Pakkanen2-4/+12
Use DependencyFactory and ConfigToolDependency for MPI
2020-03-20Merge pull request #6636 from jon-turney/machine-detection-problemsJussi Pakkanen2-2/+6
Redetect machines when languages change
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().