aboutsummaryrefslogtreecommitdiff
path: root/test cases
AgeCommit message (Collapse)AuthorFilesLines
2020-02-20cmake: Fix relative paths for add_custom_{command,target}Daniel Mensinger4-2/+15
Do this by tracking CMAKE_CURRENT_{SOURCE,BINARY}_DIR variables. This is achieved by injecting CMake code with CMAKE_PROJECT_INCLUDE and overriding some builtin functions with a wrapper that adds additional trace information.
2020-02-19cmake: Ignore files that violate subproject isolation (fixes #6640)Daniel Mensinger6-0/+66
2020-02-19cmake: traceparser better handle listsDaniel Mensinger1-2/+2
2020-02-19cmake: Fix dependency loops in custom targets (fixes #6632)Daniel Mensinger6-3/+42
2020-02-19modules/cmake: Add a found() method to the cmake subprojectDylan Baker2-1/+3
Just like the native meson subproject has.
2020-02-13Remove unused no-installed-files test featureJon Turney1-0/+0
Looking at 45c8557d, the idea behind this seems to be that a test could conditionally indicate that the list of installed files should not be validated by creating that file. It's no longer used anywhere. Also remove a lingering no-install-files file which isn't used since commit c693bd9b.
2020-02-12Add a test of new warning of omitted native: keywordJon Turney1-0/+2
2020-02-12Add test of target source without languageJon Turney2-0/+5
Add a test that trying to use a compiler in a target for a language which hasn't been mentioned in project() or add_languages() gives an error.
2020-02-12Add a test that using an unavailable native compiler errorsJon Turney2-0/+15
Add a test that trying to use a native compiler in a target after it's been tentatively added with add_languages() without native: but isn't actually available gives an error.
2020-02-11tests: Make the cups test more robustDaniel Mensinger1-5/+5
2020-02-11configure_file: Also copy timestamps to avoid useless rebuildsNirbheek Chauhan1-3/+9
If we always copy files over without timestamps, we're forcing a (probably unnecessary) rebuild. Also include a test for this.
2020-02-10test cases/python3/3 cython: fix dependency filesGerion Entrup1-0/+1
The Cython generation depends on cstorer.pxd as well, so add that as dependency.
2020-02-09Add add_languages(native:)Jon Turney1-0/+3
v2: Retain not using logical-and, to avoid short-circuiting side-effects of add_languages()
2020-02-07Merge pull request #6421 from dcbaker/zlib-system-depJussi Pakkanen1-0/+23
Add a "system" dependency for zlib
2020-02-06Make 'default_library' per-subproject builtin optionXavier Claessens6-0/+39
Currently it's just like if all builtin/base/compiler options are yielding. This patch makes possible to have non-yielding builtin options. The value in is overriden in this order: - Value from parent project - Value from subproject's default_options if set - Value from subproject() default_options if set - Value from command line if set
2020-02-06add fs.stem()Michael Hirsch, Ph.D1-0/+4
2020-02-06fs: add expanduser methodMichael Hirsch, Ph.D1-2/+6
this should help users specify leading `~` in various Meson options and variables without refactoring lots of places inside Meson itself.
2020-02-06fs: add methods as_posix, is_absoluteMichael Hirsch, Ph.D1-0/+22
fs: make exception specify method name fs: actually raise exceptions fs: resolve path e.g. /opt/foo/.. => /opt/foo fs: correct behavior of is_symlink
2020-02-05ci: properly handle cross/native casesMichael Hirsch, Ph.D2-2/+6
2020-02-05add get_external_property to replace get_cross_propertyMichael Hirsch, Ph.D6-15/+35
2020-02-05add native-file properties testsMichael Hirsch, Ph.D4-7/+19
2020-02-05Merge pull request #6582 from mensinda/cmQuotesJussi Pakkanen5-5/+36
cmake: Fix spaces in compile flags (fixes #6566)
2020-02-05pkgconfig: Generate -uninstalled.pc filesXavier Claessens3-1/+9
Closes: #3472.
2020-02-05Test using a File as an argument to run_command.Jussi Pakkanen1-0/+6
2020-02-05cmake: Added test case for #6566Daniel Mensinger5-5/+36
2020-02-04interpreter: Iterate custom target outputsXavier Claessens1-1/+12
2020-02-04cmake: Sanitize CMake names (fixes #6554)Daniel Mensinger3-12/+13
2020-02-01summary: Fix empty list caseXavier Claessens1-0/+1
Fixes: #6557.
2020-01-31tests: Add a test case for the zlib system dependencyDylan Baker1-0/+23
2020-01-30Bugfix: sanitize_dir: use pathlib to handle case-insensitive filesystems (#6398)Michael Hirsch, Ph.D2-0/+7
2020-01-29Bump Java version in test program.Jussi Pakkanen1-2/+2
2020-01-29dependencies: Use DependencyFactory for cupsDylan Baker1-0/+1
2020-01-27Merge pull request #6423 from dcbaker/declare-dependency-variablesJussi Pakkanen1-2/+11
Add ability to set and query arbitrary variables on declare_dependency objects
2020-01-25tests: Prevent multiple-definition of symbolsErnestas Kulik6-6/+14
With GCC 10, -fno-common becomes default behavior, meaning that any subtly-broken code will be broken not so subtly anymore. This commit changes the linkage to variables declared in headers to external and, where needed, adds additional definitions in other compilation units.
2020-01-24Fix CUDA test without devices.Jan Alexander Steffens (heftig)1-10/+11
Getting the runtime version fails when no devices are present.
2020-01-24ci: Fix boost test on xenialDaniel Mensinger1-1/+1
2020-01-24tests: Disable fortran submodule test on old GCC versionsNirbheek Chauhan1-0/+5
Need gcc 6.0 or newer: https://gcc.gnu.org/wiki/Fortran2008Status
2020-01-24tests: Fix some test failures on Ubuntun 16.04 CINirbheek Chauhan6-13/+17
* xenial doesn't ship many dependencies, so make them all optional since we don't guarantee that everything will work * cmake/{5,6}: needs stdlib.h for EXIT_SUCCESS on GCC 5 * common/222: needs C++11, and GCC 5 doesn't understand `auto` correctly unless we explicitly enable it. * frameworks/1 boost: xenial doesn't ship boost_python3, so make it properly optional * frameworks/6 gettext: gettext can be installed without xgettext, which doesn't cause the project to fail, but the installed files list is different which causes the test to fail. * frameworks/7 gnome: gobject-introspection can't be enabled because the sanitizer unit test detects leaks in glib and fails
2020-01-23cmake: Always Add C, CXX if no language is specified (fixes #6441)Daniel Mensinger2-1/+38
2020-01-22tests: Add a test case for finding ldDylan Baker1-0/+4
2020-01-22tests/windows/16: Use pefile module instead of objdump/dumpbinNirbheek Chauhan2-25/+13
The pefile module is a CI dependency now, so we can use that instead of objdump/dumpbin which greatly simplifies the test. Of course, this module is also cross-platform so it will work if we add cross-win32 CI at some point.
2020-01-21Merge pull request #6481 from jon-turney/osx-qt-dep-crashDylan Baker3-7/+15
Fix dependency('qt') crash with old Qt on OSX
2020-01-21Use python3 in some tests which were still using pythonSebastien Bacher12-12/+12
The unversioned command is deprecated and removed from some distributions
2020-01-18Fix 'qt4test' test executable when only Qt4 is presentJon Turney2-1/+2
This always tries to load a 'qt5core_fr' translation file, when it is actually named 'qtNcore_fr'(where N is the qt version).
2020-01-18Make the 'framework/4 qt' test more flexibleJon Turney2-6/+13
Make the 'framework/4 qt' test more flexible about what version of Qt is expected to be present in the CI environment. Currently, this is hard-coded as Qt5. We add an option to specify it so we can run this test under CI with just Qt4 present.
2020-01-17wrap: Fix support of file:// URLsXavier Claessens3-0/+4
Fixes: #6445
2020-01-14dependency: add cursesMichael Hirsch, Ph.D2-0/+16
fixes #6096. Didn't use CMake because Curses is a real corner-case for CMake that would require Curses-specific enhancements to Meson's CMake interface.
2020-01-09dependencies: Add ability to set arbitrary variables onDylan Baker1-2/+11
declare_dependencies This allows dependencies declared in subprojects to set variables, and for those variables to be accessed via the get_variable method, just like those from pkg-config and cmake. This makes it easier to use projects from subprojects in a polymorphic manner, lowering the distinction between a subproject and an external dependency every further.
2020-01-08Rename test dirs to sequential order.Jussi Pakkanen36-0/+0
2020-01-07One more symlink test skip.Jussi Pakkanen1-1/+1