summaryrefslogtreecommitdiff
path: root/run_unittests.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * unit tests: Properly skip if pkg-config wasn't foundNirbheek Chauhan2017-11-111-0/+4
| |
| * pkgconfig module: Escape all paths while generatingNirbheek Chauhan2017-11-111-6/+28
| | | | | | | | | | Without this, we produce unusable pkg-config files when prefix/libdir/etc contain spaces, which is very common on Windows.
| * dependencies: Add a test for static libs with pkg-configNirbheek Chauhan2017-11-111-39/+87
| | | | | | | | | | Demonstrates that pkg-config does not prefer static libs over shared libs even if we use the `static: true` kwarg.
* | Add unittest of prefix dependent default directoriesJon Turney2017-10-281-1/+48
|/ | | | | | Also, make BasePlatformTests.tearDown() tolerate wipe() already having been called, rather than AllPlatformTests.test_prefix_dependent_defaults() having to avoid wipe() on the final iteration.
* Merge pull request #2397 from mesonbuild/prebuiltJussi Pakkanen2017-10-021-0/+94
|\ | | | | Better support for prebuilt shared libs
| * Fix tests on OSX.Jussi Pakkanen2017-10-011-1/+3
| |
| * Fix MSVC builds.Jussi Pakkanen2017-10-011-1/+7
| |
| * Add an rpath entry to shared libraries that are linked from the source tree.Jussi Pakkanen2017-09-301-6/+33
| |
| * Moved prebuilt static library under unit tests.Jussi Pakkanen2017-09-301-1/+23
| |
| * Moved prebuilt object test under unittests.Jussi Pakkanen2017-09-301-0/+37
| |
* | Use listify and extract_as_list everywhereNirbheek Chauhan2017-10-011-1/+44
|/ | | | | | They now flatten by default and unhold objects if required Includes unit tests.
* flake8: Perform suggested whitespace/formatting changesLuke Shumaker2017-09-211-1/+1
| | | | | This only touches newlines, spaces, and (occaisionally) commas. Anything else is left for another commit.
* Add test for get_option(b_xxx) on reconfigure.Hristo Venev2017-09-151-0/+5
|
* Add a test for the custom target incdirs changeNirbheek Chauhan2017-09-111-1/+3
| | | | https://github.com/mesonbuild/meson/pull/2291
* Merge pull request #2236 from trhd/envJussi Pakkanen2017-09-061-0/+2
|\ | | | | Fix a stack trace caused by environment variables in test setups.
| * Add a regression test for test suites.Hemmo Nieminen2017-09-011-0/+2
| | | | | | | | | | Ensure test setup environment variables can from now on be given also as strings.
* | Permit overriding find_program from the cross file.Jussi Pakkanen2017-09-041-0/+22
|/
* Fix coverage target breakage and add a test for it.Jussi Pakkanen2017-08-201-0/+13
|
* Remove PHONY because Windows and OSX file systems are crap. Closes #2199.Jussi Pakkanen2017-08-201-0/+3
|
* Add a test for dirs with reserved target namesNirbheek Chauhan2017-08-151-0/+13
| | | | | | And for dirs with the same name as run_target()s Reproduces https://github.com/mesonbuild/meson/issues/1644
* run_unittests: Add a helper for asserting path existenceNirbheek Chauhan2017-08-151-17/+25
| | | | It is useful to have a message displayed if the assert is fired.
* Use "meson test" in test invocations so it will not print the deprecation ↔Jussi Pakkanen2017-08-141-1/+1
| | | | warning.
* unit tests: Select test cases inside run_unittests.pyNirbheek Chauhan2017-08-131-2/+11
| | | | | | This allows people to directly run ./run_unittests.py without having to worry about selecting the right test cases for the platform they are on.
* Print deprecation warnings on old style commands.Jussi Pakkanen2017-08-021-2/+2
|
* Ensure same compiler flags are used for compiling PCH as normal sourcesGabrĂ­el ArthĂșr PĂ©tursson2017-07-241-0/+7
| | | | | | | Precompiled headers should generally be compiled with the same flags as the sources that will include the header. Some deviations are safe, however, most will cause the compiler to reject the precompiled header or possibly lead to compiler crashes.
* find_library: Ignore libs on MSVC properlyNirbheek Chauhan2017-07-231-0/+17
| | | | | | | | In addition to filtering libs out while generating the command-line, we must also filter them out in find_library() otherwise these libs will be detected as "found" on Windows with MSVC. Closes https://github.com/mesonbuild/meson/issues/1509
* Add build_rpath as new property allowing people to specify rpath entries ↔Jussi Pakkanen2017-07-211-0/+11
| | | | that are used in the build tree but will be removed on install.
* Add a mesonintrospect --dependencies testMartin Ejdestig2017-07-201-0/+22
|
* unittests: Don't pass /nologo to `cl` during detectionNirbheek Chauhan2017-07-171-1/+1
| | | | | | | This causes it to not output the version information to stderr, which we need to extract the version and the architecture. Found by Jussi.
* unittests: Check value of cc.is_64 with MSVCNirbheek Chauhan2017-07-171-0/+9
|
* unittests: Ensure that the compiler version is not blankNirbheek Chauhan2017-07-171-0/+4
|
* Split out languages from compilers.pyAlistair Thomas2017-06-231-1/+1
|
* Split linkers out from compilers.pyAlistair Thomas2017-06-221-3/+3
|
* Merge pull request #1920 from QuLogic/hg-distJussi Pakkanen2017-06-211-10/+36
|\ | | | | Add Mercurial dist support
| * Add test for Mercurial dist'ing.Elliott Sales de Andrade2017-06-131-10/+36
| |
* | Handle both pkg-config and pkgconf argument order. Closes #1934.Jussi Pakkanen2017-06-181-8/+14
| |
* | Merge pull request #1951 from mesonbuild/dedupfixJussi Pakkanen2017-06-181-0/+9
|\ \ | | | | | | Preserve standalone -D arguments
| * | Preserve standalone -D arguments always.Jussi Pakkanen2017-06-181-3/+4
| | |
| * | Failing test for -D dedupping.Jussi Pakkanen2017-06-171-0/+8
| |/
* | Use the Windows proof dir deleter consistently.Jussi Pakkanen2017-06-171-5/+5
|/
* tests/unit/8: Rename to 9 and add -l flagsNirbheek Chauhan2017-06-121-2/+5
|
* Created unit test to ensure linker arguments from consecutive dependencies ↔Jussi Pakkanen2017-06-121-0/+16
| | | | are kept in order.
* Preserve -L -l pairings fetched from external depsNirbheek Chauhan2017-06-121-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | While adding link args for external deps, sometimes different libraries come from different prefixes, and an older version of the same library might be present in other prefixes and we don't want to accidentally pick that up. For example: /usr/local/lib/libglib-2.0.so /usr/local/lib/pkgconfig/glib-2.0.pc /usr/local/lib/libz.so /usr/local/lib/pkgconfig/zlib.pc /home/mesonuser/.local/lib/libglib-2.0.so /home/mesonuser/.local/lib/pkgconfig/glib-2.0.pc PKG_CONFIG_PATH="/home/mesonuser/.local/lib/pkgconfig/:/usr/local/lib/pkgconfig/" If a target uses `dependencies : [glib_dep, zlib_dep]`, it will end up using /usr/local/lib/libglib-2.0.so instead of /home/mesonuser/.local/lib/libglib-2.0.so despite using the pkg-config file in /home/mesonuser/.local/lib/pkgconfig because we reorder the -L flag and separate it from the -l flag. With this change, external link arguments will be added to the compiler list without de-dup or reordering. Closes https://github.com/mesonbuild/meson/issues/1718
* tests: Add Boost unit tests and project tests on WindowsNirbheek Chauhan2017-06-101-0/+13
| | | | | | Boost tests are disabled on Windows for now because the detection is actually completely broken. Once that's fixed (after the release) we can enable it again.
* tests: Increase dependencies coverage a bit moreNirbheek Chauhan2017-06-101-5/+61
|
* tests: Improve llvm dependency test coverageNirbheek Chauhan2017-06-091-0/+4
|
* unit tests: Add class to generate failing testsNirbheek Chauhan2017-06-091-11/+72
| | | | | | | | | It is not feasible to test all failure modes by creating projects in `test cases/failing` that would be an explosion of files, and that mechanism is too coarse anyway. We have no way to ensure that the expected error is being raised. See FailureTests.test_dependency for an example.
* Do not use context managers. Because Windows.Jussi Pakkanen2017-06-081-9/+16
|
* Merged needs_exe_wrapper branch.Jussi Pakkanen2017-06-071-0/+30
|\
| * environment: Add needs_exe_wrapper for overriding auto-detection.Ole André Vadla RavnÄs2017-05-291-0/+30
| | | | | | | | | | | | | | | | This is useful when build_machine appears to be compatible with host_machine, but actually isn't. For example when: - build_machine is macOS and host_machine is the iOS Simulator - the build_machine's libc is glibc but the host_machine libc is uClibc - code relies on kernel features not available on the build_machine