aboutsummaryrefslogtreecommitdiff
path: root/test cases
AgeCommit message (Collapse)AuthorFilesLines
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
2019-08-02Merge pull request #5749 from mensinda/cmGenExpJussi Pakkanen4-0/+75
CMake: Basic generator expression support
2019-07-31Allow kconfig to read from configure_file()Marc-André Lureau1-2/+2
At configure time, kconfig can read from configure_file(). "test cases/kconfig/4 load_config builddir/meson.build" was already showing a workaround, now it actually can take configure_file input directly.
2019-07-31cmake: added generator expression test caseDaniel Mensinger4-0/+75
2019-07-31Merge pull request #5638 from mensinda/cmInterfaceJussi Pakkanen4-0/+52
CMake: Support INTERFACE libraries
2019-07-31Merge pull request #5733 from scivision/pgi_openmpJussi Pakkanen5-15/+25
PGI: correct Fortran so that Fortran run_project_tests.py pass
2019-07-31mintro: Fix crash related to the sources kwarg (fixes #5741)Daniel Mensinger1-1/+1
2019-07-30skip common/223 for PGI, as even 19.4 doesn't fully support C++17 as claimedMichael Hirsch, Ph.D1-0/+6
2019-07-30PGI: fix openmp for 190common testMichael Hirsch, Ph.D1-10/+11
since there is no pgc++ on Windows, we avoid invoking that in 190common
2019-07-30default fortran lib to static so windows can be testedMichael Hirsch, Ph.D1-1/+2
2019-07-30skip fortran dyamiclib tests on WindowsMichael Hirsch, Ph.D1-2/+4
2019-07-30PGI doesn't have coarray fortranMichael Hirsch, Ph.D1-2/+2
2019-07-30Merge pull request #5740 from scivision/intel-ci_fixJussi Pakkanen1-1/+2
tests: Intel-cl fixes for Fortran
2019-07-30PGI: cpp_pch precompiled headers functionalityMichael Hirsch, Ph.D6-1/+38
* PGI C++ PCH enable PGI compilers support precompiled headers for C++ only. The common/13 pch test passes if run manually with no spaces in the build path. However, since Meson run_project_tests.py makes temporary build directories with spaces in each tests, PGI --pch_dir can't handle this and fails. So we skip the test for PGI despite it working for usual case with no-spaces in build dir. Note: it's fine to have spaces in full path for sourcedir, just no spaces in relative path to builddir. * doc
2019-07-30fortran tests: non-gfortran compilers on Windows are best static libsMichael Hirsch, Ph.D1-1/+2
collapsed get_relative_files_list_from_dir to a one-liner via pathlib.Path
2019-07-29Flang and PGI don't yet support coarrayMichael Hirsch, Ph.D1-0/+7
2019-07-25cmake: Added interface libraries test caseDaniel Mensinger4-0/+52
2019-07-24tests/122 shared module: More verbose loggingNirbheek Chauhan2-2/+16
So we know why the syscalls failed.
2019-07-23meson: handle nested disablerMarc-André Lureau1-0/+1
Fixes #5659