aboutsummaryrefslogtreecommitdiff
path: root/test cases
AgeCommit message (Collapse)AuthorFilesLines
2020-05-02Merge pull request #6838 from dcbaker/link-language-in-librariesJussi Pakkanen5-0/+43
Link language in libraries
2020-05-01boost: Only use usage-requirements defines (fixes #7046)Daniel Mensinger1-1/+1
2020-04-30Allow get_variable to still function when the fallback is a disabler.James Hilliard1-0/+28
2020-04-30Add expected stdout for failing-meson and warning-meson testsJon Turney97-10/+722
Initially produced using: for d in "test cases/failing/"* ; do rm -r _build ; ./meson.py setup "$d" _build | grep ERROR >"$d"/expected_stdout.txt; done then converted to json with jq using: jq --raw-input --slurp 'split("\n") | {stdout: map({line: select(. != "")})}' expected_stdout.txt >test.json or merged with existing json using: jq --slurp '.[0] + .[1]' test.json expected.json >test.json.new v2: Add some comments to explain the match when it isn't totally obvious v3: Add or adjust existing re: in expected output to handle '/' or '\' path separators appearing in message, not location. v4: Put expected stdout in test.json, rather than a separate expected_stdout.txt file Park comments in an unused 'comments' key, as JSON doesn't have a syntax for comments
2020-04-30Skip failing tests when they won't fail in the expected wayJon Turney14-11/+60
2020-04-30interpreter: Add link_language to all build targetsDylan Baker2-0/+11
If the feature hadn't been broken in the first place it would have worked on them anyway, so we might as well expose it. I'm loathe to do it because one of the best features of meson in a mixed C/C++ code base is that meson figures out the right linker every time, but there are cases people have where they want to force a linker. We'll let them keep the pieces.
2020-04-30tests: Add common test for link_languageDylan Baker4-0/+32
It's cool we have a fortran test, but we should have a C/C++ test, especially for C++ extern "C".
2020-04-30allow postconf and dist scripts to use Files, ExternalPrograms, andDylan Baker2-1/+7
ConfigureFiles These things are all known to be ready when these scripts are run, and thus they can safely consume them.
2020-04-30interpreter: Allow install_script to use additional input typesDylan Baker9-7/+115
This adds support for Files, CustomTarget, Indexs of CustomTargets, ConfigureFiles, ExternalPrograms, and Executables. Fixes: #1234 Fixes: #3552 Fixes: #6175
2020-04-28tests: Skip hotdoc test if hotdoc is not installedDaniel Mensinger1-1/+4
2020-04-28tests: Add support for specifying tool requirementsDaniel Mensinger2-2/+8
Adds the `tools` section to `tests.json` to specify requirements for the tools in the environment. All tests that fail at least one tool requirements check are skipped.
2020-04-28tests: Avoid a CMake error by checking the CMake versionDaniel Mensinger2-7/+18
2020-04-28find_program: Fixes when the program has been overridden by executableXavier Claessens2-2/+8
- ExternalProgramHolder has path() method while CustomTargetHolder and BuildTargetHolder have full_path(). - The returned ExternalProgramHolder's path() method was broken, because build.Executable object has no get_path() method, it needs the backend. - find_program('overridden_prog', version : '>=1.0') was broken because it needs to execute the exe that is not yet built. Now assume the program has the (sub)project version. - If the version check fails, interpreter uses ExternalProgramHolder.get_name() for the error message but build.Executable does not implement get_name() method.
2020-04-25wrap: Add test case for local source / patch filesDaniel Mensinger12-8/+30
2020-04-21Merge pull request #6816 from dcbaker/framework-matrixJussi Pakkanen4-17/+37
project test junit schema + a few more uses
2020-04-17interpreter: Correctly ignore def files in build directoryXavier Claessens2-0/+16
See https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/85.
2020-04-17tests: Convert sdl2 to use a matrix optionDylan Baker3-17/+22
2020-04-17tests: use a json matrix for MPIDylan Baker1-0/+15
This is a nice way to ensure that all of the methods continue to work
2020-04-17cmake: Do not compile explicit header filesDaniel Mensinger10-0/+118
2020-04-17tests/common/203: Use a test matrixDylan Baker3-24/+41
This allows us to test the one at a time, and the many at a time functions without the second test getting cached. We really don't want to get cached.
2020-04-17tests/common/93: Fix cross building when no exe_wrapper is availableDylan Baker1-1/+13
By building the generator for the build machine always, and only for the host machine if an exe_wrapper is available. This makes sense to me as generally you are going to build the generator for the build machine, not the host machine, but testing on the host machine makes sense too.
2020-04-12Merge pull request #6963 from mensinda/cmFixCCmdJussi Pakkanen2-0/+19
cmake: some fixes for add_custom_command
2020-04-12Merge pull request #6958 from jon-turney/fix-name-prefix-explicit-defaultJussi Pakkanen2-1/+7
Fix library(name_prefix: [])
2020-04-12cmake: Preserve include directory order (fixes #6959)Daniel Mensinger19-0/+134
2020-04-12cmake: Capture stdout with UNIX pipesDaniel Mensinger2-0/+13
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