aboutsummaryrefslogtreecommitdiff
path: root/test cases
AgeCommit message (Collapse)AuthorFilesLines
2019-10-15Add test case to verify identity cross buildsRoss Burton3-0/+22
A build with a cross file should always be identified as a cross build, even if the host and build machine are identical. This was the case in 0.50, regressed in 0.51, and is fixed again in 0.52, so add a test case to ensure it doesn't regress again.
2019-10-10Merge pull request #6011 from xclaesse/not-disablerJussi Pakkanen1-0/+44
Fix `if not disabler()` case
2019-10-09tests: Don't expect any *.pdb files installed in 'lib'Jakub Adam3-5/+0
Static libraries don't have PDB files. A PDB that would previously end up installed alongside a static library belonged in fact to the dynamic version of the same library built at the same time. This was because the former minstall.Installer implementation, when installing a file target, also blindly copied any *.pdb file it found whose filename was matching the target. So, for example installing foo.dll and foo.a would also install two copies of foo.pdb into both bin/ and lib/, which doesn't seem like the right thing to do - foo.pdb should only get installed with foo.dll.
2019-10-08Test disabler in foreach loopsXavier Claessens1-0/+22
The is_disabler() check in evaluate_foreach() was useless because we already checked that items is a list.
2019-10-08Fix `if not disabler()` caseXavier Claessens1-0/+22
Closes: #6010
2019-10-06Merge pull request #5953 from mensinda/isystemJussi Pakkanen4-0/+36
Add is_system to dependency
2019-10-06Updated include_type test caseDaniel Mensinger1-0/+1
2019-10-03cmake: Add test case for #5992Daniel Mensinger2-0/+4
2019-10-03Use include_type instead of is_systemDaniel Mensinger5-27/+32
2019-10-03Also add support for declare_dependency objectsDaniel Mensinger2-0/+10
2019-10-03added test case for is_system dependencyDaniel Mensinger1-0/+20
2019-10-01Add clang-tidy target. Closes #2383.Jussi Pakkanen3-0/+11
2019-10-01Recursively include all objects from uninstalled static librariesXavier Claessens6-0/+36
2019-10-01Do not promote to link_whole when an internal library links to anotherXavier Claessens4-0/+32
2019-10-01pkgconfig: Include dependencies of uninstalled static librariesXavier Claessens6-0/+46
2019-10-01pkgconfig: Do not include uninstalled static librariesXavier Claessens5-0/+36
2019-10-01Fix link_with of a static library with an uninstalled static libraryXavier Claessens5-0/+28
2019-10-01Fix link_whole of static librariesXavier Claessens5-0/+37
2019-09-30Add depfile to configure_file()Marc-André Lureau3-0/+30
In qemu, minikconf generates a depfile that meson could use to automatically reconfigure on dependency change. Note: someone clever can perhaps find a way to express this with a ninja rule & depfile=. I didn't manage, so I wrote a simple depfile parser.
2019-09-29environment: Support taking values from dictMarc-André Lureau2-0/+16
Related to #5955.
2019-09-26cmake: Support ALIAS librariesDaniel Mensinger2-4/+9
2019-09-24CUDA support on WindowsAleksey Gurtovoy8-0/+96
2019-09-23Add blocks dependencyPatrick Griffis2-0/+18
This allows easily enabling the blocks clang extension.
2019-09-17configure_file(): Allow multiple inputs in command modeXavier Claessens2-0/+20
Closes: #5893
2019-09-17pkgconfig: Fix ordering of public librariesXavier Claessens1-0/+8
The main library must come before extra libraries, because they are likely to be dependencies of the main library that get promoted from private to public. This was causing static link issues with glib-2.0.pc.
2019-09-13Fix "test cases/linuxlike/14 static dynamic linkage" on SolarisAlan Coopersmith1-5/+19
Solaris doesn't ship static libraries, so the test can't rely on libz.a existing on Solaris. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-09-10Fix "test cases/common/131 generated assembly" on SolarisAlan Coopersmith1-1/+1
Without this change, the test fails with: [11/12] Linking target square-gen-test. warning: Text relocation remains referenced against symbol offset in file square_unsigned 0x15 square-gen-test@exe/main.c.o [12/12] Linking target square-ct-test. warning: Text relocation remains referenced against symbol offset in file square_unsigned 0x15 square-ct-test@exe/main.c.o Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-09-09tests: pass "cp" as argv[0] in test 162Dylan Baker1-1/+1
otherwise illumos gets grumpy. I'm assuming based on the error message that cp, mv, and ln are all the same program hardlinked to different names.
2019-09-09tests: add sunos to get defineDylan Baker1-0/+3
2019-09-08Fix static archives stripping (#5905)David Seifert8-0/+50
* Do not strip static archives Stripping static archives without more fine-grained options (e.g. `-g`) leads to failures such as ld: libfoo.a: error adding symbols: archive has no index; run ranlib to add one because GNU strip removes *every* symbol in a static archive by default. Given that static archives are not final build artifacts (unlike executables and shared libraries), stripping them gains little and only causes more edge case failures. * Gentoo's portage only strips debug information: https://github.com/gentoo/portage/blob/86f211e3a552753eb945670a39c1a3b14c3c3bd1/bin/estrip#L322 * Fedora also only strips debug information: https://github.com/rpm-software-management/rpm/blob/e9c13c6565cf4782d1f73255ee9144dd9bd2aca7/scripts/brp-strip-static-archive#L18 * Debian also only does some very light stripping: https://github.com/Debian/debhelper/blob/72ed1d3261730d56da6afde0ec7f52f32976e04d/dh_strip#L374 Fixes #4138 * Add test case for static archive stripping
2019-09-08Rename 'rpath-link secondary' unit testDavid Seifert8-0/+0
2019-09-06Add `-Wl,-rpath-link` for secondary dependenciesDavid Seifert8-0/+45
2019-09-04mintro: Fix resolving nodes in kwargs (fixes #5884)Daniel Mensinger1-1/+3
2019-08-28Shell script cleanup.Jussi Pakkanen4-9/+6
2019-08-28Fix gcc include dotDylan Baker5-0/+23
2019-08-24Add test priorities to force test start orderPeter Hutterer2-0/+25
2019-08-24Intel-Cl tests: increase robustness of Windows Intel compilers detection (#5828)Michael Hirsch, Ph.D1-2/+10
* intel-cl tests: more rigorous detection of intent to use Intel Windows compilers * fortran coarray test: make skipping more robust in that underlying MPI stack is .run() This is useful for any Fortran coarray work, and especially for intel-cl where multiple Intel compiler versions are often installed, and the wrong underlying MPI library may be dynamically linked, and so a runtime check is needed to exercise the MPI stack underlying Fortran coarray. This is done by fc.run('sync all; end', dependencies: coarray) * pep8
2019-08-23Add tests for sources that are disablers.James Hilliard5-0/+74
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
2019-08-20Merge pull request #5681 from dcbaker/dynamic-linker-splitJussi Pakkanen3-6/+18
split dynamic linker representations from compilers
2019-08-17Make .extract_objects() work correctly as an input to custom_targetRachel Mant4-0/+30
2019-08-14tests/153: skip with PGI as macros are uniqueMichael Hirsch, Ph.D1-0/+5
2019-08-14tests: skip common/204 for PGI (need unique feature list)Michael Hirsch, Ph.D1-0/+4
2019-08-14tests/common/186: skip some due to PGI link failure stderr=0Michael Hirsch, Ph.D1-4/+7
2019-08-14tests/186: Make work with apple ld's -fatal_warningsDylan Baker1-2/+2
the fact that foo and bar are not directories makes Apple's ld upset, and with fatal warnings it dies on this test. Using real directories makes it happy.
2019-08-12Add is_disabler functionJames Hilliard7-0/+107
This is useful if one needs to check if a variable is a disabler. Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
2019-08-06Made build. options alias basic ones when native building.Jussi Pakkanen4-2/+27
2019-08-05Add basic Webassembly support via Emscripten.Jussi Pakkanen3-0/+18
2019-08-04sourceset: add all_dependencies() methodMarc-André Lureau2-5/+9
'if_true' sources should be built with their dependencies, as illustrated by test case change. Ideally, I think we would want only the files with the dependencies to be built with the flags, but that would probably change the way sourceset are used.
2019-08-03Condense test directory names.Jussi Pakkanen1013-0/+0
2019-08-03Merge pull request #5644 from bonzini/meson-exe-cmdlineJussi Pakkanen1-1/+1
Show command line in `ninja -v` for `capture: true` custom targets and generators