summaryrefslogtreecommitdiff
path: root/run_unittests.py
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* | unit tests: Skip tests if no readelf foundNirbheek Chauhan2017-06-051-2/+6
| |
* | unit tests: Also check RUNPATH when fetching RPATHNirbheek Chauhan2017-06-051-2/+2
| |
* | Use absolute RPATHs while linking due to a binutils bugNirbheek Chauhan2017-06-051-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | Use -rpath-link with the absolute paths to the respective build dirs to work around a binutils bug that causes $ORIGIN to not be used while linking. Includes a unit test that manually checks the RPATH value written out to ensure that it uses $ORIGIN. See: https://sourceware.org/bugzilla/show_bug.cgi?id=16936 Closes https://github.com/mesonbuild/meson/issues/1897
* | unit tests: Use only implementation of get_sonameNirbheek Chauhan2017-06-051-18/+13
| |
* | ninja: Use shlex.quote for quoting on non-WindowsNirbheek Chauhan2017-06-021-8/+8
| | | | | | | | | | | | | | | | | | This is more reliable, and more accurate. For instance, this means arguments in commands aren't surrounded by `'` on Linux unless that is actually needed by that specific argument. There is no equivalent helper for Windows, so we keep the old behaviour for that.
* | ninja: De-dup libraries and use --start/end-groupNirbheek Chauhan2017-06-021-1/+14
|/ | | | | | | | | | | | | | | Now we aggressively de-dup the list of libraries used while linking, and when linking with GNU ld we have to enclose all static libraries with -Wl,--start-group and -Wl,--end-group to force the linker to resolve all symbols recursively. This is needed when static libraries have circular deps on each other (see included test). The --start/end-group change is also needed for circular dependencies between static libraries because we no longer recursively list out all library dependencies. The size of build.ninja for GStreamer is now down to 6.1M from 20M, and yields a net reduction in configuration time of 10%
* Fix cross environment pollution.Ole André Vadla RavnÄs2017-05-211-0/+21
| | | | | | | Environment variables like CFLAGS and LDFLAGS should not affect the cross environment. Fixes #1772
* Merge pull request #1810 from QuLogic/pycharm-warningsJussi Pakkanen2017-05-181-2/+7
|\ | | | | Fix various warnings found in PyCharm
| * Add missing asserts in unit tests.Elliott Sales de Andrade2017-05-171-0/+3
| |
| * Remove unused variables.Elliott Sales de Andrade2017-05-171-1/+0
| |
| * Remove unused imports.Elliott Sales de Andrade2017-05-171-1/+4
| |
* | Skip unittests that request it rather than mark them as failed. Closes #1804.Jussi Pakkanen2017-05-181-0/+4
|/
* Add test and release notes.Jussi Pakkanen2017-05-121-0/+42
|
* pkgconfig: add suppport for custom variables during generationPeter Hutterer2017-05-111-0/+2
| | | | | | | | | | | | | | | | | | | | Usage: pkgconfig.generate( ... description : 'A library with custom variables.', variables : ['foo=bar', 'datadir=${prefix}/data'] ) The variables 'prefix', 'libdir' and 'includedir' are reserved, meson will fail with an error message. Variables can reference each other with the pkgconfig notation, e.g. variables : ['datadir=${prefix}/data', 'otherdatadir=${datadir}/other'] meson does not check this for correctness or that the referenced variable exists, we merely keep the same order as specified.
* project tests: Also regen before buildingNirbheek Chauhan2017-05-091-9/+3
| | | | | | | | | This actually caught a cached-dependency related bug for me that the test-time regen did not. I also increased the ninja wait time to 1 second because that's actually how long you need to sleep to be guaranteed that a change will be detected. Must poke upstream about https://github.com/ninja-build/ninja/issues/371
* Use American English: behaviour -> behaviorPeter Hutterer2017-05-041-1/+1
|
* Unset compiler envvars in unit tests.Jussi Pakkanen2017-04-231-0/+10
|
* unit tests: Add a test case for LTO + static librariesNirbheek Chauhan2017-04-201-0/+11
| | | | Tests https://github.com/mesonbuild/meson/issues/1646
* Do not obliterate old rpath because it might be used due to read only data ↔Jussi Pakkanen2017-04-171-0/+22
| | | | sharing. Closes #1619.
* Make it possible to only do unity builds on subprojects.Jussi Pakkanen2017-04-151-0/+11
|
* Merge pull request #1596 from centricular/test-rebuildsJussi Pakkanen2017-04-111-5/+85
|\ | | | | Test that build and custom targets are rebuilt on changes
| * Add tests for target and custom_target rebuildNirbheek Chauhan2017-04-101-5/+85
| | | | | | | | | | Test that changing src tree headers rebuilds targets, and test that changing any file used in a custom_target will rebuild it.
* | Merge pull request #1588 from absmall/methodJussi Pakkanen2017-04-111-4/+2
|\ \ | |/ |/| Add an option to dependencies called 'method'.
| * Rename the pkgconfig method to pkg-configAaron Small2017-04-091-1/+1
| |
| * Add an option to dependencies called 'method'. This can be used toAaron Small2017-04-091-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | configure a detection method, for those types of dependencies that have more than one means of detection. The default detection methods are unchanged if 'method' is not specified, and all dependencies support the method 'auto', which is the same as not specifying a method. The dependencies which do support multiple detection methods additionally support other values, depending on the dependency.
* | unit tests: Run another linuxlike test on all platformsNirbheek Chauhan2017-04-091-9/+9
| |
* | unit tests: Skip tests that need NinjaNirbheek Chauhan2017-04-091-0/+6
| | | | | | | | Such as tests that use the compiler db, or install things.
* | unit tests: Fix running specific targets with MSBuildNirbheek Chauhan2017-04-091-3/+3
| | | | | | | | | | | | /t:targetname syntax doesn't work, but running the vcxproj does work Also use the Backend enum everywhere.
* | unit tests: Run on all backends, not just NinjaNirbheek Chauhan2017-04-091-6/+15
| |
* | tests: Factor out common code to run_testsNirbheek Chauhan2017-04-091-31/+20
|/ | | | | | And use generic build/clean/test/install commands in the unit tests, just like project tests. This sets the groundwork for running the unit tests with all backends.
* Use '.exe' extension for executables for CygwinJon Turney2017-04-061-1/+1
| | | | Use '.exe' extension for executables for Cygwin when building and installing
* Don't use -fPIC on Cygwin, eitherJon Turney2017-04-061-1/+3
| | | | | | | Identify Cygwin-targetted gcc as sui generis (don't use -fPIC, but don't link with standard Windows libraries, either) Update tests appropriately
* Use CPPFLAGS for pre-processor compiler checksNirbheek Chauhan2017-04-041-0/+15
| | | | | | Also don't add CFLAGS twice for links() checks Includes a test for this.
* Merge pull request #1457 from mesonbuild/overridesJussi Pakkanen2017-04-031-0/+21
|\ | | | | Add MVP implementation of overriding options.
| * Add test for werror which is a boolean type.Jussi Pakkanen2017-04-021-1/+3
| |
| * Proxy object for overriding options transparently.Jussi Pakkanen2017-04-021-0/+19
| |
* | Merge pull request #1505 from centricular/dont-use-c++-for-assemblyJussi Pakkanen2017-04-021-0/+67
|\ \ | |/ |/| Try harder to use the C compiler for compiling asm
| * tests/common/141: Also test C + asm targetsNirbheek Chauhan2017-03-301-2/+18
| | | | | | | | Ensure that they are all built with and linked with the C compiler
| * wrap: Also capture stderr while running quiet_git()Nirbheek Chauhan2017-03-271-0/+5
| | | | | | | | We want to return the stderr if the command failed.
| * Try even harder to use the C compiler for assemblyNirbheek Chauhan2017-03-271-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now as long as you have a C compiler available in the project, it will be used to compile assembly even if the target contains a C++ compiler and even if the target contains only assembly and C++ sources. Earlier, the order in which sources appeared in a target would decide which compiler would be used. However, if the project only provides a C++ compiler, that will be used for compiling assembly sources. If this breaks your use-case, please tell us. Includes a test that ensures that all of the above is adhered to.
* | unit tests: Skip static library overwrite on WindowsNirbheek Chauhan2017-03-281-1/+3
| | | | | | | | Test is broken due to https://github.com/mesonbuild/meson/issues/1526
* | Fix qt4 tool location detection, which may result in incorrectly pickingAaron Small2017-03-271-0/+19
|/ | | | up qt5 tools when using the qt4 module.
* Merge pull request #1496 from centricular/fix-internal-dep-orderJussi Pakkanen2017-03-251-14/+46
|\ | | | | Preserve internal-dep include order in build target dependencies
| * Preserve the order of internal deps in a targetNirbheek Chauhan2017-03-231-14/+46
| | | | | | | | | | | | | | | | We were adding them to the CompilerArgs instance in the order in which they are specified, which is wrong because later dependencies would override previous ones. Add them in the reverse order instead. Closes https://github.com/mesonbuild/meson/issues/1495