summaryrefslogtreecommitdiff
path: root/run_unittests.py
Commit message (Collapse)AuthorAgeFilesLines
* Add unit test that checks that the sample projects compile.initJussi Pakkanen2017-12-311-1/+14
|
* Merge pull request #2757 from xclaesse/pkgconfigJussi Pakkanen2017-12-311-0/+30
|\ | | | | pkgconfig: Allow passing Dependency objects to library(_private)
| * pkgconfig: Move pc file checks to run_unittests.pyXavier Claessens2017-12-201-0/+30
| |
* | compilers: Fix error when objc/objc++ compilers are not foundNirbheek Chauhan2017-12-301-2/+17
| | | | | | | | | | | | Earlier it would exit with a traceback: UnboundLocalError: local variable 'out' referenced before assignment
* | Merge pull request #2334 from mesonbuild/promotedepJussi Pakkanen2017-12-261-0/+25
|\ \ | | | | | | Add functionality to promote nested dependencies to top level.
| * | Also promote wrap files.Jussi Pakkanen2017-12-171-0/+4
| | |
| * | Add functionality to promote nested dependencies to top level.Jussi Pakkanen2017-12-171-0/+21
| |/
* | Merge pull request #2817 from jon-turney/masterJussi Pakkanen2017-12-261-0/+39
|\ \ | | | | | | Update prefix-dependent defaults when project(default_options:) changes prefix
| * | Add a test of prefix-dependent defaults for project(default_options:)Jon Turney2017-12-211-0/+39
| |/ | | | | | | See #2811
* | unit tests: Test that relative install_rpath works correctlyNirbheek Chauhan2017-12-261-0/+7
| | | | | | | | | | | | We weren't testing this with C++, so the breakage was missed. https://github.com/mesonbuild/meson/issues/2814
* | Warn on unknown command line argumentsDylan Baker2017-12-191-0/+19
|/ | | | | | | I have a tendency to typo things. Humans in general are bad at spotting spelling mistakes, computers are not. This patches prints the bad options and provides the generic meson "This will be a hard error someday" message.
* Use consistent mlog formatting with the ConfigTool dependency helpersDylan Baker2017-12-151-1/+1
| | | | | This just adds more consistent use of mlog.bold and mlog.red/green for ConfigTool based dependencies.
* dependencies: Don't use NotImplementedError for invalid methodsNirbheek Chauhan2017-12-091-0/+16
| | | | | | | | | Using NotImplementedError throws an ugly traceback to the user which does not print the line number and other information making it impossible to figure out what's causing it. Also override it for internal dependencies because self.name is "null" for them.
* Fix `array` type nameEric Engestrom2017-12-071-2/+2
| | | | | | | c9351ce30c03d107279090da7825096951a705d3 introduced the type as `array`, so mintro should expose it under the same name. (while at it, rename test 169 to be coherent)
* Add C++17 flags to GCC and Clang.Jussi Pakkanen2017-12-061-1/+3
|
* Silence git stdout messages.Jussi Pakkanen2017-12-061-3/+5
|
* Merge pull request #2663 from inigomartinez/pkg-config-define-variableJussi Pakkanen2017-12-031-2/+2
|\ | | | | dependencies: Allow pkg-config to define variables
| * dependencies: Fix pkg-config variable definitionIñigo Martínez2017-12-011-2/+2
| | | | | | | | | | | | | | In a previous commit variable definition was added in pkg-config. However, this commit was not complete. This fixes the missing parts of that commit.
* | Merge pull request #2703 from mesonbuild/msvc-library-search-fixesJussi Pakkanen2017-12-031-17/+27
|\ \ | | | | | | Various MSVC library search fixes
| * | unit tests: Skip coverage properly with clangmsvc-library-search-fixesNirbheek Chauhan2017-12-031-2/+3
| | |
| * | unit tests: Fix test_compiler_detection on MinGWNirbheek Chauhan2017-12-031-4/+5
| | | | | | | | | | | | The compiler is x86_64-foo-bar-gcc/g++, so also check for that.
| * | tests: Fix static library linking on MSYS2-MinGWNirbheek Chauhan2017-12-031-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | The .a library was being built with `ar` which is not the right static archiver, it's supposed to be something like x86_64-w64-mingw32-ar or whatever the target-triple is. Try using the built-in static linker detection instead of doing it manually.
| * | unit tests: Remove all instances of FakeEnvironmentNirbheek Chauhan2017-12-031-3/+5
| | | | | | | | | | | | | | | We don't need to use that, and it causes build failures when code actually uses the environment.
* | | Merged array option branch.Jussi Pakkanen2017-12-031-0/+19
|\ \ \ | |/ / |/| |
| * | String arguments can permit arbitrary string valuesJussi Pakkanen2017-12-031-0/+19
| | | | | | | | | | | | by leaving out the choices keyword.
* | | Merge pull request #2618 from mesonbuild/osxlinkerfixesJussi Pakkanen2017-12-031-3/+6
|\ \ \ | |/ / |/| | Fix many things have have been slightly broken in OSX
| * | Fix rpath tests on Linux.Jussi Pakkanen2017-11-261-4/+6
| | |
* | | Merge pull request #2390 from dcbaker/submit/options-listJussi Pakkanen2017-12-021-1/+47
|\ \ \ | | | | | | | | Add an array type to user options
| * | | Add new array type optionDylan Baker2017-11-291-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This exposes the already existing UserStringArrayOption class through the meson_options.txt. The intention is to provide a way for projects to take list/array type arguments and validate that all of the elements in that array are valid without using complex looping constructrs.
| * | | run_unittests.py: remove newline at top of fileDylan Baker2017-11-291-1/+0
| | | | | | | | | | | | | | | | So that the shbang is ther rist line and ./run_unittests.py works.
* | | | cross: Implement support for loading cross files from system pathsDylan Baker2017-11-301-0/+46
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One thing that makes cross compiling with meson a pain is the need for cross files. The problem is not with cross files themselves (they're actually rather brilliant in that they allow for a much greater deal of flexibility than autotools hardcoded paths approach) but that each user needs to reimplement them themselves, when for most people what they really want is a cross file that could be provided by their distro, all they really want is the correct toolchain. This patch is the first stop to making it easier for distros to ship their own cross files (and for users to put their's somewhere safe so they don't get `git clean`ed. It allows the cross files (on Linux and *BSD) to be stored in home and system paths (~/.config/meson/cross, /usr/share/meson/cross, and /usr/local/share/meson/cross), and to be loaded by simply by specificying --cross-file. With this patch meson will check the locations its always checked first, (is cross file absolute, or is it relative to $PWD), then will check ~/.config/meson/cross, /usr/local/share/meson/cross, /usr/share/meson/cross, (or $XDG_CONFIG_PATH and $XDG_DATA_DIRS) for the files, raising an exception if it cannot find the specified cross file. Fixes #2283
* | | Merge pull request #2512 from dcbaker/wip/config-tool-variablesJussi Pakkanen2017-11-281-1/+1
|\ \ \ | | | | | | | | Add method to get values from config tool based dependency
| * | | Make WxDependency a ConfigToolDependencyDylan Baker2017-11-231-1/+1
| |/ /
* | | spelling: overriddenJosh Soref2017-11-261-1/+1
|/ /
* | Make the full test suite runnable with an external command.Jussi Pakkanen2017-11-201-1/+4
| |
* | Replaced sys.executable use with the mesonlib equivalent.Jussi Pakkanen2017-11-201-9/+10
| |
* | Tests can be run with an external Meson command.Jussi Pakkanen2017-11-201-4/+5
|/
* Merge pull request #2611 from mesonbuild/nirbheek/pkgconfig-msvc-staticJussi Pakkanen2017-11-151-44/+125
|\ | | | | Several fixes to pkg-config dependencies and the pkg-config module (try 3)
| * unit tests: Teach detect_prebuild_env about CygwinJon Turney2017-11-141-0/+3
| | | | | | | | | | | | | | | | This is enough to fix things. Note that build_shared_lib doesn't use the implib name for mingw or cygwin gcc, only msvc, so I'm not quite sure how this is working, I guess we are using the gcc facility to link directly with a dll...
| * unit tests: Attempt to fix failure on CygwinNirbheek Chauhan2017-11-111-0/+4
| | | | | | | | | | This was always broken, but was missed because we ran MSVC on Cygwin instead.
| * 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
| |