aboutsummaryrefslogtreecommitdiff
path: root/test cases
AgeCommit message (Collapse)AuthorFilesLines
2021-05-27test cases: Disable whole archive test on older VS IDEChun-wei Fan1-0/+4
The pre-2015 Visual Studio IDE do not handle things correctly for this test, so disable this.
2021-05-27MSVC: Always enable common tests 137 and 170Chun-wei Fan2-15/+0
This will test the "whole archive" and "generator link whole" for all Visual C++ versions.
2021-05-23Handle macOS filesystem sometimes setting lower digits to zero.Jussi Pakkanen1-1/+15
2021-05-23Rename VERSION because case insensitive file systems are a thing.Jussi Pakkanen2-1/+1
2021-05-21Fix LTO test on CygwinJon Turney3-6/+15
This partially reverts commit add502c6483bde9dc6a0ba80b3c79163304465a4. In 'linkshared' test, annotate cppfunc() as imported, so an indirection through an import stub is generated, avoiding a relocation size error when building using gcc for Cygwin with LTO on. Align with the example of how to write this portably in [1]. The 'c' language part of that test already gets this right. [1] http://gcc.gnu.org/wiki/Visibility
2021-05-20Revert "Disable failing Cygwin GIR test."Jon Turney5-20/+0
This partially reverts commit add502c6483bde9dc6a0ba80b3c79163304465a4.
2021-05-20Revert "Disable broken asm test on Cygwin as nobody knows how to fix it."Jon Turney1-4/+0
This reverts commit 56a0e74d711fc050c6574e2da4e2f745da6a56f5.
2021-05-20vala: Test that adding C manually isn't requiuredDylan Baker1-1/+2
2021-05-19interpreter: Automatically add 'c' to languages when 'vala' is usedDylan Baker2-9/+0
This is so dumb, we can just insert C for you without you having to know that you're using C under the hood. This is nicer because: 1) Meson doesn't make the user add a language they're not explicitly using 2) If there was ever an implementaiton of Vala that didn't use C as it's assembly language, this wouldn't make any sense.
2021-05-19.C files are now treated as C++ codeVolker-Weissmann2-0/+13
2021-05-18pkgconfig: Do not escape custom variablesXavier Claessens1-0/+4
We need to escape space in variables that gets into cflags or libs because otherwise we cannot split compiler args when paths contains spaces. But custom variables are unlikely to be path that gets used in cflags/libs, and escaping them cause regression in GStreamer that use space as separator in a list variable.
2021-05-18Add a rust test for internal c linkageDylan Baker5-0/+76
We have code to support this, but no tests. That seems pretty bad. And better yet, it doesn't work on MSVC in some cases.
2021-05-13test:fortran:21: fix Windows by using configure_file(copy:)Michael Hirsch2-2/+2
2021-05-13interpreter: flatten environment() initial valuesXavier Claessens2-1/+5
Turns out listify() flattens by default, but stringlistify() cannot flatten... How do I realize this only now? Fixes: #8727
2021-05-12gnome: Fix gtkdoc generationXavier Claessens8-4/+88
install_scripts used to replace @BUILD_ROOT@ and @SOURCE_ROOT@ but it was not documented and got removed in Meson 0.58.0. gnome.gtkdoc() was relying on that behaviour, but it has always been broken in the case the source or build directory contains spaces. Fix this by changing get_include_args() to substitue paths directly which will then get escaped correctly. Add a unit test that builds GObject documentation which is where this issue has been spotted. Fixes: #8744
2021-05-11Make objective C use C standard version. Closes #5495.Jussi Pakkanen2-2/+2
2021-05-08modules/fs: support FileOrString argumentsFlorian Fischer2-1/+29
With this change File objects created with the builtin files() function can be used with the fs submodule like normal strings. All methods that seem reasonable support FileOrSting arguments. For example fs.exists() still only takes str arguments because meson already ensures that File objects do exist when creating them with files(). Each user facing function of the fs module has an additional FeatureNew check when used with File objects. The test cases for fs are extended appropriately with tests for File objects.
2021-05-08test cases: Add test ensuring that -include in gcc won't break pchMarco Trevisan (Treviño)4-0/+36
This is just forcing the usage of -include as c_args, even though this particular case can happen easily when this is provided via a dependency cflags. We also ensure that both the headers are included by using locale definitions.
2021-04-26Condense test directory names.Jussi Pakkanen1230-0/+0
2021-04-26introspection: export all sources for custom targetsJason Francis1-3/+8
Also adds some test cases for source files in target_sources.
2021-04-26store the list of initializes subprojects in the coredata structureDylan Baker2-0/+5
We need to konw on rconfigure which options have already bee set not just for the super project, but also for the subproject. However, using first_invocation is not sufficient, as a reconfigure could add a new subpproject that wasn't present before, and we need to initialize that project's builtins.
2021-04-26Interpreter: Fallback when required is false but forcefallback is trueXavier Claessens2-0/+11
2021-04-26Merge if and else tests to a single project.Jussi Pakkanen3-12/+12
2021-04-25Xcode: make Swift projects work.Jussi Pakkanen2-1/+1
2021-04-24Xcode: some more skips.Jussi Pakkanen1-0/+5
2021-04-24Xcode: fix linking to customtargetindex objects.Jussi Pakkanen3-12/+30
2021-04-23Xcode: one more skip.Jussi Pakkanen1-0/+4
2021-04-23Xcode: a few more skips.Jussi Pakkanen2-0/+8
2021-04-23Xcode: skip one more object extraction test.Jussi Pakkanen1-0/+12
2021-04-22Xcode: use native path naming scheme.Jussi Pakkanen1-1/+6
2021-04-22Xcode: skip link language override test.Jussi Pakkanen1-0/+10
2021-04-21Xcode: one more whole-archive skip.Jussi Pakkanen1-0/+4
2021-04-20Xcode: fix file objects in various places.Jussi Pakkanen1-0/+4
2021-04-20Xcode: skip all-object library test.Jussi Pakkanen1-0/+4
2021-04-19Xcode: disable asm and LLVM ir projects.Jussi Pakkanen4-0/+17
2021-04-19pkgconfig: Add support for CustomTarget objects in generatorXavier Claessens2-1/+22
Fixes: #8618.
2021-04-18Xcode: skip object extraction test that can not be made to work.Jussi Pakkanen1-0/+12
2021-04-14Xcode: fix path of extracted objects in subdirs.Jussi Pakkanen1-1/+1
2021-04-12dependency: Add JDK system dependencyTristan Partin7-0/+105
The JDK system dependency is important for detecting JDK include paths that may be useful when developing a JNI interface.
2021-04-09Add global_source/build_root()Xavier Claessens2-2/+5
2021-04-08Fix Xcode targets in subdirs.Jussi Pakkanen1-1/+2
2021-03-29Do not add custom target dir automatically when implicit false.Jussi Pakkanen6-0/+43
2021-03-28Strip host-compiler -std flag from NVCC line.cudafix0572Olexa Bilaniuk2-0/+24
Closes #8523.
2021-03-26pkgconfig: Allow setting prefix in dataonly pc fileXavier Claessens1-1/+6
Some variables are reserved because meson set them automatically. But we are not setting them for dataonly pc files, so there is no reason to reserve them. Fixes: #8583.
2021-03-24Merge pull request #8568 from dcbaker/submit/qt-dependency-factoryJussi Pakkanen1-0/+11
QT: use a proper dependency factory
2021-03-24Merge pull request #8571 from xclaesse/spurious-warningJussi Pakkanen3-2/+8
Fix spurious sandbox violation warning
2021-03-24compilers: clang-cl: Also accept .s files (#8520)D Scott Phillips5-5/+29
* compilers: clang-cl: Also accept .s files clang-cl has support for gas-compatible assembly files. * Add clang-cl to '128 generated assembly' test
2021-03-23Refactor Qt Dependency into proper split classes with factoriesDylan Baker1-0/+11
Currently the Qt Dependencies still use the old "combined" method for dependencies with multiple ways to be found. This is problematic as it means that `get_variable()` and friends don't work, as the dependency can't implement any of those methods. The correct solution is to make use of multiple Dependency instances, and a factory to tie them together. This does that. To handle QMake, I've leveraged the existing config-tool mechanism, which allows us to save a good deal of code, and use well tested code instead of rolling more of our own code. The one thing this doesn't do, but we probably should, is expose the macOS ExtraFrameworks directly, instead of forcing them to be found through QMake. That is a problem for another series, and someone who cares more about macOS than I do.
2021-03-23interpreter: Fix spurious warning in include_directories()Xavier Claessens3-2/+8
When doing include_directories('.') at the root of the subproject we should not warn about sandboxing violation.
2021-03-23environment(): Allow stacking append() and prepend() (#8547)Xavier Claessens4-21/+12
* environment(): Allow stacking append() and prepend() * Update docs/markdown/Reference-manual.md Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com> Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>